Skip to content

Commit 7778cdd

Browse files
committed
fix snapshot build
1 parent 60b7551 commit 7778cdd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ allprojects {
2121
group = "co.elastic.clients"
2222
// Release manager provides a $VERSION. If not present, it's a local or CI snapshot build.
2323
// also need to add the qualifier in case it's a staging build
24-
version = if(System.getenv("VERSION").isNullOrEmpty()) (File(project.rootDir, "config/version.txt").readText().trim() + "-SNAPSHOT")
24+
version = if(System.getenv("VERSION")==null) (File(project.rootDir, "config/version.txt").readText().trim() + "-SNAPSHOT")
2525
else System.getenv("VERSION") + "-" + File(project.rootDir, "config/version-qualifier.txt").readText().trim()
2626

2727
repositories {

0 commit comments

Comments
 (0)