Search in sources :

Example 1 with MetricsRepositoryProvider

use of org.sonar.scanner.repository.MetricsRepositoryProvider in project sonarqube by SonarSource.

the class GlobalContainer method addBootstrapComponents.

private void addBootstrapComponents() {
    Version apiVersion = ApiVersion.load(System2.INSTANCE);
    add(// plugins
    ScannerPluginRepository.class, PluginLoader.class, PluginClassloaderFactory.class, ScannerPluginJarExploder.class, ScannerPluginPredicate.class, ExtensionInstaller.class, new SonarQubeVersion(apiVersion), SonarRuntimeImpl.forSonarQube(apiVersion, SonarQubeSide.SCANNER), StoragesManager.class, GlobalSettings.class, new ScannerWsClientProvider(), DefaultServer.class, new GlobalTempFolderProvider(), DefaultHttpDownloader.class, UriReader.class, new FileCacheProvider(), System2.INSTANCE, new MetricsRepositoryProvider(), UuidFactoryImpl.INSTANCE);
    addIfMissing(ScannerPluginInstaller.class, PluginInstaller.class);
    addIfMissing(DefaultSettingsLoader.class, SettingsLoader.class);
    addIfMissing(DefaultMetricsRepositoryLoader.class, MetricsRepositoryLoader.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) ApiVersion(org.sonar.api.internal.ApiVersion)

Aggregations

SonarQubeVersion (org.sonar.api.SonarQubeVersion)1 ApiVersion (org.sonar.api.internal.ApiVersion)1 Version (org.sonar.api.utils.Version)1 MetricsRepositoryProvider (org.sonar.scanner.repository.MetricsRepositoryProvider)1