-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
54 lines (47 loc) · 1.26 KB
/
build.gradle.kts
File metadata and controls
54 lines (47 loc) · 1.26 KB
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
plugins {
java
id("xyz.jpenilla.run-paper") version "2.3.1"
id("io.papermc.paperweight.userdev") version "2.0.0-beta.19"
}
group = "net.moonlightnovamc"
version = "1.1"
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
}
repositories {
mavenCentral()
maven {
name = "papermc-repo"
url = uri("https://repo.papermc.io/repository/maven-public/")
}
maven {
name = "placeholderAPI-repo"
url = uri("https://repo.extendedclip.com/releases/")
}
maven {
name = "dmulloy2"
url = uri("https://repo.dmulloy2.net/nexus/repository/public/")
}
}
dependencies {
// ⭐ Paper + NMS (รองรับ NMS 1.21.4)
paperweight.paperDevBundle("1.21.4-R0.1-SNAPSHOT")
// PlaceholderAPI
compileOnly("me.clip:placeholderapi:2.11.7")
// ProtocolLib
compileOnly("net.dmulloy2:ProtocolLib:5.4.0")
}
tasks {
runServer {
// Configure the Minecraft version for our task.
// This is the only required configuration besides applying the plugin.
// Your plugin's jar (or shadowJar if present) will be used automatically.
minecraftVersion("1.21.4")
}
}
tasks.assemble {
dependsOn(tasks.reobfJar)
}
tasks.test {
useJUnitPlatform()
}