Only add adapters to dist jar

(cherry picked from commit 20d630ce5b217799811779d7581d5878ddc83a6d)
This commit is contained in:
Octavia Togami 2020-03-22 15:00:02 -07:00 committed by MattBDev
parent 1fd4d7c27e
commit 989680d159

View File

@ -71,9 +71,7 @@ tasks.named<Copy>("processResources") {
filesMatching("plugin.yml") {
expand("internalVersion" to project.ext["internalVersion"])
}
from(zipTree("src/main/resources/worldedit-adapters.jar").matching {
exclude("META-INF/")
})
// exclude adapters entirely from this JAR, they should only be in the shadow JAR
exclude("**/worldedit-adapters.jar")
}
@ -85,6 +83,9 @@ tasks.named<Jar>("jar") {
}
tasks.named<ShadowJar>("shadowJar") {
from(zipTree("src/main/resources/worldedit-adapters.jar").matching {
exclude("META-INF/")
})
dependencies {
relocate("org.slf4j", "com.sk89q.worldedit.slf4j")
relocate("org.apache.logging.slf4j", "com.sk89q.worldedit.log4jbridge")