-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
166 lines (132 loc) · 4.83 KB
/
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
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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
plugins {
`java-library`
checkstyle
id("net.minecrell.plugin-yml.bukkit") version "0.6.0"
id("xyz.jpenilla.run-paper") version "2.3.1"
id("com.gradleup.shadow") version "8.3.5"
}
group = "com.eternalcode"
version = "1.0.0-SNAPSHOT"
description =
"Plugin that provides functionality of parcel lockers in Minecraft, allowing players to send and receive parcels safely."
repositories {
gradlePluginPortal()
mavenCentral()
maven { url = uri("https://repo.panda-lang.org/releases") }
maven { url = uri("https://hub.spigotmc.org/nexus/content/repositories/snapshots/") }
maven { url = uri("https://oss.sonatype.org/content/repositories/snapshots") }
maven { url = uri("https://oss.sonatype.org/content/repositories/central") }
maven { url = uri("https://papermc.io/repo/repository/maven-public/") }
maven { url = uri("https://repo.eternalcode.pl/releases") }
maven { url = uri("https://repository.minecodes.pl/releases") }
maven { url = uri("https://jitpack.io") }
}
dependencies {
// minecraft development api
compileOnly("org.spigotmc:spigot-api:1.21.1-R0.1-SNAPSHOT")
implementation("net.kyori:adventure-platform-bukkit:4.3.4")
implementation("net.kyori:adventure-text-minimessage:4.17.0")
implementation("dev.rollczi:litecommands-bukkit:3.9.1")
implementation("dev.rollczi:litecommands-adventure:3.9.1")
// skull api
implementation("dev.rollczi:liteskullapi:1.3.0")
// gui library
implementation("dev.triumphteam:triumph-gui:3.1.10")
// economy
compileOnly("com.github.MilkBowl:VaultAPI:1.7.1")
// CDN
implementation("net.dzikoysk:cdn:1.14.5")
// expressible
implementation("org.panda-lang:expressible:1.3.6")
// gitcheck
implementation("com.eternalcode:gitcheck:1.0.0")
// metrics and sentry
implementation("org.bstats:bstats-bukkit:3.1.0")
implementation("io.sentry:sentry:7.17.0")
// database
implementation("com.zaxxer:HikariCP:6.1.0")
// lombok
compileOnly("org.projectlombok:lombok:1.18.34")
annotationProcessor("org.projectlombok:lombok:1.18.34")
// jetbrains annotations
api("org.jetbrains:annotations:26.0.1")
// paperlib
implementation("io.papermc:paperlib:1.0.8")
// signgui
implementation("de.rapha149.signgui:signgui:2.4.2")
// panda-utilities
implementation("org.panda-lang:panda-utilities:0.5.2-alpha")
// jackson-bukkit
implementation("de.eldoria.jacksonbukkit:paper:1.2.0")
// completable-futures
implementation("com.spotify:completable-futures:0.3.6")
// eternalcode-commons
implementation("com.eternalcode:eternalcode-commons-adventure:1.1.4")
implementation("com.eternalcode:eternalcode-commons-bukkit:1.1.4")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.11.3")
testImplementation("org.junit.jupiter:junit-jupiter-params:5.11.3")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.11.3")
testImplementation("org.testcontainers:junit-jupiter:1.20.3")
testImplementation("org.testcontainers:mysql:1.20.3")
testImplementation("mysql:mysql-connector-java:8.0.33")
}
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
}
checkstyle {
toolVersion = "10.20.1"
configFile = file("${rootDir}/config/checkstyle/checkstyle.xml")
maxErrors = 0
maxWarnings = 0
}
bukkit {
main = "com.eternalcode.parcellockers.ParcelLockers"
apiVersion = "1.13"
prefix = "ParcelLockers"
author = "EternalCodeTeam"
name = "ParcelLockers"
description =
"Plugin that provides functionality of parcel lockers in Minecraft, allowing players to send and receive parcels safely."
website = "https://github.com/EternalCodeTeam/ParcelLockers"
version = "1.0.0-SNAPSHOT"
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
options.setIncremental(true)
options.compilerArgs.add("-parameters")
options.release = 17
}
tasks {
runServer {
minecraftVersion("1.21.1")
}
test {
useJUnitPlatform()
}
shadowJar {
archiveFileName.set("ParcelLockers v${project.version} (MC 1.8.8-1.21.x).jar")
exclude(
"org/intellij/lang/annotations/**",
"org/jetbrains/annotations/**",
"META-INF/**",
"javax/**",
)
mergeServiceFiles()
minimize {
exclude(dependency("de\\.rapha149\\.signgui:signgui:.*")) // https://github.com/Rapha149/SignGUI/issues/15
}
val prefix = "com.eternalcode.parcellockers.libs"
listOf(
"panda",
"org.panda_lang",
"net.dzikoysk",
"io.papermc.lib",
"org.bstats",
"dev.rollczi",
"net.kyori",
"org.json",
"com.fasterxml",
"de.rapha149"
).forEach { relocate(it, prefix) }
}
}