JAL-3337 added gzip compression. Archive filename now matches the ones in docroot...
authorBen Soares <bsoares@dundee.ac.uk>
Mon, 1 Jul 2019 14:57:53 +0000 (15:57 +0100)
committerBen Soares <bsoares@dundee.ac.uk>
Mon, 1 Jul 2019 14:57:53 +0000 (15:57 +0100)
build.gradle

index 883eede..0f948cf 100644 (file)
@@ -1149,11 +1149,16 @@ clean {
 }
 
 task sourceDist (type: Tar) {
-  archiveClassifier = "source-" + JALVIEW_VERSION
   
-  from jalviewDir
-  into project.name + "-" + JALVIEW_VERSION
+  def VERSION_UNDERSCORES = JALVIEW_VERSION.replaceAll("\\.", "_")
+  archiveFileName = project.name + "_" + VERSION_UNDERSCORES + ".tar.gz"
+  
+  compression Compression.GZIP
   
+  from jalviewDir
+  into project.name
+   
   exclude (".*")
   exclude ("**/.*")
   exclude ("*.class")