Strip META-INF/maven and services - avoid problems with forge 1.18

This commit is contained in:
Mike Primm 2021-12-08 20:34:03 -06:00
parent 1543a2e7c4
commit f40cc3d6ca
4 changed files with 8 additions and 0 deletions

View File

@ -44,6 +44,8 @@ shadowJar {
include(dependency('org.eclipse.jetty.orbit:javax.servlet:'))
include(dependency('org.postgresql:postgresql:'))
include(dependency(':DynmapCoreAPI'))
exclude("META-INF/maven/**")
exclude("META-INF/services/**")
}
relocate('org.json.simple', 'org.dynmap.json.simple')
relocate('org.yaml.snakeyaml', 'org.dynmap.snakeyaml')

View File

@ -47,6 +47,8 @@ processResources
shadowJar {
dependencies {
include(dependency(':DynmapCore'))
exclude("META-INF/maven/**")
exclude("META-INF/services/**")
}
archiveName = "Dynmap-${parent.version}-forge-1.16.5.jar"
destinationDir = file '../target'

View File

@ -51,6 +51,8 @@ processResources
shadowJar {
dependencies {
include(dependency(':DynmapCore'))
exclude("META-INF/maven/**")
exclude("META-INF/services/**")
}
archiveName = "Dynmap-${parent.version}-forge-1.17.1.jar"
destinationDir = file '../target'

View File

@ -53,6 +53,8 @@ shadowJar {
dependencies {
include(dependency(':DynmapCore'))
include(dependency("commons-codec:commons-codec:"))
exclude("META-INF/maven/**")
exclude("META-INF/services/**")
}
relocate('org.apache.commons.codec', 'org.dynmap.forge_1_18.commons.codec')