-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle.kts
56 lines (45 loc) · 1.31 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import org.gradle.api.JavaVersion
import org.gradle.api.tasks.compile.JavaCompile
import org.gradle.api.tasks.javadoc.Javadoc
import org.gradle.kotlin.dsl.`java-library`
import org.gradle.kotlin.dsl.repositories
plugins {
`java-library`
`kotlin-dsl`
}
allprojects {
apply(plugin = "java-library")
repositories {
mavenLocal()
maven {
url = uri("https://oss.sonatype.org/content/groups/public/")
}
maven {
url = uri("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
}
maven {
url = uri("https://repo1.maven.org/maven2/")
}
maven {
url = uri("https://repo.maven.apache.org/maven2/")
}
maven("https://repo.codemc.io/repository/nms/")
}
group = "com.huanmeng-qwq"
version = "2.4.0"
java {
withSourcesJar()
withJavadocJar()
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
tasks.withType<JavaCompile>() {
options.encoding = "UTF-8"
}
tasks.withType<Javadoc>() {
options.encoding = "UTF-8"
if (JavaVersion.current().isJava9Compatible) {
(options as StandardJavadocDocletOptions).addBooleanOption("html5", true)
}
}
}