@@ -385,12 +385,6 @@ task updateVersion {
385
385
println " Setting version to ${ newVersion} ."
386
386
// String tokenization to support -SNAPSHOT
387
387
ant. replaceregexp(file :' build.gradle' , match : ' "opensearch.version", "\\ d.*"' , replace : ' "opensearch.version", "' + newVersion. tokenize(' -' )[0 ] + ' -SNAPSHOT"' , flags :' g' , byline :true )
388
- ant. replaceregexp(file :' ../.github/workflows/dashboards-reports-test-and-build-workflow.yml' , match :' OPENSEARCH_PLUGIN_VERSION: \\ d+.\\ d+.\\ d+.\\ d+' , replace :' OPENSEARCH_PLUGIN_VERSION: ' + newVersion. tokenize(' -' )[0 ] + ' .0' , flags :' g' , byline :true )
389
- ant. replaceregexp(file :' ../.github/workflows/draft-release-notes-workflow.yml' , match :' version: \\ d+.\\ d+.\\ d+.\\ d+' , replace :' version: ' + newVersion. tokenize(' -' )[0 ] + ' .0' , flags :' g' , byline :true )
390
- // Match key version in JSON files.
391
- ant. replaceregexp(file :' ../dashboards-reports/opensearch_dashboards.json' , match :' "version": "\\ d+.\\ d+.\\ d+.\\ d+' , replace :' "version": ' + ' "' + newVersion. tokenize(' -' )[0 ] + ' .0' , flags :' g' , byline :true )
392
- ant. replaceregexp(file :' ../dashboards-reports/package.json' , match :' "version": "\\ d+.\\ d+.\\ d+.\\ d+' , replace :' "version": ' + ' "' + newVersion. tokenize(' -' )[0 ] + ' .0' , flags :' g' , byline :true )
393
- // Match key opensearchDashboardsVersion in JSON files.
394
- ant. replaceregexp(file :' ../dashboards-reports/opensearch_dashboards.json' , match :' "opensearchDashboardsVersion": "\\ d+.\\ d+.\\ d+' , replace :' "opensearchDashboardsVersion": ' + ' "' + newVersion. tokenize(' -' )[0 ], flags :' g' , byline :true )
388
+ ant. replaceregexp(file :' ./.github/workflows/draft-release-notes-workflow.yml' , match :' version: \\ d+.\\ d+.\\ d+.\\ d+' , replace :' version: ' + newVersion. tokenize(' -' )[0 ] + ' .0' , flags :' g' , byline :true )
395
389
}
396
390
}
0 commit comments