diff options
author | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2019-09-05 14:34:52 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2019-09-06 20:21:04 +0200 |
commit | 6e4367ab807afdb78fe968424f034657ca3802bf (patch) | |
tree | 052d4c52db7b1b07bd6678d542049330c6ce1758 /sonar-plugin-api | |
parent | 492b2869a956a4bc0d60e02cb9a79d3eb3655626 (diff) | |
download | sonarqube-6e4367ab807afdb78fe968424f034657ca3802bf.tar.gz sonarqube-6e4367ab807afdb78fe968424f034657ca3802bf.zip |
SONAR-12369 fix build from source of non snapshot version
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r-- | sonar-plugin-api/build.gradle | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-plugin-api/build.gradle b/sonar-plugin-api/build.gradle index 0e7745a1ab0..580f068d29e 100644 --- a/sonar-plugin-api/build.gradle +++ b/sonar-plugin-api/build.gradle @@ -49,7 +49,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) ] } |