JAL-3847 set default behaviour as exclude when dealing with duplicate entries in...
[jalview.git] / build.gradle
index fc37a00..172f9bc 100644 (file)
@@ -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