]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-12395 Update to sonar-update-center 1.23, handle new download URLs
authorWouter Admiraal <wouter.admiraal@sonarsource.com>
Mon, 21 Oct 2019 14:53:08 +0000 (16:53 +0200)
committerSonarTech <sonartech@sonarsource.com>
Mon, 28 Oct 2019 19:21:09 +0000 (20:21 +0100)
build.gradle
server/sonar-webserver-webapi/src/main/java/org/sonar/server/platform/ws/UpgradesAction.java

index b9bfd5617e7890fa76caf64dcbae965f41aac5bc..ac095b7bbc7ec573a9c6026f9ce4b7d266ad038d 100644 (file)
@@ -280,7 +280,7 @@ subprojects {
       dependency 'org.reflections:reflections:0.9.9'
       dependency 'org.simpleframework:simple:4.1.21'
       dependency 'org.sonarsource.orchestrator:sonar-orchestrator:3.27.0.2172'
-      dependency 'org.sonarsource.update-center:sonar-update-center-common:1.18.0.487'
+      dependency 'org.sonarsource.update-center:sonar-update-center-common:1.23.0.723'
       dependency 'org.subethamail:subethasmtp:3.1.7'
       dependency 'org.yaml:snakeyaml:1.17'
       dependency 'xml-apis:xml-apis:1.4.01'  
index a6fd5f95ec67569e84de4abcc1cb3a352974ed7b..5e1232deea1de85a38a091d5a6a9ace6cfa66201 100644 (file)
@@ -49,7 +49,10 @@ public class UpgradesAction implements SystemWsAction {
   private static final String PROPERTY_DESCRIPTION = "description";
   private static final String PROPERTY_RELEASE_DATE = "releaseDate";
   private static final String PROPERTY_CHANGE_LOG_URL = "changeLogUrl";
-  private static final String PROPERTY_DOWNLOAD_URL = "downloadUrl";
+  private static final String PROPERTY_COMMUNITY_DOWNLOAD_URL = "downloadUrl";
+  private static final String PROPERTY_DEVELOPER_DOWNLOAD_URL = "downloadDeveloperUrl";
+  private static final String PROPERTY_ENTERPRISE_DOWNLOAD_URL = "downloadEnterpriseUrl";
+  private static final String PROPERTY_DATACENTER_DOWNLOAD_URL = "downloadDatacenterUrl";
   private static final String OBJECT_PLUGINS = "plugins";
   private static final String ARRAY_REQUIRE_UPDATE = "requireUpdate";
   private static final String ARRAY_INCOMPATIBLE = "incompatible";
@@ -65,7 +68,10 @@ public class UpgradesAction implements SystemWsAction {
     jsonWriter.prop(PROPERTY_DESCRIPTION, release.getDescription());
     jsonWriter.propDate(PROPERTY_RELEASE_DATE, release.getDate());
     jsonWriter.prop(PROPERTY_CHANGE_LOG_URL, release.getChangelogUrl());
-    jsonWriter.prop(PROPERTY_DOWNLOAD_URL, release.getDownloadUrl());
+    jsonWriter.prop(PROPERTY_COMMUNITY_DOWNLOAD_URL, release.getDownloadUrl(Release.Edition.COMMUNITY));
+    jsonWriter.prop(PROPERTY_DEVELOPER_DOWNLOAD_URL, release.getDownloadUrl(Release.Edition.DEVELOPER));
+    jsonWriter.prop(PROPERTY_ENTERPRISE_DOWNLOAD_URL, release.getDownloadUrl(Release.Edition.ENTERPRISE));
+    jsonWriter.prop(PROPERTY_DATACENTER_DOWNLOAD_URL, release.getDownloadUrl(Release.Edition.DATACENTER));
   }
 
   @Override