-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
build.gradle.kts
49 lines (44 loc) · 1.12 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
plugins {
java
id("io.github.goooler.shadow").version("8.1.8")
}
group = "me.moros"
version = "1.7.3"
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
}
}
repositories {
mavenCentral()
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
maven("https://jitpack.io")
}
dependencies {
implementation("org.bstats", "bstats-bukkit", "3.0.2")
compileOnly("org.spigotmc:spigot-api:1.20.6-R0.1-SNAPSHOT")
compileOnly("com.github.ProjectKorra:ProjectKorra:v1.11.2")
}
tasks {
shadowJar {
archiveClassifier.set("")
dependencies {
relocate("org.bstats", "me.moros.hyperion.bstats")
}
minimize()
}
build {
dependsOn(shadowJar)
}
withType<JavaCompile> {
options.compilerArgs.addAll(listOf("-Xlint:unchecked", "-Xlint:deprecation"))
options.encoding = "UTF-8"
}
withType<AbstractArchiveTask> {
isPreserveFileTimestamps = false
isReproducibleFileOrder = true
}
named<Copy>("processResources") {
expand("pluginVersion" to project.version)
}
}