-
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
79 lines (66 loc) · 2.43 KB
/
build.gradle.kts
File metadata and controls
79 lines (66 loc) · 2.43 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
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.4.1"
val miniMessageVersion = "4.24.0"
implementation("net.kyori:adventure-api:$miniMessageVersion")
implementation("net.kyori:adventure-text-minimessage:$miniMessageVersion")
implementation("net.kyori:adventure-platform-bukkit:$adventureVersion")
testImplementation("net.kyori:adventure-platform-bukkit:$adventureVersion")
testImplementation("net.kyori:adventure-text-minimessage:$miniMessageVersion")
// CDN Configs
val cdnVersion = "1.14.9"
implementation("net.dzikoysk:cdn:$cdnVersion")
testImplementation("net.dzikoysk:cdn:$cdnVersion")
// bStats
implementation("org.bstats:bstats-bukkit:3.1.0")
// 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(platform("org.junit:junit-bom:5.13.3"))
testImplementation("org.junit.jupiter:junit-jupiter-api")
testImplementation("org.junit.jupiter:junit-jupiter-params")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
testImplementation("org.mockito:mockito-core:5.19.0")
testImplementation("org.mockito:mockito-junit-jupiter:5.19.0")
testImplementation("me.clip:placeholderapi:2.11.6")
testImplementation("org.assertj:assertj-core:3.27.4")
}
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")
}
}
}