From e6d78a732aba76e1a5ef330c1bf6565eb6775ee9 Mon Sep 17 00:00:00 2001 From: David Rautureau Date: Fri, 6 Jan 2017 10:21:29 +0100 Subject: [PATCH] SONAR-8458 store semantic version in sq-version.txt Scanners load the file sq-version.txt to get the version of SonarQube. Some scanners, for example Maven, do not correctly support the new format on 4 fields. For this reason a 3-digits format must be kept for backward-compatibility. The complete version in the new format is available in the new file sonar-api-version.txt --- pom.xml | 5 +++ sonar-plugin-api/pom.xml | 33 +++++++++++++++++++ .../src/main/resources/sq-version.txt | 2 +- 3 files changed, 39 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 5b054ffc6f8..61002e73d98 100644 --- a/pom.xml +++ b/pom.xml @@ -106,6 +106,11 @@ frontend-maven-plugin 1.3 + + org.codehaus.gmaven + groovy-maven-plugin + 2.0 + org.apache.maven.plugins maven-assembly-plugin diff --git a/sonar-plugin-api/pom.xml b/sonar-plugin-api/pom.xml index cddd24b91af..2cef8a0681f 100644 --- a/sonar-plugin-api/pom.xml +++ b/sonar-plugin-api/pom.xml @@ -13,6 +13,10 @@ SonarQube :: Plugin API + + ${project.version} + +