-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
44 lines (37 loc) · 1.29 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
plugins {
`java-library`
}
// ext
val bukkitVersion = "1.14-R0.1-SNAPSHOT"
val lombokVersion = "1.18.6"
val jsr305Version = "3.0.2"
val junitVersion = "5.4.1"
extra["dependencyNames"] = mapOf(
"bukkit" to "org.bukkit:bukkit:$bukkitVersion",
"spigot" to "org.spigotmc:spigot:$bukkitVersion",
"lombok" to "org.projectlombok:lombok:$lombokVersion",
"jsr305" to "com.google.code.findbugs:jsr305:$jsr305Version",
"junit-jupiter-api" to "org.junit.jupiter:junit-jupiter-api:$junitVersion",
"junit-jupiter-engine" to "org.junit.jupiter:junit-jupiter-engine:$junitVersion"
)
subprojects {
apply(plugin = "org.gradle.java-library")
group = "org.cat73.bukkitboot"
version = "1.0.0-SNAPSHOT"
// Java 版本
configure<JavaPluginConvention> {
val javaVersion = JavaVersion.VERSION_1_8
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
}
// 仓库配置
repositories {
mavenLocal()
jcenter()
maven("https://hub.spigotmc.org/nexus/content/repositories/public")
}
// 源文件编码
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}
}