Skip to content

Commit

Permalink
Version increment automation
Browse files Browse the repository at this point in the history
Signed-off-by: pgodithi <pgodithi@amazon.com>
  • Loading branch information
prudhvigodithi committed Jul 8, 2022
1 parent 9989d2e commit fbfaed8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,7 @@ afterEvaluate {
}
}

// versionIncrement: Task to auto increment to the next development iteration
task versionIncrement {
onlyIf { System.getProperty('newVersion') }
doLast {
Expand All @@ -485,6 +486,7 @@ task versionIncrement {
// 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
include(name: "jni/CMakeLists.txt")
include(name: "build.gradle")
}
Expand Down

0 comments on commit fbfaed8

Please sign in to comment.