aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-core
diff options
context:
space:
mode:
authorTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2017-02-09 20:09:41 +0100
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2017-02-10 17:41:31 +0100
commiteb21235975107e58722648c204e6fe883f7808e9 (patch)
treefa9c0e8beff16f79ae2d32ac42fc0a94c89e134e /sonar-core
parent25732f53ecba74d8cf9762b65988eb180b672ebb (diff)
downloadsonarqube-eb21235975107e58722648c204e6fe883f7808e9.tar.gz
sonarqube-eb21235975107e58722648c204e6fe883f7808e9.zip
SONAR-8637 Display functional version of plugins when available
Diffstat (limited to 'sonar-core')
-rw-r--r--sonar-core/src/main/java/org/sonar/core/platform/PluginInfo.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/platform/PluginInfo.java b/sonar-core/src/main/java/org/sonar/core/platform/PluginInfo.java
index 8e489e7e725..71339ca7a37 100644
--- a/sonar-core/src/main/java/org/sonar/core/platform/PluginInfo.java
+++ b/sonar-core/src/main/java/org/sonar/core/platform/PluginInfo.java
@@ -107,6 +107,8 @@ public class PluginInfo implements Comparable<PluginInfo> {
@CheckForNull
private Version version;
+ private String displayVersion;
+
@CheckForNull
private Version minimalSqVersion;
@@ -176,6 +178,16 @@ public class PluginInfo implements Comparable<PluginInfo> {
}
@CheckForNull
+ public String getDisplayVersion() {
+ return displayVersion;
+ }
+
+ public PluginInfo setDisplayVersion(@Nullable String displayVersion) {
+ this.displayVersion = displayVersion;
+ return this;
+ }
+
+ @CheckForNull
public Version getMinimalSqVersion() {
return minimalSqVersion;
}
@@ -407,6 +419,7 @@ public class PluginInfo implements Comparable<PluginInfo> {
info.setLicense(manifest.getLicense());
info.setOrganizationName(manifest.getOrganization());
info.setOrganizationUrl(manifest.getOrganizationUrl());
+ info.setDisplayVersion(manifest.getDisplayVersion());
String minSqVersion = manifest.getSonarVersion();
if (minSqVersion != null) {
info.setMinimalSqVersion(Version.create(minSqVersion));