From 73de5c696f4719d043b1130ff7b375c05d4cb3e5 Mon Sep 17 00:00:00 2001 From: dankito Date: Sat, 13 Jun 2020 17:21:05 +0200 Subject: [PATCH] Using now Zip64 (as .zip now has more than 65505 entries) and removed signatures from .zip --- ui/BankingJavaFxApp/build.gradle | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ui/BankingJavaFxApp/build.gradle b/ui/BankingJavaFxApp/build.gradle index 9d0b0a8a..f336194d 100644 --- a/ui/BankingJavaFxApp/build.gradle +++ b/ui/BankingJavaFxApp/build.gradle @@ -49,6 +49,13 @@ dependencies { jar { + zip64 = true + + // If one of the source JARs is signed, merging it into one fat jar destroys the signature -> remove signatures + // (but may runs into problems with jars that require a valid signature like BouncyCastle, see + // https://stackoverflow.com/questions/51455197/gradle-fatjar-could-not-find-or-load-main-class) + exclude("META-INF/*.RSA", "META-INF/*.SF", "META-INF/*.DSA") + manifest { attributes 'Main-Class': mainClassName, 'Implementation-Title': title, @@ -58,4 +65,5 @@ jar { duplicatesStrategy = DuplicatesStrategy.EXCLUDE from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } } + } \ No newline at end of file