]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-16232 Drop usage of deprecated org.sonar.api.SonarQubeVersion
authorJacek <jacek.poreda@sonarsource.com>
Tue, 31 May 2022 07:05:42 +0000 (09:05 +0200)
committersonartech <sonartech@sonarsource.com>
Tue, 31 May 2022 20:02:50 +0000 (20:02 +0000)
server/sonar-ce/src/main/java/org/sonar/ce/container/ComputeEngineContainerImpl.java
server/sonar-webserver/src/main/java/org/sonar/server/platform/platformlevel/PlatformLevel1.java
sonar-scanner-engine/src/main/java/org/sonar/scanner/bootstrap/SpringGlobalContainer.java

index 3a30af5138a8422a2afe407fecec61eb03fa1f0c..1385558c175b23c337e2136e859fc6f9c82e0e2e 100644 (file)
@@ -75,6 +75,7 @@ import org.sonar.core.platform.EditionProvider;
 import org.sonar.core.platform.PlatformEditionProvider;
 import org.sonar.core.platform.PluginClassLoader;
 import org.sonar.core.platform.PluginClassloaderFactory;
+import org.sonar.core.platform.SonarQubeVersion;
 import org.sonar.core.platform.SpringComponentContainer;
 import org.sonar.core.util.UuidFactoryImpl;
 import org.sonar.db.DBSessionsImpl;
@@ -276,8 +277,7 @@ public class ComputeEngineContainerImpl implements ComputeEngineContainer {
       props.rawProperties(),
       ThreadLocalSettings.class,
       new ConfigurationProvider(),
-      new org.sonar.api.SonarQubeVersion(sqVersion),
-      new org.sonar.core.platform.SonarQubeVersion(sqVersion),
+      new SonarQubeVersion(sqVersion),
       SonarRuntimeImpl.forSonarQube(apiVersion, SonarQubeSide.COMPUTE_ENGINE, edition),
       CeProcessLogging.class,
       UuidFactoryImpl.INSTANCE,
index 89ffe5944ec5778177707896d3af1d7d4910a3ae..9bbc457e8dd0c2013a57de4067ed338f3178163f 100644 (file)
@@ -30,6 +30,7 @@ import org.sonar.api.utils.Version;
 import org.sonar.core.config.CorePropertyDefinitions;
 import org.sonar.core.extension.CoreExtensionRepositoryImpl;
 import org.sonar.core.extension.CoreExtensionsLoader;
+import org.sonar.core.platform.SonarQubeVersion;
 import org.sonar.core.util.UuidFactoryImpl;
 import org.sonar.db.DBSessionsImpl;
 import org.sonar.db.DaoModule;
@@ -92,8 +93,7 @@ public class PlatformLevel1 extends PlatformLevel {
     SonarEdition edition = MetadataLoader.loadEdition(System2.INSTANCE);
 
     add(
-      new org.sonar.api.SonarQubeVersion(sqVersion),
-      new org.sonar.core.platform.SonarQubeVersion(sqVersion),
+      new SonarQubeVersion(sqVersion),
       SonarRuntimeImpl.forSonarQube(apiVersion, SonarQubeSide.SERVER, edition),
       ThreadLocalSettings.class,
       ConfigurationProvider.class,
index dca880238dc6baeb9c87afaba7e26b9e07103ba1..78be7024302095eee0b72d1444626648e92b39ca 100644 (file)
@@ -42,6 +42,7 @@ import org.sonar.core.platform.PluginClassLoader;
 import org.sonar.core.platform.PluginClassloaderFactory;
 import org.sonar.core.platform.PluginInfo;
 import org.sonar.core.platform.PluginRepository;
+import org.sonar.core.platform.SonarQubeVersion;
 import org.sonar.core.platform.SpringComponentContainer;
 import org.sonar.core.util.DefaultHttpDownloader;
 import org.sonar.core.util.UuidFactoryImpl;
@@ -90,8 +91,7 @@ public class SpringGlobalContainer extends SpringComponentContainer {
       PluginClassloaderFactory.class,
       ScannerPluginJarExploder.class,
       ExtensionInstaller.class,
-      new org.sonar.api.SonarQubeVersion(sqVersion),
-      new org.sonar.core.platform.SonarQubeVersion(sqVersion),
+      new SonarQubeVersion(sqVersion),
       new GlobalServerSettingsProvider(),
       new GlobalConfigurationProvider(),
       new ScannerWsClientProvider(),