Skip to content

Commit

Permalink
fix snapshot build
Browse files Browse the repository at this point in the history
  • Loading branch information
l-trotta committed Jan 16, 2025
1 parent 60b7551 commit 7778cdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ allprojects {
group = "co.elastic.clients"
// Release manager provides a $VERSION. If not present, it's a local or CI snapshot build.
// also need to add the qualifier in case it's a staging build
version = if(System.getenv("VERSION").isNullOrEmpty()) (File(project.rootDir, "config/version.txt").readText().trim() + "-SNAPSHOT")
version = if(System.getenv("VERSION")==null) (File(project.rootDir, "config/version.txt").readText().trim() + "-SNAPSHOT")
else System.getenv("VERSION") + "-" + File(project.rootDir, "config/version-qualifier.txt").readText().trim()

repositories {
Expand Down

0 comments on commit 7778cdd

Please sign in to comment.