From 10955ec396a053d596a40ac3fdf7ca73dd911327 Mon Sep 17 00:00:00 2001 From: Julien HENRY Date: Thu, 24 Mar 2016 15:53:36 +0100 Subject: SONAR-7458 Expose SQ Version in SensorContext --- .../main/java/org/sonar/ce/container/ComputeEngineContainerImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/sonar-ce') diff --git a/server/sonar-ce/src/main/java/org/sonar/ce/container/ComputeEngineContainerImpl.java b/server/sonar-ce/src/main/java/org/sonar/ce/container/ComputeEngineContainerImpl.java index ca6cc5bc496..9a02f215935 100644 --- a/server/sonar-ce/src/main/java/org/sonar/ce/container/ComputeEngineContainerImpl.java +++ b/server/sonar-ce/src/main/java/org/sonar/ce/container/ComputeEngineContainerImpl.java @@ -23,6 +23,7 @@ import com.google.common.annotations.VisibleForTesting; import java.util.List; import javax.annotation.CheckForNull; import org.sonar.api.config.EmailSettings; +import org.sonar.api.internal.SonarQubeVersionFactory; import org.sonar.api.profiles.AnnotationProfileParser; import org.sonar.api.profiles.XMLProfileParser; import org.sonar.api.profiles.XMLProfileSerializer; @@ -49,7 +50,6 @@ import org.sonar.core.platform.ComponentContainer; import org.sonar.core.platform.Module; import org.sonar.core.platform.PluginClassloaderFactory; import org.sonar.core.platform.PluginLoader; -import org.sonar.core.platform.SonarQubeVersionProvider; import org.sonar.core.timemachine.Periods; import org.sonar.core.user.DefaultUserFinder; import org.sonar.core.user.DeprecatedUserFinder; @@ -138,7 +138,7 @@ import org.sonarqube.ws.Rules; public class ComputeEngineContainerImpl implements ComputeEngineContainer { private static final Object[] LEVEL_1_COMPONENTS = new Object[] { ComputeEngineSettings.class, - new SonarQubeVersionProvider(), + SonarQubeVersionFactory.create(System2.INSTANCE), new JmxConnectionFactoryProvider(), ServerImpl.class, UuidFactoryImpl.INSTANCE, -- cgit v1.2.3