-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
51 lines (43 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 {
java
alias(libs.plugins.shadow)
alias(libs.plugins.pluginyml.bukkit)
}
dependencies {
compileOnly(libs.spigot.api)
implementation(libs.bstats.bukkit)
implementation(libs.paperlib)
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
tasks {
build {
dependsOn(shadowJar)
}
compileJava {
options.encoding = Charsets.UTF_8.name()
}
shadowJar {
archiveBaseName.set(rootProject.name)
archiveClassifier.set(null as String?)
listOf(
"org.bstats",
"io.papermc.lib"
).forEach {
relocate(it, "org.stupidcraft.randomcart.lib.$it")
}
}
}
bukkit {
name = rootProject.name
description = project.description
version = project.version as String
authors = listOf("StupidCraft", "Triassic")
website = "https://github.com/StupidCraft/RandomCart"
main = "org.stupidcraft.randomcart.RandomCart"
foliaSupported = true
apiVersion = "1.13"
}
java.toolchain.languageVersion = JavaLanguageVersion.of(8)