Skip to content

Commit

Permalink
Relocate all included dependencies & Simplify shadowJar task replacem…
Browse files Browse the repository at this point in the history
…ent (#877)
  • Loading branch information
dlsf authored Jul 21, 2024
1 parent a5b669b commit 70520af
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,9 @@ dependencies {
}

tasks {
// "Replace" the build task with the shadowJar task (probably bad but who cares)
jar {
dependsOn("shadowJar")
enabled = false
// Add the shadowJar task to the build task
build {
dependsOn(shadowJar)
}

shadowJar {
Expand All @@ -54,8 +53,11 @@ tasks {
// Relocate dependencies
relocate("com.iridium.iridiumcore")
relocate("com.j256.ormlite")
relocate("org.bstats")
relocate("de.jeff_media.updatechecker")
relocate("org.bstats")
relocate("org.intellij.lang.annotations")
relocate("org.jetbrains.annotations")
relocate("org.jnbt")

// Remove unnecessary files from the jar
minimize()
Expand Down

0 comments on commit 70520af

Please sign in to comment.