Skip to content

Commit 164dca0

Browse files
committed
revert changes to build
1 parent 1249d19 commit 164dca0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: build.gradle.kts

+3-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@
1919

2020
allprojects {
2121
group = "co.elastic.clients"
22-
version = (File(project.rootDir, "config/version.txt").readText().trim() + "-SNAPSHOT")
23-
22+
// Release manager provides a $VERSION. If not present, it's a local or CI snapshot build.
23+
version = System.getenv("VERSION") ?:
24+
(File(project.rootDir, "config/version.txt").readText().trim() + "-SNAPSHOT")
2425
repositories {
2526
maven {
2627
name = "Elastic-Snapshots"

0 commit comments

Comments
 (0)