Skip to content

Commit

Permalink
Fix shading
Browse files Browse the repository at this point in the history
  • Loading branch information
Redned235 committed Jul 13, 2024
1 parent f8bdfba commit a228cfd
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,20 @@ tasks {
include("*")
}

relocate("org.bstats", "org.battlearena.arena.shaded.bstats")
relocate("org.bstats", "org.battleplugins.arena.util.shaded.bstats")

archiveFileName.set("BattleArena.jar")
}

create<Jar>("bundledJar") {
val extractShadowJar by creating(Copy::class) {
dependsOn(shadowJar)
from(sourceSets.main.get().output)
from(zipTree(shadowJar.get().archiveFile.get().asFile))
into(layout.buildDirectory.get().asFile.resolve("extractedShadow"))
}

create<Jar>("bundledJar") {
dependsOn(extractShadowJar)
from(layout.buildDirectory.get().asFile.resolve("extractedShadow"))

// Bundle in our modules
project(":module").subprojects.forEach {
Expand Down

0 comments on commit a228cfd

Please sign in to comment.