More shading fixes

This commit is contained in:
Kenzie Togami 2019-03-13 20:15:01 -07:00
parent 4be72fb983
commit fba12b1282
No known key found for this signature in database
GPG Key ID: 5D200B325E157A81
2 changed files with 8 additions and 3 deletions

View File

@ -38,9 +38,10 @@ jar {
shadowJar { shadowJar {
dependencies { dependencies {
relocate "org.slf4j", "com.sk89q.worldedit.slf4j"
include(dependency(':worldedit-core')) include(dependency(':worldedit-core'))
// Must not be relocated, for StaticLoggerBinder to work: include(dependency('org.slf4j:slf4j-api'))
include(dependency("org.slf4j:slf4j-jdk14:1.7.26")) include(dependency("org.slf4j:slf4j-jdk14"))
relocate ("org.bstats", "com.sk89q.worldedit.bukkit.bstats") { relocate ("org.bstats", "com.sk89q.worldedit.bukkit.bstats") {
include(dependency("org.bstats:bstats-bukkit:1.4")) include(dependency("org.bstats:bstats-bukkit:1.4"))
} }

View File

@ -84,8 +84,12 @@ jar {
shadowJar { shadowJar {
dependencies { dependencies {
relocate "org.slf4j", "com.sk89q.worldedit.slf4j"
relocate "org.apache.logging.slf4j", "com.sk89q.worldedit.log4jbridge"
include(dependency(':worldedit-core')) include(dependency(':worldedit-core'))
include(dependency("org.apache.logging.log4j:log4j-slf4j-impl:2.11.2")) include(dependency('org.slf4j:slf4j-api'))
include(dependency("org.apache.logging.log4j:log4j-slf4j-impl"))
} }
} }