Skip to content

Commit

Permalink
Extract version into gradle.properties. (opensearch-project#193)
Browse files Browse the repository at this point in the history
Signed-off-by: dblock <[email protected]>
  • Loading branch information
dblock authored Jul 29, 2022
1 parent 103ff25 commit 2c30d4e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@

allprojects {
group = "org.opensearch.client"

// Release manager provides a $VERSION. If not present, it's a local or CI snapshot build.
version = System.getenv("VERSION") ?:
(File(project.rootDir, "config/version.txt").readText().trim() + "-SNAPSHOT")
version = System.getenv("VERSION") ?: System.getProperty("version") + "-SNAPSHOT"

repositories {
mavenLocal()
Expand Down
1 change: 0 additions & 1 deletion config/version.txt

This file was deleted.

1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
systemProp.version = 2.1.0

0 comments on commit 2c30d4e

Please sign in to comment.