JAL-3978 clean up unnecessary local variables for JALVIEW_VERSION_UNDERSCORES
authorBen Soares <bsoares@dundee.ac.uk>
Mon, 25 Apr 2022 14:03:49 +0000 (15:03 +0100)
committerBen Soares <bsoares@dundee.ac.uk>
Mon, 25 Apr 2022 14:03:49 +0000 (15:03 +0100)
build.gradle

index 76ccefd..100bc59 100644 (file)
@@ -2018,8 +2018,7 @@ clean {
 task cleanInstallersDataFiles {
   def installersOutputTxt = file("${jalviewDir}/${install4jBuildDir}/output.txt")
   def installersSha256 = file("${jalviewDir}/${install4jBuildDir}/sha256sums")
-  def VERSION_UNDERSCORES = JALVIEW_VERSION.replaceAll("\\.", "_")
-  def hugoDataJsonFile = file("${jalviewDir}/${install4jBuildDir}/installers-${VERSION_UNDERSCORES}.json")
+  def hugoDataJsonFile = file("${jalviewDir}/${install4jBuildDir}/installers-${JALVIEW_VERSION_UNDERSCORES}.json")
   doFirst {
     delete installersOutputTxt
     delete installersSha256
@@ -2370,8 +2369,7 @@ task makeDataJsonFile {
 
   def installersOutputTxt = file("${jalviewDir}/${install4jBuildDir}/output.txt")
   def installersSha256 = file("${jalviewDir}/${install4jBuildDir}/sha256sums")
-  def VERSION_UNDERSCORES = JALVIEW_VERSION.replaceAll("\\.", "_")
-  def hugoDataJsonFile = file("${jalviewDir}/${hugo_build_dir}/data/installers-${VERSION_UNDERSCORES}.json")
+  def hugoDataJsonFile = file("${jalviewDir}/${hugo_build_dir}/data/installers-${JALVIEW_VERSION_UNDERSCORES}.json")
 
   inputs.file(installersOutputTxt)
   if (install4jCheckSums) {