From 7778cdd576066a50862f9d5793d375266dd80757 Mon Sep 17 00:00:00 2001 From: Laura Trotta Date: Thu, 16 Jan 2025 13:33:58 +0100 Subject: [PATCH] fix snapshot build --- build.gradle.kts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index 44b915781..03b435535 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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 {