Search in sources :

Example 1 with DefaultAnalysisWarnings

use of org.sonar.scanner.notifications.DefaultAnalysisWarnings in project sonarqube by SonarSource.

the class SpringGlobalContainer method addBootstrapComponents.

private void addBootstrapComponents() {
    Version apiVersion = MetadataLoader.loadVersion(System2.INSTANCE);
    SonarEdition edition = MetadataLoader.loadEdition(System2.INSTANCE);
    DefaultAnalysisWarnings analysisWarnings = new DefaultAnalysisWarnings(System2.INSTANCE);
    LOG.debug("{} {}", edition.getLabel(), apiVersion);
    add(// plugins
    ScannerPluginRepository.class, PluginClassLoader.class, PluginClassloaderFactory.class, ScannerPluginJarExploder.class, ExtensionInstaller.class, new SonarQubeVersion(apiVersion), new GlobalServerSettingsProvider(), new GlobalConfigurationProvider(), new ScannerWsClientProvider(), DefaultServer.class, new GlobalTempFolderProvider(), analysisWarnings, UriReader.class, PluginFiles.class, System2.INSTANCE, Clock.systemDefaultZone(), new MetricsRepositoryProvider(), UuidFactoryImpl.INSTANCE, DefaultHttpDownloader.class, SonarRuntimeImpl.forSonarQube(apiVersion, SonarQubeSide.SCANNER, edition), ScannerPluginInstaller.class, CoreExtensionRepositoryImpl.class, CoreExtensionsLoader.class, ScannerCoreExtensionsInstaller.class, DefaultGlobalSettingsLoader.class, DefaultNewCodePeriodLoader.class, DefaultMetricsRepositoryLoader.class);
}
Also used : SonarQubeVersion(org.sonar.api.SonarQubeVersion) MetricsRepositoryProvider(org.sonar.scanner.repository.MetricsRepositoryProvider) Version(org.sonar.api.utils.Version) SonarQubeVersion(org.sonar.api.SonarQubeVersion) DefaultAnalysisWarnings(org.sonar.scanner.notifications.DefaultAnalysisWarnings) SonarEdition(org.sonar.api.SonarEdition)

Aggregations

SonarEdition (org.sonar.api.SonarEdition)1 SonarQubeVersion (org.sonar.api.SonarQubeVersion)1 Version (org.sonar.api.utils.Version)1 DefaultAnalysisWarnings (org.sonar.scanner.notifications.DefaultAnalysisWarnings)1 MetricsRepositoryProvider (org.sonar.scanner.repository.MetricsRepositoryProvider)1