diff options
Diffstat (limited to 'sonar-scanner-engine/src/main/java/org/sonar/scanner/ci/CiConfigurationProvider.java')
-rw-r--r-- | sonar-scanner-engine/src/main/java/org/sonar/scanner/ci/CiConfigurationProvider.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sonar-scanner-engine/src/main/java/org/sonar/scanner/ci/CiConfigurationProvider.java b/sonar-scanner-engine/src/main/java/org/sonar/scanner/ci/CiConfigurationProvider.java index 12cb331a398..ebb55b9910c 100644 --- a/sonar-scanner-engine/src/main/java/org/sonar/scanner/ci/CiConfigurationProvider.java +++ b/sonar-scanner-engine/src/main/java/org/sonar/scanner/ci/CiConfigurationProvider.java @@ -23,17 +23,18 @@ import java.util.Arrays; import java.util.List; import java.util.Optional; import java.util.stream.Collectors; -import org.picocontainer.injectors.ProviderAdapter; import org.sonar.api.config.Configuration; import org.sonar.api.utils.MessageException; import org.sonar.api.utils.log.Logger; import org.sonar.api.utils.log.Loggers; +import org.springframework.context.annotation.Bean; -public class CiConfigurationProvider extends ProviderAdapter { +public class CiConfigurationProvider { private static final Logger LOG = Loggers.get(CiConfigurationProvider.class); private static final String PROP_DISABLED = "sonar.ci.autoconfig.disabled"; + @Bean("CiConfiguration") public CiConfiguration provide(Configuration configuration, CiVendor[] ciVendors) { boolean disabled = configuration.getBoolean(PROP_DISABLED).orElse(false); if (disabled) { |