Fix the single-jar Linux build: drop Bouncy Castle signature files

Merged into one jar their signatures no longer match and Java refused to start.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Nexoniarz 2026-10-08 15:13:12 +02:00
commit 94d43ce77a
4 changed files with 11 additions and 5 deletions

View file

@ -76,3 +76,9 @@ compose.desktop {
buildTypes.release.proguard { isEnabled.set(false) }
}
}
// Bouncy Castle jars are signed; merged into one jar those signatures no
// longer match and Java refuses to start. The single jar doesn't need them.
tasks.matching { it.name.startsWith("packageUberJar") || it.name.startsWith("packageReleaseUberJar") }.configureEach {
(this as org.gradle.jvm.tasks.Jar).exclude("META-INF/*.SF", "META-INF/*.DSA", "META-INF/*.RSA", "META-INF/*.EC")
}