]> source.dussan.org Git - sonarqube.git/commitdiff
Fix DB upgrade form
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Tue, 6 Sep 2016 12:28:28 +0000 (14:28 +0200)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Tue, 6 Sep 2016 12:28:28 +0000 (14:28 +0200)
server/sonar-server/src/main/java/org/sonar/server/platform/platformlevel/PlatformLevel2.java
server/sonar-server/src/main/java/org/sonar/server/platform/platformlevel/PlatformLevel3.java

index e93c580fdf2a7f3b3adc133343fb500174775b2f..19fa44aac740f26dcc53002988f763da2aff62ad 100644 (file)
@@ -19,6 +19,7 @@
  */
 package org.sonar.server.platform.platformlevel;
 
+import org.sonar.api.utils.Durations;
 import org.sonar.core.i18n.DefaultI18n;
 import org.sonar.core.i18n.RuleI18nManager;
 import org.sonar.core.platform.PluginClassloaderFactory;
@@ -38,6 +39,7 @@ import org.sonar.server.plugins.ServerPluginJarExploder;
 import org.sonar.server.plugins.ServerPluginRepository;
 import org.sonar.server.plugins.WebServerExtensionInstaller;
 import org.sonar.server.ruby.PlatformRubyBridge;
+import org.sonar.server.ui.JRubyI18n;
 
 public class PlatformLevel2 extends PlatformLevel {
   public PlatformLevel2(PlatformLevel parent) {
@@ -50,6 +52,8 @@ public class PlatformLevel2 extends PlatformLevel {
       new StartupMetadataProvider(),
       ServerImpl.class,
       DefaultServerUpgradeStatus.class,
+      Durations.class,
+      JRubyI18n.class,
 
       // depends on Ruby
       PlatformRubyBridge.class,
index 30ddf76a312118d9e566e965459d2f8caa0f4ffd..c3486905b8e9fc889a395e30408b2e097f5ab9b3 100644 (file)
@@ -19,7 +19,6 @@
  */
 package org.sonar.server.platform.platformlevel;
 
-import org.sonar.api.utils.Durations;
 import org.sonar.api.utils.UriReader;
 import org.sonar.server.platform.ServerIdGenerator;
 import org.sonar.server.platform.ServerIdLoader;
@@ -27,7 +26,6 @@ import org.sonar.server.platform.StartupMetadataPersister;
 import org.sonar.server.setting.DatabaseSettingLoader;
 import org.sonar.server.setting.DatabaseSettingsEnabler;
 import org.sonar.server.startup.LogServerId;
-import org.sonar.server.ui.JRubyI18n;
 
 public class PlatformLevel3 extends PlatformLevel {
   public PlatformLevel3(PlatformLevel parent) {
@@ -40,8 +38,6 @@ public class PlatformLevel3 extends PlatformLevel {
     add(
       DatabaseSettingLoader.class,
       DatabaseSettingsEnabler.class,
-      Durations.class,
-      JRubyI18n.class,
       UriReader.class,
       ServerIdLoader.class,
       ServerIdGenerator.class,