Skip to content

Commit

Permalink
Move versioning logic to the root project
Browse files Browse the repository at this point in the history
Instead of computing the OpenSearch + plugin version in the subprojects,
we can do it in the root project and propagate the `ext` variables.

Signed-off-by: Michael Froh <[email protected]>
  • Loading branch information
msfroh committed Nov 1, 2023
1 parent 7e56847 commit 8c29e8f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 18 deletions.
9 changes: 0 additions & 9 deletions amazon-kendra-intelligent-ranking/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,6 @@ loggerUsageCheck.enabled = false
validateNebulaPom.enabled = false

buildscript {
ext {
isSnapshot = "true" == System.getProperty("build.snapshot", "true")
opensearch_version = System.getProperty("opensearch.version", "3.0.0")
plugin_version = opensearch_version
if (isSnapshot) {
opensearch_version += "-SNAPSHOT"
}
}

repositories {
mavenLocal()
maven { url "https://aws.oss.sonatype.org/content/repositories/snapshots" }
Expand Down
9 changes: 0 additions & 9 deletions amazon-personalize-ranking/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,6 @@ loggerUsageCheck.enabled = false
validateNebulaPom.enabled = false

buildscript {
ext {
isSnapshot = "true" == System.getProperty("build.snapshot", "true")
opensearch_version = System.getProperty("opensearch.version", "3.0.0")
plugin_version = opensearch_version
if (isSnapshot) {
opensearch_version += "-SNAPSHOT"
}
}

repositories {
mavenLocal()
maven { url "https://aws.oss.sonatype.org/content/repositories/snapshots" }
Expand Down
8 changes: 8 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
ext {
isSnapshot = "true" == System.getProperty("build.snapshot", "true")
opensearch_version = System.getProperty("opensearch.version", "3.0.0")
plugin_version = opensearch_version
if (isSnapshot) {
opensearch_version += "-SNAPSHOT"
}
}

0 comments on commit 8c29e8f

Please sign in to comment.