diff options
author | Matteo Mara <matteo.mara@sonarsource.com> | 2024-01-19 09:13:13 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2024-01-19 20:02:55 +0000 |
commit | 75852932c6de4610bf9772b23dbf0fe12a773f28 (patch) | |
tree | 5eada07de0b964360bbc90a8cc75b7660e296c08 /sonar-scanner-engine | |
parent | 2ad3ad4fa6c2b2150807b2b05db18b38a161844b (diff) | |
download | sonarqube-75852932c6de4610bf9772b23dbf0fe12a773f28.tar.gz sonarqube-75852932c6de4610bf9772b23dbf0fe12a773f28.zip |
SONAR-21195 Move ProjectSensorOptimizer to the correct container
Diffstat (limited to 'sonar-scanner-engine')
2 files changed, 4 insertions, 5 deletions
diff --git a/sonar-scanner-engine/src/main/java/org/sonar/scanner/bootstrap/SpringScannerContainer.java b/sonar-scanner-engine/src/main/java/org/sonar/scanner/bootstrap/SpringScannerContainer.java index ee7abecf165..1e0fbf0c2e5 100644 --- a/sonar-scanner-engine/src/main/java/org/sonar/scanner/bootstrap/SpringScannerContainer.java +++ b/sonar-scanner-engine/src/main/java/org/sonar/scanner/bootstrap/SpringScannerContainer.java @@ -24,7 +24,6 @@ import javax.annotation.Priority; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.sonar.api.batch.fs.internal.FileMetadata; -import org.sonar.api.batch.fs.internal.SensorStrategy; import org.sonar.api.batch.rule.CheckFactory; import org.sonar.api.batch.sensor.issue.internal.DefaultNoSonarFilter; import org.sonar.api.scan.filesystem.PathResolver; @@ -131,7 +130,6 @@ import org.sonar.scanner.scm.ScmRevisionImpl; import org.sonar.scanner.sensor.DefaultSensorStorage; import org.sonar.scanner.sensor.ExecutingSensorContext; import org.sonar.scanner.sensor.ProjectSensorContext; -import org.sonar.scanner.sensor.ProjectSensorOptimizer; import org.sonar.scanner.sensor.UnchangedFilesHandler; import org.sonar.scm.git.GitScmSupport; import org.sonar.scm.svn.SvnScmSupport; @@ -224,8 +222,6 @@ public class SpringScannerContainer extends SpringComponentContainer { // context ContextPropertiesCache.class, - SensorStrategy.class, - MutableProjectSettings.class, SonarGlobalPropertiesFilter.class, ProjectConfigurationProvider.class, @@ -270,7 +266,6 @@ public class SpringScannerContainer extends SpringComponentContainer { DefaultSensorStorage.class, DefaultFileLinesContextFactory.class, ProjectSensorContext.class, - ProjectSensorOptimizer.class, ExecutingSensorContext.class, UnchangedFilesHandler.class, diff --git a/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/SpringProjectScanContainer.java b/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/SpringProjectScanContainer.java index 9aeb9982982..f14fb610482 100644 --- a/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/SpringProjectScanContainer.java +++ b/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/SpringProjectScanContainer.java @@ -28,6 +28,7 @@ import org.sonar.api.Plugin; import org.sonar.api.batch.bootstrap.ProjectBuilder; import org.sonar.api.batch.bootstrap.ProjectReactor; import org.sonar.api.batch.fs.internal.DefaultInputModule; +import org.sonar.api.batch.fs.internal.SensorStrategy; import org.sonar.api.measures.Metrics; import org.sonar.api.resources.Languages; import org.sonar.api.resources.ResourceTypes; @@ -56,6 +57,7 @@ import org.sonar.scanner.scan.filesystem.LanguageDetection; import org.sonar.scanner.scan.filesystem.ProjectFileIndexer; import org.sonar.scanner.scm.ScmPublisher; import org.sonar.scanner.sensor.ProjectSensorExtensionDictionary; +import org.sonar.scanner.sensor.ProjectSensorOptimizer; import org.sonar.scanner.sensor.ProjectSensorsExecutor; import static org.sonar.api.batch.InstantiationStrategy.PER_BATCH; @@ -115,8 +117,10 @@ public class SpringProjectScanContainer extends SpringComponentContainer { PostJobExtensionDictionary.class, // Sensors + SensorStrategy.class, ProjectSensorExtensionDictionary.class, ProjectSensorsExecutor.class, + ProjectSensorOptimizer.class, AnalysisObservers.class, |