-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathbuild.gradle.kts
44 lines (36 loc) · 967 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
plugins {
`java-library`
id("xyz.jpenilla.run-paper") version "2.3.1"
}
allprojects {
group = "xyz.jpenilla"
version = "1.0.0-SNAPSHOT"
}
subprojects {
if (name == "common") {
return@subprojects
}
apply(plugin = "squaremap-addon")
rootProject.tasks.runServer {
pluginJars(tasks.named<AbstractArchiveTask>("shadowJar").flatMap { it.archiveFile })
}
}
runPaper {
disablePluginJarDetection()
}
tasks.jar {
enabled = false
}
java.toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
}
tasks {
runServer {
minecraftVersion("1.21.1")
downloadPlugins {
hangar("squaremap", "1.2.7")
// url("https://ci.enginehub.org/repository/download/bt10/22612:id/worldedit-bukkit-7.2.16-SNAPSHOT-dist.jar?guest=1")
// url("https://ci.enginehub.org/repository/download/bt11/22585:id/worldguard-bukkit-7.0.10-SNAPSHOT-dist.jar?guest=1")
}
}
}