-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
48 lines (39 loc) · 864 Bytes
/
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
plugins {
id("java")
id("io.papermc.paperweight.userdev") version "1.3.8"
}
group = "net.pl3x.bukkit.deathmaps"
version = "1.19"
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
repositories {
mavenCentral()
}
dependencies {
paperDevBundle("1.19-R0.1-SNAPSHOT")
}
defaultTasks("clean", "build")
tasks {
processResources {
val placeholders = mapOf(
"name" to project.name,
"group" to project.group,
"version" to project.version
)
filesMatching("plugin.yml") {
expand(placeholders)
}
}
jar {
archiveFileName.set("${project.name}-mojmap.jar")
}
reobfJar {
outputJar.set(project.layout.buildDirectory.file("libs/${project.name}.jar"))
}
build {
dependsOn(reobfJar)
}
}