diff --git a/build.gradle b/build.gradle index 8fed96e5a..0efa2c2fe 100644 --- a/build.gradle +++ b/build.gradle @@ -29,7 +29,8 @@ project.ext { arch = getArchName() privateExtensions = file("$rootDir/private_extensions.txt").exists() ? file("$rootDir/private_extensions.txt").readLines() : [] isFullRelease = System.getenv('RELEASE') != null && Boolean.parseBoolean(System.getenv('RELEASE')) - versionString = file('version').text + (isFullRelease ? '' : '-SNAPSHOT') + isStage = System.getenv('STAGE') != null && Boolean.parseBoolean(System.getenv('STAGE')) + versionString = file('version').text + (isFullRelease || isStage ? '' : '-SNAPSHOT') canonicalVersionString = file('version').text buildId = UUID.nameUUIDFromBytes(versionString.getBytes()) obfuscate = true