3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-08 04:20:06 +01:00

Only add adapters to dist jar

(cherry picked from commit 20d630ce5b217799811779d7581d5878ddc83a6d)
Dieser Commit ist enthalten in:
Octavia Togami 2020-03-22 15:00:02 -07:00 committet von MattBDev
Ursprung 1fd4d7c27e
Commit 989680d159

Datei anzeigen

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