From 981ef4241ad6d361dd5540e70a8fac5ab463b16b Mon Sep 17 00:00:00 2001 From: Matteo Mara Date: Fri, 19 Jan 2024 14:45:38 +0100 Subject: [PATCH] SONAR-21195 Ensure properties from optional analyzers are available in the ProjectSensorContext --- .../java/org/sonar/scanner/scan/SpringProjectScanContainer.java | 2 ++ 1 file changed, 2 insertions(+) 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 f14fb610482..190c9f64859 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 @@ -56,6 +56,7 @@ import org.sonar.scanner.scan.filesystem.InputFileFilterRepository; 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.ProjectSensorContext; import org.sonar.scanner.sensor.ProjectSensorExtensionDictionary; import org.sonar.scanner.sensor.ProjectSensorOptimizer; import org.sonar.scanner.sensor.ProjectSensorsExecutor; @@ -118,6 +119,7 @@ public class SpringProjectScanContainer extends SpringComponentContainer { // Sensors SensorStrategy.class, + ProjectSensorContext.class, ProjectSensorExtensionDictionary.class, ProjectSensorsExecutor.class, ProjectSensorOptimizer.class, -- 2.39.5