Merge branch 'develop' into releases/Release_2_11_Branch
[jalview.git] / build.gradle
index 6c1e365..0bb89f9 100644 (file)
@@ -1170,7 +1170,13 @@ clean {
 task sourceDist (type: Tar) {
   
   def VERSION_UNDERSCORES = JALVIEW_VERSION.replaceAll("\\.", "_")
-  archiveFileName = project.name + "_" + VERSION_UNDERSCORES + ".tar.gz"
+  def outputFileName = project.name + "_" + VERSION_UNDERSCORES + ".tar.gz"
+  // cater for buildship < 3.1 [3.0.1 is max version in eclipse 2018-09]
+  try {
+    archiveFileName = outputFileName
+  } catch (Exception e) {
+    archiveName = outputFileName
+  }
   
   compression Compression.GZIP
   
@@ -1192,7 +1198,7 @@ task sourceDist (type: Tar) {
   "LICENSE",
   "**/README",
   "RELEASE",
-  "THIRDPARTYLIBS","TESTNG","**/README",
+  "THIRDPARTYLIBS","TESTNG",
   "build.gradle",
   "gradle.properties",
   "**/*.java",
@@ -1223,11 +1229,12 @@ task sourceDist (type: Tar) {
   // exluding these as not using jars as modules yet
   exclude ("$j11modDir/**/*.jar")
 }
-  from (jalviewDir) {
-    // explicit includes for stuff that seemed to not get included
-    include(fileTree("test/**/*"))
-    exclude(EXCLUDE_FILES)
-  }
+//  from (jalviewDir) {
+//    // explicit includes for stuff that seemed to not get included
+//    include(fileTree("test/**/*."))
+//    exclude(EXCLUDE_FILES)
+//    exclude(PROCESS_FILES)
+//  }
 }
 
 task helppages  {