Exclude modlauncher services from META-INF

Fixes a (harmless) debug error that happens when services are instantiated
This commit is contained in:
makamys committed 2023-03-20 10:21:12 +01:00
1 parent abba979a3d
commit d29d950f3d
1 file changed
+8 -1
+8 -1
View File
@@ -172,7 +172,14 @@ flavors.each {
dependsOn "mixinJar$_flavor"
dependsOn "bridgeJar$_flavor"
from zipTree(tasks."mixinJar$_flavor".archiveFile).matching { exclude 'module-info.class' }
from zipTree(tasks."mixinJar$_flavor".archiveFile).matching {
exclude 'module-info.class'
eachFile {
if(it.path.startsWith("META-INF/services/")) {
it.filter({l -> !l.startsWith("org.spongepowered.asm.service.modlauncher.") ? l : null})
}
}
}
from zipTree(tasks."bridgeJar$_flavor".archiveFile).matching { include 'org/spongepowered/asm/bridge/*' }
doLast {