Skip to content

Commit

Permalink
Simplify build.gradle.kts & Relocate dependencies (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
dlsf authored Jul 23, 2024
1 parent 9c9676b commit a205725
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,19 @@ 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 {
fun relocate(origin: String) = relocate(origin, "com.iridium.iridiumteams.dependencies${origin.substring(origin.lastIndexOf('.'))}")

relocate("org.bstats")
relocate("org.intellij")
relocate("org.jetbrains")
relocate("de.jeff_media.updatechecker")
relocate("com.j256.ormlite")

// Remove the archive classifier suffix
archiveClassifier.set("")
Expand Down

0 comments on commit a205725

Please sign in to comment.