X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=build.gradle;h=0bb89f93f0c32064297cfc3cb91b1075a75563a6;hb=0741bd39f4f7d5134db1e9f3a4c7b48519c3721d;hp=c24c02078a524c81c9adfdffc2cca1cd3d60ee6f;hpb=58d02ae66d3784d8a8c8259debf226d67afb932a;p=jalview.git diff --git a/build.gradle b/build.gradle index c24c020..0bb89f9 100644 --- a/build.gradle +++ b/build.gradle @@ -1170,14 +1170,21 @@ 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 into project.name - def EXCLUDE_FILES=["bin/*","test-*","clover*/*" + def EXCLUDE_FILES=["build/*","bin/*","test-output/","test-reports","tests","clover*/*" ,".*" + ,"benchmarking/*" ,"**/.*" ,"*.class" ,"**/*.class","$j11modDir/**/*.jar","appletlib","**/*locales" @@ -1189,9 +1196,9 @@ task sourceDist (type: Tar) { "JAVA-11-README", "FEATURETODO", "LICENSE", - "README", + "**/README", "RELEASE", - "THIRDPARTYLIBS", + "THIRDPARTYLIBS","TESTNG", "build.gradle", "gradle.properties", "**/*.java", @@ -1211,40 +1218,23 @@ task sourceDist (type: Tar) { from(jalviewDir) { exclude (EXCLUDE_FILES) exclude (PROCESS_FILES) - include (eclipse_extra_jdt_prefs_file) - include ("$schemaDir/**/*") - include ("$utilsDir/**/*") - include ("$docDir/**/*") - include ("$examplesDir/**/*") - include ("getdown/**/*") - - include ("$sourceDir/**/*.cdr") - include ("$j8libDir/**/*.jar") - include ("$j11libDir/**/*.jar") - include ("$resourceDir/**/*") - - //include ("jalview-jalopy.xml") - //include ("JalviewApplet.jpx") - //include ("JalviewX.jpx") - //include ("nbbuild.xml") - //include ("nbproject/genfiles.properties") - //include ("nbproject/project.properties") - //include ("nbproject/project.xml") - - include ("$helpDir/**/*") - exclude ("$helpDir/**/*.html") - exclude ("appletlib") exclude ("**/*locales") exclude ("*locales/**") exclude ("utils/InstallAnywhere") - exclude (libDir) - exclude (getdown_files_dir) + + exclude (getdown_files_dir) exclude (getdown_website_dir) // 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) +// exclude(PROCESS_FILES) +// } } task helppages {