forked from darbyjack/Rocketeer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
81 lines (65 loc) · 1.61 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
import com.github.jengelman.gradle.plugins.shadow.ShadowPlugin
import net.kyori.indra.IndraPlugin
plugins {
id("java")
id("net.kyori.indra") version "2.0.6"
id("io.papermc.paperweight.userdev") version "1.3.2"
id("com.github.johnrengelman.shadow") version "7.1.0"
}
group = "me.glaremasters"
version = "1.0-SNAPSHOT"
apply {
plugin<ShadowPlugin>()
plugin<IndraPlugin>()
}
repositories {
mavenLocal()
mavenCentral()
maven("https://papermc.io/repo/repository/maven-public/")
maven("https://oss.sonatype.org/content/groups/public/")
maven("https://repo.aikar.co/content/groups/aikar/")
maven("https://jitpack.io")
maven("https://repo.codemc.io/repository/maven-public")
}
dependencies {
paperDevBundle("1.18.1-R0.1-SNAPSHOT")
implementation("co.aikar:acf-paper:0.5.0-SNAPSHOT")
implementation("io.github.bananapuncher714:nbteditor:7.18.0")
}
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
}
tasks {
build {
dependsOn(reobfJar)
}
compileJava {
options.compilerArgs = listOf("-parameters")
options.encoding = Charsets.UTF_8.name()
options.release.set(17)
}
indra {
mitLicense()
github("darbyjack", "rocketeer")
}
shadowJar {
fun relocates(vararg dependencies: String) {
dependencies.forEach {
val split = it.split(".")
val name = split.last()
relocate(it, "me.glaremasters.rocketeer.libs.$name")
}
}
relocates(
"co.aikar.commands",
"co.aikar.locales",
"io.github.bananapuncher714"
)
minimize()
archiveClassifier.set(null as String?)
}
processResources {
expand("version" to rootProject.version)
filteringCharset = Charsets.UTF_8.name()
}
}