diff options
author | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2018-02-27 18:09:07 +0100 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2018-03-23 20:20:52 +0100 |
commit | 18b9b6a719434f206c65771fb6cbabd7df3090f3 (patch) | |
tree | a8beeb3f60ab2b7ba415d0128a995cd358ab8c60 /server | |
parent | 4775c5bb1c3e28b986a21059e349d3a65ef159b4 (diff) | |
download | sonarqube-18b9b6a719434f206c65771fb6cbabd7df3090f3.tar.gz sonarqube-18b9b6a719434f206c65771fb6cbabd7df3090f3.zip |
GOV-231 add dependency in CE container required by Gov
for view refresh trigger at end of report processing
Diffstat (limited to 'server')
-rw-r--r-- | server/sonar-ce/src/main/java/org/sonar/ce/container/ComputeEngineContainerImpl.java | 10 | ||||
-rw-r--r-- | server/sonar-ce/src/test/java/org/sonar/ce/container/ComputeEngineContainerImplTest.java | 2 |
2 files changed, 9 insertions, 3 deletions
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 eb3f3c9e353..fab459bc449 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 @@ -59,7 +59,6 @@ import org.sonar.ce.taskprocessor.CeProcessingScheduler; import org.sonar.ce.taskprocessor.CeTaskProcessorModule; import org.sonar.ce.user.CeUserSession; import org.sonar.core.component.DefaultResourceTypes; -import org.sonar.server.config.ConfigurationProvider; import org.sonar.core.config.CorePropertyDefinitions; import org.sonar.core.i18n.DefaultI18n; import org.sonar.core.i18n.RuleI18nManager; @@ -79,11 +78,15 @@ import org.sonar.process.NetworkUtilsImpl; import org.sonar.process.Props; import org.sonar.process.logging.LogbackHelper; import org.sonar.server.component.ComponentFinder; +import org.sonar.server.component.ComponentUpdater; import org.sonar.server.component.index.ComponentIndexer; import org.sonar.server.computation.task.projectanalysis.ProjectAnalysisTaskModule; +import org.sonar.server.config.ConfigurationProvider; import org.sonar.server.debt.DebtModelPluginRepository; import org.sonar.server.debt.DebtRulesXMLImporter; +import org.sonar.server.es.ProjectIndexersImpl; import org.sonar.server.event.NewAlerts; +import org.sonar.server.favorite.FavoriteUpdater; import org.sonar.server.issue.IssueFieldsSetter; import org.sonar.server.issue.index.IssueIndex; import org.sonar.server.issue.index.IssueIndexer; @@ -363,7 +366,10 @@ public class ComputeEngineContainerImpl implements ComputeEngineContainer { UserPermissionChanger.class, GroupPermissionChanger.class, - // components + // components, + FavoriteUpdater.class, + ProjectIndexersImpl.class, + ComponentUpdater.class, ComponentFinder.class, // used in ComponentService NewAlerts.class, NewAlerts.newMetadata(), diff --git a/server/sonar-ce/src/test/java/org/sonar/ce/container/ComputeEngineContainerImplTest.java b/server/sonar-ce/src/test/java/org/sonar/ce/container/ComputeEngineContainerImplTest.java index f959d2a3fdc..9c883ed7ae8 100644 --- a/server/sonar-ce/src/test/java/org/sonar/ce/container/ComputeEngineContainerImplTest.java +++ b/server/sonar-ce/src/test/java/org/sonar/ce/container/ComputeEngineContainerImplTest.java @@ -93,7 +93,7 @@ public class ComputeEngineContainerImplTest { assertThat(picoContainer.getComponentAdapters()) .hasSize( CONTAINER_ITSELF - + 78 // level 4 + + 81 // level 4 + 21 // content of QualityGateModule + 6 // content of CeConfigurationModule + 4 // content of CeQueueModule |