forked from andrepl/ChunkSpawnerLimiter
-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle.kts
62 lines (51 loc) · 1.58 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
import net.minecrell.pluginyml.bukkit.BukkitPluginDescription
plugins {
java
alias(libs.plugins.shadow)
alias(libs.plugins.plugin.yml)
}
version = "4.3.10"
description = "Limit entities in chunks."
dependencies {
compileOnly(libs.spigot.api)
implementation(libs.bstats)
implementation(libs.acf)
implementation(libs.annotations)
}
bukkit {
name = "ChunkSpawnerLimiter"
main = "com.cyprias.chunkspawnerlimiter.ChunkSpawnerLimiter"
version = project.version.toString()
apiVersion = "1.14"
authors = listOf("Cyprias", "sarhatabaot")
website = "https://github.com/Cyprias/ChunkSpawnerLimiter"
description = "Limit entities in chunks."
load = BukkitPluginDescription.PluginLoadOrder.POSTWORLD
prefix = "CSL"
}
tasks {
build {
dependsOn(shadowJar)
}
shadowJar {
minimize()
exclude("META-INF/**")
archiveFileName.set("chunkspawnerlimiter-${project.version}.jar")
archiveClassifier.set("shadow")
relocate("org.bstats", "com.cyprias.chunkspawnerlimiter.libs.bstats")
relocate("de.tr7zw.changeme.nbtapi", "com.cyprias.chunkspawnerlimiter.libs.nbt")
relocate("co.aikar.commands", "com.cyprias.chunkspawnerlimiter.libs.acf")
relocate("co.aikar.locales", "com.cyprias.chunkspawnerlimiter.libs.locales")
}
compileJava {
options.compilerArgs.add("-parameters")
options.isFork = true
options.encoding = "UTF-8"
}
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(8))
vendor.set(JvmVendorSpec.ADOPTIUM)
}
}