From: Jim Procter Date: Thu, 12 Sep 2024 10:04:37 +0000 (+0100) Subject: JAL-4454 make sure 2.11.4.0-test is stripped - *for reals* X-Git-Tag: Release_2_11_4_0~8^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=e87c7127294709e3eb3f6e2ee6582c6a6890d788;p=jalview.git JAL-4454 make sure 2.11.4.0-test is stripped - *for reals* --- diff --git a/build.gradle b/build.gradle index cf9cd86..1cd0565 100644 --- a/build.gradle +++ b/build.gradle @@ -1328,10 +1328,10 @@ def setReleaseAndWhatsNew(File whatsnewMdFile, File releaseMdFile) { if (CHANNEL != "RELEASE") { var nearestVersion = "${JALVIEW_VERSION_UNDERSCORES}" - print "Stripping rc/test/etc for ${nearestVersion}" - nearestVersion = nearestVersion.replaceAll(~/-?(d|rc|test|develop|dev).+/,"") + println "Stripping rc/test/etc for ${nearestVersion}" + nearestVersion = nearestVersion.replaceAll(~/-?(d|rc|test|develop|dev).*/,"") var nearestMd = file("${jalviewDir}/${whatsnew_dir}/whatsnew-${nearestVersion}.md") - print "Looking in ${nearestMd}" + println "Looking in ${nearestMd}" if (nearestMd.exists()) { whatsnewMdFile = nearestMd releaseMdFile = file("${jalviewDir}/${releases_dir}/release-${nearestVersion}.md")