Skip to content

Commit

Permalink
Use externally-defined OpenSearch version when specified.
Browse files Browse the repository at this point in the history
Signed-off-by: dblock <dblock@amazon.com>
  • Loading branch information
dblock committed Aug 13, 2021
1 parent 254510e commit 5625ae4
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

buildscript {
ext {
opensearch_version = "1.0.0-rc1"
opensearch_version = System.getProperty("opensearch.version", "1.0.0")
}

repositories {
Expand Down Expand Up @@ -55,12 +55,16 @@ repositories {
}

ext {
opensearchVersion = '1.0.0'
opensearchVersion = System.getProperty("opensearch.version", "1.0.0")
isSnapshot = "true" == System.getProperty("build.snapshot", "true")
}

allprojects {
version = "${opensearchVersion}.0-rc1"
version = "${opensearchVersion}" - "-SNAPSHOT" + ".0"

if (isSnapshot) {
version += "-SNAPSHOT"
}

plugins.withId('java') {
sourceCompatibility = targetCompatibility = "1.8"
Expand Down

0 comments on commit 5625ae4

Please sign in to comment.