[minecraft-bundle] Fix sources bundle

This commit is contained in:
2025-10-27 00:50:53 +01:00
parent f20e997967
commit ffbecb9158
6 changed files with 25 additions and 13 deletions

View File

@@ -1,3 +1,5 @@
import de.siphalor.tweed5.minecraft.bundled.sources.BundledSourcesJar
plugins {
id("de.siphalor.tweed5.minecraft.mod.dummy")
}
@@ -25,12 +27,7 @@ tasks.shadowJar {
relocate("org.objectweb.asm", "de.siphalor.tweed5.shadowed.org.objectweb.asm")
}
tasks.register<Jar>("sourcesJar") {
inputs.files(bundledSourcesConfiguration)
from(
bundledSourcesConfiguration.get().resolve()
.filter { it.name.startsWith(rootProject.name) }
.map { zipTree(it) }
)
tasks.register<BundledSourcesJar>("sourcesJar") {
sources.from(bundledSourcesConfiguration)
archiveClassifier.set("sources")
}