-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle.kts
63 lines (52 loc) · 1.22 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
`java-library`
kotlin("jvm") version "1.6.21"
id("io.papermc.paperweight.userdev") version "1.3.6"
id("xyz.jpenilla.run-paper") version "1.0.6"
id("net.minecrell.plugin-yml.bukkit") version "0.5.1"
}
group = "de.hglabor"
version = "1.18.2_v1"
val javaVersion = 17 // Minecraft 1.18 requires Java 17
repositories {
mavenCentral()
}
dependencies {
paperDevBundle("1.18.2-R0.1-SNAPSHOT")
compileOnly("net.axay:kspigot:1.18.2")
}
configure<SourceSetContainer> {
named("main") {
java.srcDir("src/main/kotlin")
}
}
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(javaVersion))
}
tasks {
assemble {
dependsOn(reobfJar)
}
withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "$javaVersion"
}
}
withType<JavaCompile> {
options.encoding = "UTF-8"
options.release.set(javaVersion)
}
}
bukkit {
name = "maze-generator"
apiVersion = "1.18"
authors = listOf(
"Your Name",
)
main = "$group.mazegenerator.MazeGenerator"
version = getVersion().toString()
libraries = listOf(
"net.axay:kspigot:1.18.2",
)
}