Skip to content

Commit

Permalink
Move versioning logic to the root project (#208)
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 authored Nov 1, 2023
1 parent f9c47fd commit 5e330a5
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", "2.10.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", "2.10.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", "2.10.0")
plugin_version = opensearch_version
if (isSnapshot) {
opensearch_version += "-SNAPSHOT"
}
}

0 comments on commit 5e330a5

Please sign in to comment.