diff --git a/build.gradle b/build.gradle index 20ab8bc7fe..8d8023221b 100644 --- a/build.gradle +++ b/build.gradle @@ -384,13 +384,6 @@ task updateVersion { doLast { ext.newVersion = System.getProperty('newVersion') println "Setting version to ${newVersion}." - // String tokenization to support -SNAPSHOT - ant.replaceregexp(match: opensearch_version.tokenize('-')[0], replace: newVersion.tokenize('-')[0], flags:'g', byline:true) { - fileset(dir: projectDir) { - // Include the required files that needs to be updated with new Version - // No BWC tests in this major release - } - } ant.replaceregexp(file:'build.gradle', match: '"opensearch.version", "\\d.*"', replace: '"opensearch.version", "' + newVersion.tokenize('-')[0] + '-SNAPSHOT"', flags:'g', byline:true) } }