-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
42 lines (32 loc) · 1.03 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
import net.minecrell.pluginyml.bukkit.BukkitPluginDescription.PluginLoadOrder
plugins {
id("template.java-conventions")
id("io.github.goooler.shadow") version "8.1.7"
id("xyz.jpenilla.run-paper") version "2.3.0"
id("io.freefair.lombok") version "8.4"
id("net.minecrell.plugin-yml.bukkit") version "0.6.0"
}
group = "io.github.mr-empee.mysticalbarriers"
version = findProperty("tag") ?: "2.3.2-SNAPSHOT"
dependencies {
implementation(project(":plugin:core"))
}
bukkit {
val bootstrap = "core.MysticalBarriers"
main = if (isRelease()) "$group.$bootstrap" else bootstrap
softDepend = listOf("Multiverse-Core", "MultiWorld", "LuckPerms")
depend = listOf("ProtocolLib")
load = PluginLoadOrder.POSTWORLD
apiVersion = "1.16"
}
tasks.runServer {
minecraftVersion("1.21.1")
}
tasks.shadowJar {
isEnableRelocation = isRelease()
relocationPrefix = project.group.toString()
}
fun isRelease(): Boolean {
return !project.version.toString().endsWith("-SNAPSHOT")
}
java.toolchain.languageVersion.set(JavaLanguageVersion.of(11))