diff --git a/build.gradle.kts b/build.gradle.kts index ef0e9e17c..205dc0e96 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -25,6 +25,9 @@ allprojects { if (System.getenv("VERSION")==null) { version = (File(project.rootDir, "config/version.txt").readText().trim() + "-SNAPSHOT") } + else if (System.getenv("VERSION").endsWith("-SNAPSHOT")) { + version = System.getenv("VERSION") + } else { version = System.getenv("VERSION") + "-" + File(project.rootDir, "config/version-qualifier.txt").readText().trim() }