-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
134 lines (120 loc) · 4.2 KB
/
build.gradle.kts
File metadata and controls
134 lines (120 loc) · 4.2 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
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
plugins {
java
`maven-publish`
alias(libs.plugins.run.paper)
alias(libs.plugins.plugin.yml)
alias(libs.plugins.shadow)
}
dependencies {
implementation(libs.cloudPaper)
implementation(libs.cloudAnnotations)
implementation(libs.cloudBukkit)
implementation(libs.adventurePlatformBukkit)
implementation(libs.paper)
testImplementation(platform(libs.junit.bom))
testImplementation(libs.junit.jupiter)
testImplementation(libs.junit.platform.launcher)
testImplementation(libs.mockbukkit)
testRuntimeOnly(libs.junit.jupiter.engine)
}
java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
}
}
tasks {
compileJava {
options.encoding = "UTF-8"
}
runServer {
minecraftVersion("1.21.11")
jvmArgs("-Xmx2G", "-Dcom.mojang.eula.agree=true")
}
shadowJar {
archiveClassifier.set("")
archiveFileName.set("labyrinth.jar")
}
test {
useJUnitPlatform()
jvmArgs("-Dlabyrinth.insideTest=true")
testLogging {
events("passed", "skipped", "failed")
}
}
}
publishing {
publications.create<MavenPublication>("maven") {
artifact(project.tasks.getByName("shadowJar"))
version = rootProject.version as String
artifactId = "labyrinth"
groupId = rootProject.group as String
pom {
name = "Labyrinth"
description = "Labyrinth zone protection for OneLiteFeather"
url = "https://github.com/OneLiteFeatherNET/labyrinth"
licenses {
license {
name = "The Apache License, Version 2.0"
url = "http://www.apache.org/licenses/LICENSE-2.0.txt"
}
}
developers {
developer {
id = "themeinerlp"
name = "Phillipp Glanz"
email = "p.glanz@madfix.me"
}
}
scm {
connection = "scm:git:git://github.com:OneLiteFeatherNET/Labyrinth.git"
developerConnection = "scm:git:ssh://git@github.com:OneLiteFeatherNET/Labyrinth.git"
url = "https://github.com/OneLiteFeatherNET/labyrinth"
}
}
}
repositories {
maven {
authentication {
credentials(PasswordCredentials::class) {
// Those credentials need to be set under "Settings -> Secrets -> Actions" in your repository
username = System.getenv("ONELITEFEATHER_MAVEN_USERNAME")
password = System.getenv("ONELITEFEATHER_MAVEN_PASSWORD")
}
}
name = "OneLiteFeatherRepository"
val releasesRepoUrl = uri("https://repo.onelitefeather.dev/onelitefeather-releases")
val snapshotsRepoUrl = uri("https://repo.onelitefeather.dev/onelitefeather-snapshots")
url = if (version.toString().contains("SNAPSHOT")) snapshotsRepoUrl else releasesRepoUrl
}
}
}
paper {
main = "net.onelitefeather.labyrinth.Labyrinth"
name = "Labyrinth"
description = "This is a prototype plugin for the Labyrinth of our Survival Server"
website = "https://discord.onelitefeather.net"
author = "OneLiteFeather"
apiVersion = "1.20"
hasOpenClassloader = false
generateLibrariesJson = false
foliaSupported = false
permissions {
register("labyrinth.setup.center") {
description = "This permission is needed to create the center of the zone"
}
register("labyrinth.setup.setradius") {
description = "This permission is needed to set the radius of the zone."
}
register("labyrinth.toggle.mobspawn") {
description = "This permission is needed to toggle mobspawning for the zone."
}
register("labyrinth.setup.createzone") {
description = "This permission is needed to create a new zone entry."
}
register("labyrinth.setup.deletezone") {
description = "This permission is needed to delete the zone."
}
}
}