Shade and relocate jlibnoise (#2363)

* Shade and relocate jlibnoise

* formatting fix
This commit is contained in:
Maddy Miller 2023-08-07 03:52:26 +10:00 committed by GitHub
parent ff8e5054f5
commit ab75fd7748
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 0 deletions

View File

@ -98,10 +98,12 @@
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")
}
}

View File

@ -137,8 +137,10 @@
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"))
}
}

View File

@ -168,9 +168,11 @@
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"))

View File

@ -70,9 +70,11 @@
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 {