aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-core
diff options
context:
space:
mode:
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));