-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
51 lines (40 loc) · 1.1 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
plugins {
id("java")
id("com.github.johnrengelman.shadow") version "8.1.1"
}
apply(plugin = "java")
apply(plugin = "com.github.johnrengelman.shadow")
repositories {
mavenCentral() // Lombok
}
dependencies {
compileOnly("org.projectlombok:lombok:1.18.30")
annotationProcessor("org.projectlombok:lombok:1.18.30")
testCompileOnly("org.projectlombok:lombok:1.18.30")
testAnnotationProcessor("org.projectlombok:lombok:1.18.30")
val adventureVersion = "4.14.0"
// adventure nbt
implementation("net.kyori:adventure-nbt:$adventureVersion")
}
java.sourceCompatibility = JavaVersion.VERSION_1_8
java.targetCompatibility = JavaVersion.VERSION_1_8
tasks {
sourceSets {
main {
java {
srcDirs.add(File("src/main/java"))
}
}
}
compileJava {
options.encoding = "UTF-8"
}
shadowJar {
archiveFileName.set("${rootProject.name}-${version}-SNAPSHOT.jar")
from(sourceSets["main"].allJava) // Include all Java source files
}
// This is a small wrapper tasks to simplify the building process
register("build-snbt2nbt") {
dependsOn(clean, shadowJar)
}
}