diff --git a/gradle/version.gradle b/gradle/version.gradle index 9f5c88a..f5561f6 100644 --- a/gradle/version.gradle +++ b/gradle/version.gradle @@ -1,13 +1,9 @@ def loadVersion() { - File file = new File("${rootProject.rootDir}/.version") - if (!file.exists()) { + def appVersion = System.getenv('APP_VERSION') + if(appVersion == null){ return '0.0.999' } - def pipelineId = System.getenv('PIPELINE_ID') - if(pipelineId == null){ - return '0.0.999' - } - return file.text + '.' + pipelineId + return appVersion } version = loadVersion()