Skip to content

Commit

Permalink
Staging version increment 1.x
Browse files Browse the repository at this point in the history
Signed-off-by: prudhvigodithi <pgodithi@amazon.com>
  • Loading branch information
prudhvigodithi authored and ohltyler committed Aug 8, 2022
1 parent e6e83ba commit 81f4c7a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -688,8 +688,8 @@ tasks.withType(licenseHeaders.class) {
additionalLicense 'AL ', 'Apache', 'Licensed under the Apache License, Version 2.0 (the "License")'
}

// 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 @@ -699,8 +699,8 @@ task versionIncrement {
fileset(dir: projectDir) {
// Include the required files that needs to be updated with new Version
include(name: ".github/workflows/CI.yml")
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 81f4c7a

Please sign in to comment.