From: Jim Procter Date: Wed, 30 Jun 2021 12:32:24 +0000 (+0100) Subject: JAL-3847 set default behaviour as exclude when dealing with duplicate entries in... X-Git-Url: http://source.jalview.org/gitweb/?p=jalview.git;a=commitdiff_plain;h=f60095e1803c3f716b8244057a4faefe5e767936 JAL-3847 set default behaviour as exclude when dealing with duplicate entries in jars and zips --- diff --git a/build.gradle b/build.gradle index fc37a00..172f9bc 100644 --- a/build.gradle +++ b/build.gradle @@ -51,6 +51,7 @@ repositories { } + // in ext the values are cast to Object. Ensure string values are cast as String (and not GStringImpl) for later use def string(Object o) { return o == null ? "" : o.toString() @@ -1335,6 +1336,9 @@ jar { "Codebase": application_codebase } + duplicatesStrategy "EXCLUDE" + + destinationDir = file("${jalviewDir}/${package_dir}") archiveName = rootProject.name+".jar" @@ -1396,6 +1400,9 @@ shadowJar { manifest { attributes 'Implementation-Version': JALVIEW_VERSION } + + duplicatesStrategy "EXCLUDE" + mainClassName = shadow_jar_main_class mergeServiceFiles() classifier = "all-"+JALVIEW_VERSION+"-j"+JAVA_VERSION