-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle.kts
50 lines (46 loc) · 1.25 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
plugins {
java
alias(libs.plugins.runpaper)
alias(libs.plugins.shadow)
}
repositories {
maven("https://repo.papermc.io/repository/maven-public/")
}
dependencies {
compileOnly(libs.paper)
compileOnly(libs.configurate.core)
implementation(libs.configurate.hocon) {
isTransitive = false
}
implementation(libs.adventure.serializer) {
isTransitive = false
}
implementation(libs.hocon)
}
tasks {
build {
dependsOn(shadowJar)
}
shadowJar {
archiveBaseName.set(rootProject.name)
archiveClassifier.set("")
relocate("org.spongepowered.configurate.hocon",
"io.github._4drian3d.simplejumppads.libs.configurate.hocon")
relocate("com.typesafe", "io.github._4drian3d.simplejumppads.libs.typesafe")
relocate("net.kyori.adventure.serializer.configurate4",
"io.github._4drian3d.simplejumppads.libs.configurate-serializer")
minimize()
}
compileJava {
options.release.set(21)
}
runServer {
minecraftVersion("1.21.4")
}
processResources {
filesMatching("paper-plugin.yml") {
expand("version" to version)
}
}
}
java.toolchain.languageVersion.set(JavaLanguageVersion.of(21))