Skip to content

Commit

Permalink
Shade and relocate jlibnoise
Browse files Browse the repository at this point in the history
  • Loading branch information
me4502 committed Jul 15, 2023
1 parent 19db609 commit 9fe3a4a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions worldedit-bukkit/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,12 @@ tasks.named<ShadowJar>("shadowJar") {
include(dependency("org.bstats:"))
include(dependency("io.papermc:paperlib"))
include(dependency("it.unimi.dsi:fastutil"))
include(dependency("com.sk89q.lib:jlibnoise"))

relocate("org.bstats", "com.sk89q.worldedit.bstats")
relocate("io.papermc.lib", "com.sk89q.worldedit.bukkit.paperlib")
relocate("it.unimi.dsi.fastutil", "com.sk89q.worldedit.bukkit.fastutil")
relocate("net.royawesome.jlibnoise", "com.sk89q.worldedit.jlibnoise");
}
}

Expand Down
2 changes: 2 additions & 0 deletions worldedit-fabric/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,10 @@ tasks.named<ShadowJar>("shadowJar") {
archiveClassifier.set("dist-dev")
dependencies {
relocate("org.antlr.v4", "com.sk89q.worldedit.antlr4")
relocate("net.royawesome.jlibnoise", "com.sk89q.worldedit.jlibnoise");

include(dependency("org.antlr:antlr4-runtime"))
include(dependency("com.sk89q.lib:jlibnoise"))
}
}

Expand Down
2 changes: 2 additions & 0 deletions worldedit-forge/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,11 @@ addJarManifest(WorldEditKind.Mod, includeClasspath = false)
tasks.named<ShadowJar>("shadowJar") {
dependencies {
relocate("org.antlr.v4", "com.sk89q.worldedit.antlr4")
relocate("net.royawesome.jlibnoise", "com.sk89q.worldedit.jlibnoise");

include(dependency("org.antlr:antlr4-runtime"))
include(dependency("org.mozilla:rhino-runtime"))
include(dependency("com.sk89q.lib:jlibnoise"))
}
minimize {
exclude(dependency("org.mozilla:rhino-runtime"))
Expand Down
2 changes: 2 additions & 0 deletions worldedit-sponge/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,11 @@ tasks.named<ShadowJar>("shadowJar") {
dependencies {
include(dependency("org.bstats:"))
include(dependency("org.antlr:antlr4-runtime"))
include(dependency("com.sk89q.lib:jlibnoise"))

relocate("org.antlr.v4", "com.sk89q.worldedit.antlr4")
relocate("org.bstats", "com.sk89q.worldedit.sponge.bstats")
relocate("net.royawesome.jlibnoise", "com.sk89q.worldedit.jlibnoise");
}
}
tasks.named("assemble").configure {
Expand Down

0 comments on commit 9fe3a4a

Please sign in to comment.