-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
81 lines (63 loc) · 2.02 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 net.minecrell.pluginyml.bukkit.BukkitPluginDescription
plugins {
kotlin("jvm") version "2.+"
id("io.papermc.paperweight.userdev") version "1.+"
id("xyz.jpenilla.run-paper") version "2.+"
kotlin("plugin.serialization") version "2.+"
id("net.minecrell.plugin-yml.bukkit") version "0.6.+"
id("com.gradleup.shadow") version "8.+"
}
repositories {
mavenCentral()
maven {
url = uri("https://repo.extendedclip.com/releases/")
}
}
group = properties["group"] as String
version = properties["version"] as String
description = properties["description"] as String
val gameVersion by properties
val foliaSupport = properties["foliaSupport"] as String == "true"
val projectName = properties["name"] as String
dependencies {
paperweight.paperDevBundle("1.21.1-R0.1-SNAPSHOT")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation("org.jetbrains.kotlinx", "kotlinx-serialization-json", "1.+")
implementation("net.kyori", "adventure-text-minimessage", "4.+")
implementation("dev.jorel:commandapi-bukkit-kotlin:9.6.0")
implementation("org.jetbrains.kotlin:kotlin-stdlib")
compileOnly("dev.jorel:commandapi-bukkit-core:9.6.0")
implementation("dev.jorel:commandapi-bukkit-shade-mojang-mapped:9.6.0")
compileOnly("me.clip:placeholderapi:2.11.6")
}
kotlin {
jvmToolchain(21)
}
tasks {
runServer {
minecraftVersion("1.21.1")
}
assemble {
dependsOn(reobfJar)
dependsOn(shadowJar)
}
compileJava {
options.encoding = "UTF-8"
options.release.set(21)
}
compileKotlin {
kotlinOptions.jvmTarget = "21"
}
}
bukkit {
main = "$group.${projectName.lowercase()}.${projectName}"
apiVersion = "1.16"
foliaSupported = foliaSupport
website = "https://modrinth.com/plugin/color-status"
authors = listOf("xyzjesper")
// Optionals
load = BukkitPluginDescription.PluginLoadOrder.STARTUP
depend = listOf()
softDepend = listOf("PlaceholderAPI")
libraries = listOf()
}