Fix included mod jars being exploded into outer jar

Caused by this stupid behavior of the shadow plugin:
https://github.com/johnrengelman/shadow/issues/111

Fixes #976
This commit is contained in:
Jonas Herzig
2024-07-10 21:59:42 +02:00
parent 203aad687d
commit 5b766b4fe7

View File

@@ -303,7 +303,7 @@ val configureRelocation by tasks.registering {
} }
val bundleJar by tasks.registering(com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar::class) { val bundleJar by tasks.registering(com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar::class) {
from(tasks.remapJar.flatMap { it.archiveFile }.map { zipTree(it) }) from(tasks.remapJar.flatMap { it.archiveFile })
from(jGui.tasks.remapJar.flatMap { it.archiveFile }.map { zipTree(it) }) { from(jGui.tasks.remapJar.flatMap { it.archiveFile }.map { zipTree(it) }) {
filesMatching("mixins.jgui.json") { filesMatching("mixins.jgui.json") {