Skip to content

Commit

Permalink
updating build.gradle to use snapshot by default (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
sejli committed Mar 30, 2023
1 parent 87dafb0 commit 1b884f2
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,11 @@ validateNebulaPom.enabled = false

buildscript {
ext {
plugin_version = "3.0.0"
snapshot = true // Set to false on release
if (snapshot) {
opensearch_version = plugin_version + "-SNAPSHOT"
} else {
opensearch_version = plugin_version
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"
}
}

Expand Down

0 comments on commit 1b884f2

Please sign in to comment.