From 3450f55598548bc008346b2d7d512abbb2a5a3b9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Lesaint?= Date: Thu, 5 Sep 2019 14:34:52 +0200 Subject: [PATCH] SONAR-12369 fix build from source of non snapshot version --- sonar-plugin-api/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonar-plugin-api/build.gradle b/sonar-plugin-api/build.gradle index 08ed5c8e6c8..edaa18cd6c9 100644 --- a/sonar-plugin-api/build.gradle +++ b/sonar-plugin-api/build.gradle @@ -51,7 +51,7 @@ import org.apache.tools.ant.filters.ReplaceTokens processResources { filter ReplaceTokens, tokens: [ // The build version is composed of 4 fields, including the semantic version and the build number provided by Travis. - 'project.buildVersion': project.version.endsWith('SNAPSHOT') ? project.version : on3Digits(project.version) + '.' + System.getProperty("buildNumber"), + 'project.buildVersion': project.version.endsWith('SNAPSHOT') ? project.version : on3Digits(project.version) + '.' + (System.getProperty("buildNumber") ?: '0'), 'project.version.3digits': project.version.endsWith('SNAPSHOT') ? project.version : on3Digits(project.version) ] } -- 2.39.5