Skip to content

Commit 104e33d

Browse files
committed
Relocate all included dependencies & Simplify shadowJar task replacement
1 parent a5b669b commit 104e33d

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

build.gradle.kts

+7-5
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,9 @@ dependencies {
3838
}
3939

4040
tasks {
41-
// "Replace" the build task with the shadowJar task (probably bad but who cares)
42-
jar {
43-
dependsOn("shadowJar")
44-
enabled = false
41+
// Add the shadowJar task to the build task
42+
build {
43+
dependsOn(shadowJar)
4544
}
4645

4746
shadowJar {
@@ -54,8 +53,11 @@ tasks {
5453
// Relocate dependencies
5554
relocate("com.iridium.iridiumcore")
5655
relocate("com.j256.ormlite")
57-
relocate("org.bstats")
5856
relocate("de.jeff_media.updatechecker")
57+
relocate("org.bstats")
58+
relocate("org.intellij.lang.annotations")
59+
relocate("org.jetbrains.annotations")
60+
relocate("org.jnbt")
5961

6062
// Remove unnecessary files from the jar
6163
minimize()

0 commit comments

Comments
 (0)