Skip to content

Commit 2a4d7dd

Browse files
committed
revert changes to build
1 parent 80c96d9 commit 2a4d7dd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build.gradle.kts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919

2020
allprojects {
2121
group = "co.elastic.clients"
22-
version = (File(project.rootDir, "config/version.txt").readText().trim() + "-SNAPSHOT")
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")
2325

2426
repositories {
2527
maven {

0 commit comments

Comments
 (0)