Skip to content

Commit

Permalink
fix shading
Browse files Browse the repository at this point in the history
  • Loading branch information
wagyourtail committed Dec 21, 2023
1 parent 462960e commit 4452663
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,15 @@ repositories {
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
}

val shadow by configurations.creating {
configurations.implementation.get().extendsFrom(this)
}

@Suppress("VulnerableLibrariesLocal")
dependencies {
implementation("org.bukkit:bukkit:1.12.2-R0.1-SNAPSHOT")
implementation("org.ow2.asm:asm:9.5")
implementation("org.ow2.asm:asm-tree:9.5")
shadow("org.ow2.asm:asm:9.5")
shadow("org.ow2.asm:asm-tree:9.5")
}

tasks.compileJava {
Expand All @@ -50,6 +54,7 @@ tasks.jar {
}

tasks.shadowJar {
configurations = listOf(shadow)
relocate("org.objectweb", "xyz.wagyourtail.unimined.cpl.shadow.org.objectweb")
}

Expand Down

0 comments on commit 4452663

Please sign in to comment.