-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle.kts
75 lines (63 loc) · 2.26 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
plugins {
id("eternalcode.java")
id("com.github.johnrengelman.shadow")
}
dependencies {
// Spigot API
val spigotApiVersion = "1.19.3-R0.1-SNAPSHOT"
compileOnly("org.spigotmc:spigot-api:$spigotApiVersion")
testImplementation("org.spigotmc:spigot-api:$spigotApiVersion")
// Kyori Adventure & MiniMessage
val adventureVersion = "4.3.3"
val miniMessageVersion = "4.17.0"
implementation("net.kyori:adventure-platform-bukkit:$adventureVersion")
implementation("net.kyori:adventure-text-minimessage:$miniMessageVersion")
testImplementation("net.kyori:adventure-platform-bukkit:$adventureVersion")
testImplementation("net.kyori:adventure-text-minimessage:$miniMessageVersion")
// CDN Configs
val cdnVersion = "1.14.4"
implementation("net.dzikoysk:cdn:$cdnVersion")
testImplementation("net.dzikoysk:cdn:$cdnVersion")
// bStats
implementation("org.bstats:bstats-bukkit:3.0.2")
// PlaceholderAPI & Vault
compileOnly("me.clip:placeholderapi:2.11.6")
compileOnly("com.github.MilkBowl:VaultAPI:1.7.1")
// GitCheck
implementation("com.eternalcode:gitcheck:1.0.0")
// JUnit 5
testImplementation("org.junit.jupiter:junit-jupiter-api:5.10.2")
testImplementation("org.junit.jupiter:junit-jupiter-params:5.10.2")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.10.2")
testImplementation("org.mockito:mockito-core:5.12.0")
testImplementation("org.mockito:mockito-junit-jupiter:5.12.0")
testImplementation("me.clip:placeholderapi:2.11.6")
testImplementation("org.assertj:assertj-core:3.26.0")
}
tasks {
withType<Test> {
useJUnitPlatform()
}
shadowJar {
archiveFileName.set("chatformatter-core-${version}.jar")
exclude(
"org/intellij/lang/annotations/**",
"org/jetbrains/annotations/**",
"META-INF/**",
"javax/**"
)
mergeServiceFiles()
val prefix = "com.eternalcode.formatter.libs"
listOf(
"com.eternalcode.gitcheck",
"net.dzikoysk",
"panda",
"org.panda_lang",
"net.kyori",
"org.bstats",
"org.json",
).forEach { pack ->
relocate(pack, "$prefix.$pack")
}
}
}