Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/keenwrite.git

Don't bundle JAR files twice.

Authordjarvis <email>
Date2016-12-20 18:15:01 GMT-0800
Commit6e58b22c278081e3461cd10614e5f7768d382314
Parente91d5d8
Delta5 lines added, 17 lines removed, 12-line decrease
build.gradle
// Remove digital signature files to ensure an executable JAR file.
- doFirst {
+ doFirst {
from {
- (configurations.runtime.resolve()).collect {
- it.isDirectory() ? it : zipTree(it)
- }
- {
- exclude 'META-INF/MANIFEST.MF'
- exclude 'META-INF/*.SF'
- exclude 'META-INF/*.DSA'
- exclude 'META-INF/*.RSA'
- }
- }
- }
-
- from {
- (configurations.runtime).collect {
- it.isDirectory() ? it : zipTree(it)
+ configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
}
-
+
+ exclude 'META-INF/*.RSA', 'META-INF/*.SF','META-INF/*.DSA'
+
manifest {
attributes 'Main-Class': mainClassName