1
+ import xyz.jpenilla.runtask.task.AbstractRun
2
+
1
3
plugins {
2
4
`java- library`
3
- checkstyle
4
5
id(" net.minecrell.plugin-yml.bukkit" ) version " 0.6.0"
5
6
id(" xyz.jpenilla.run-paper" ) version " 2.3.1"
6
- id(" com.gradleup.shadow" ) version " 8.3.5 "
7
+ id(" com.gradleup.shadow" ) version " 8.3.6 "
7
8
}
8
9
9
10
group = " com.eternalcode"
10
- version = " 1.0.0-SNAPSHOT"
11
- description =
12
- " Plugin that provides functionality of parcel lockers in Minecraft, allowing players to send and receive parcels safely."
11
+ version = " 0.0.1-SNAPSHOT"
12
+ description = " Plugin that provides functionality of parcel lockers in Minecraft, allowing players to send and receive parcels safely."
13
13
14
14
repositories {
15
15
gradlePluginPortal()
@@ -36,8 +36,9 @@ dependencies {
36
36
// skull api
37
37
implementation(" dev.rollczi:liteskullapi:1.3.0" )
38
38
39
- // gui library
39
+ // gui
40
40
implementation(" dev.triumphteam:triumph-gui:3.1.11" )
41
+ implementation(" de.rapha149.signgui:signgui:2.5.0" )
41
42
42
43
// economy
43
44
compileOnly(" com.github.MilkBowl:VaultAPI:1.7.1" )
@@ -71,9 +72,6 @@ dependencies {
71
72
// paperlib
72
73
implementation(" io.papermc:paperlib:1.0.8" )
73
74
74
- // signgui
75
- implementation(" de.rapha149.signgui:signgui:2.5.0" )
76
-
77
75
// panda-utilities
78
76
implementation(" org.panda-lang:panda-utilities:0.5.2-alpha" )
79
77
@@ -84,8 +82,8 @@ dependencies {
84
82
implementation(" com.spotify:completable-futures:0.3.6" )
85
83
86
84
// eternalcode-commons
87
- implementation(" com.eternalcode:eternalcode-commons-adventure:1.1.5 " )
88
- implementation(" com.eternalcode:eternalcode-commons-bukkit:1.1.5 " )
85
+ implementation(" com.eternalcode:eternalcode-commons-adventure:1.1.6 " )
86
+ implementation(" com.eternalcode:eternalcode-commons-bukkit:1.1.6 " )
89
87
90
88
testImplementation(" org.junit.jupiter:junit-jupiter-api:5.11.4" )
91
89
testImplementation(" org.junit.jupiter:junit-jupiter-params:5.11.4" )
@@ -100,25 +98,15 @@ java {
100
98
toolchain.languageVersion.set(JavaLanguageVersion .of(21 ))
101
99
}
102
100
103
- checkstyle {
104
- toolVersion = " 10.21.1"
105
-
106
- configFile = file(" ${rootDir} /config/checkstyle/checkstyle.xml" )
107
-
108
- maxErrors = 0
109
- maxWarnings = 0
110
- }
111
-
112
101
bukkit {
113
102
main = " com.eternalcode.parcellockers.ParcelLockers"
114
103
apiVersion = " 1.13"
115
104
prefix = " ParcelLockers"
116
105
author = " EternalCodeTeam"
117
106
name = " ParcelLockers"
118
- description =
119
- " Plugin that provides functionality of parcel lockers in Minecraft, allowing players to send and receive parcels safely."
107
+ description = project.description
120
108
website = " https://github.com/EternalCodeTeam/ParcelLockers"
121
- version = " 1.0.0-SNAPSHOT "
109
+ version = project.version.toString()
122
110
}
123
111
124
112
tasks.withType<JavaCompile > {
@@ -128,11 +116,33 @@ tasks.withType<JavaCompile> {
128
116
options.release = 21
129
117
}
130
118
119
+ tasks.withType(AbstractRun ::class ) {
120
+ javaLauncher = javaToolchains.launcherFor {
121
+ vendor = JvmVendorSpec .JETBRAINS
122
+ languageVersion = JavaLanguageVersion .of(21 )
123
+ }
124
+ jvmArgs(" -XX:+AllowEnhancedClassRedefinition" , " -XX:+AllowRedefinitionToAddDeleteMethods" )
125
+ }
126
+
131
127
tasks {
132
128
runServer {
133
129
minecraftVersion(" 1.21.4" )
134
130
}
135
131
132
+ cleanPaperPluginsCache {
133
+ doLast {
134
+ project.file(" run/plugins" ).deleteRecursively()
135
+ }
136
+ }
137
+
138
+ cleanPaperCache {
139
+ doLast {
140
+ project.file(" run/cache" ).deleteRecursively()
141
+ project.file(" run/logs" ).deleteRecursively()
142
+ project.file(" run/versions" ).deleteRecursively()
143
+ }
144
+ }
145
+
136
146
test {
137
147
useJUnitPlatform()
138
148
}
@@ -145,25 +155,38 @@ tasks {
145
155
" org/jetbrains/annotations/**" ,
146
156
" META-INF/**" ,
147
157
" javax/**" ,
158
+ " javassist/**" ,
159
+ " org/h2/util/**"
148
160
)
149
161
150
162
mergeServiceFiles()
151
163
minimize {
152
164
exclude(dependency(" de\\ .rapha149\\ .signgui:signgui:.*" )) // https://github.com/Rapha149/SignGUI/issues/15
153
165
}
154
166
155
- val prefix = " com.eternalcode.parcellockers.libs"
167
+ val relocationPrefix = " com.eternalcode.parcellockers.libs"
156
168
listOf (
157
169
" panda" ,
158
- " org.panda_lang" ,
159
- " net.dzikoysk" ,
160
- " io.papermc.lib" ,
161
170
" org.bstats" ,
162
- " dev.rollczi" ,
163
- " net.kyori" ,
164
171
" org.json" ,
172
+ " org.postgresql" ,
173
+ " net.dzikoysk" ,
174
+ " net.kyori" ,
175
+ " io.papermc" ,
176
+ " io.sentry" ,
177
+ " dev.rollczi" ,
178
+ " de.eldoria" ,
179
+ " com.eternalcode.commons" ,
180
+ " com.eternalcode.gitcheck" ,
165
181
" com.fasterxml" ,
166
- " de.rapha149"
167
- ).forEach { relocate(it, prefix) }
182
+ " com.j256" ,
183
+ " com.spotify" ,
184
+ " com.zaxxer" ,
185
+ " de.rapha149" ,
186
+ " dev.triumphteam"
187
+ ).forEach { relocate(it, " $relocationPrefix .$it " ) }
168
188
}
169
189
}
190
+
191
+
192
+
0 commit comments