From 2a4d7dd86a662d3e9ba9dd5ed3e9f35896f872b2 Mon Sep 17 00:00:00 2001 From: Laura Trotta Date: Thu, 17 Oct 2024 15:20:20 +0200 Subject: [PATCH] revert changes to build --- build.gradle.kts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index 70a44a710..18588c0ae 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -19,7 +19,9 @@ allprojects { group = "co.elastic.clients" - version = (File(project.rootDir, "config/version.txt").readText().trim() + "-SNAPSHOT") + // Release manager provides a $VERSION. If not present, it's a local or CI snapshot build. + version = System.getenv("VERSION") ?: + (File(project.rootDir, "config/version.txt").readText().trim() + "-SNAPSHOT") repositories { maven {