Skip to content

Commit

Permalink
Version increment automation: task rename updateVersion
Browse files Browse the repository at this point in the history
Signed-off-by: pgodithi <pgodithi@amazon.com>
  • Loading branch information
prudhvigodithi committed Jul 12, 2022
1 parent 7a3ec96 commit 707fd3e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ evaluationDependsOnChildren()

check.dependsOn subprojects*.check

// versionIncrement: Task to auto increment to the next development iteration
task versionIncrement {
// updateVersion: Task to auto increment to the next development iteration
task updateVersion {
onlyIf { System.getProperty('newVersion') }
doLast {
ext.newVersion = System.getProperty('newVersion')
Expand All @@ -105,8 +105,8 @@ task versionIncrement {
fileset(dir: projectDir) {
// Include the required files that needs to be updated with new Version
include(name: "alerting/build.gradle")
include(name: "build.gradle")
}
}
ant.replaceregexp(file:'build.gradle', match: '"opensearch.version", "\\d.*"', replace: '"opensearch.version", "' + newVersion.tokenize('-')[0] + '-SNAPSHOT"', flags:'g', byline:true)
}
}

0 comments on commit 707fd3e

Please sign in to comment.