From c853ca5440d0942e9f2cf2eacff00d980c488783 Mon Sep 17 00:00:00 2001 From: Ben Soares Date: Mon, 1 Jul 2019 15:57:53 +0100 Subject: [PATCH] JAL-3337 added gzip compression. Archive filename now matches the ones in docroot/source/ when using -PJALVIEW_VERSION=... --- build.gradle | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index 883eede..0f948cf 100644 --- a/build.gradle +++ b/build.gradle @@ -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") -- 1.7.10.2