diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2023-06-26 16:05:22 -0500 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2023-07-18 20:03:23 +0000 |
commit | 58f87e3e1313b39df5f3669ccf5f01f5d3e97490 (patch) | |
tree | f236e39b6e7406164996d61dbc5be92ed194b45f /server/sonar-webserver/src | |
parent | f2daf496660f784d97d2b6949be323ed689bca6a (diff) | |
download | sonarqube-58f87e3e1313b39df5f3669ccf5f01f5d3e97490.tar.gz sonarqube-58f87e3e1313b39df5f3669ccf5f01f5d3e97490.zip |
SONAR-19962 Upgrade Sonar Plugin API to v10.0.0.695
Diffstat (limited to 'server/sonar-webserver/src')
2 files changed, 2 insertions, 15 deletions
diff --git a/server/sonar-webserver/src/main/java/org/sonar/server/platform/platformlevel/PlatformLevel4.java b/server/sonar-webserver/src/main/java/org/sonar/server/platform/platformlevel/PlatformLevel4.java index 6c82a7168cf..9bd052497f4 100644 --- a/server/sonar-webserver/src/main/java/org/sonar/server/platform/platformlevel/PlatformLevel4.java +++ b/server/sonar-webserver/src/main/java/org/sonar/server/platform/platformlevel/PlatformLevel4.java @@ -34,10 +34,7 @@ import org.sonar.alm.client.github.config.GithubProvisioningConfigValidator; import org.sonar.alm.client.github.security.GithubAppSecurityImpl; import org.sonar.alm.client.gitlab.GitlabGlobalSettingsValidator; import org.sonar.alm.client.gitlab.GitlabHttpClient; -import org.sonar.api.profiles.XMLProfileParser; -import org.sonar.api.profiles.XMLProfileSerializer; import org.sonar.api.resources.ResourceTypes; -import org.sonar.api.rules.AnnotationRuleParser; import org.sonar.api.server.rule.RulesDefinitionXmlLoader; import org.sonar.auth.bitbucket.BitbucketModule; import org.sonar.auth.github.GitHubModule; @@ -130,7 +127,6 @@ import org.sonar.server.management.DelegatingManagedServices; import org.sonar.server.measure.index.ProjectsEsModule; import org.sonar.server.measure.live.LiveMeasureModule; import org.sonar.server.measure.ws.MeasuresWsModule; -import org.sonar.server.metric.MetricFinder; import org.sonar.server.metric.UnanalyzedLanguageMetrics; import org.sonar.server.metric.ws.MetricsWsModule; import org.sonar.server.monitoring.ComputeEngineMetricStatusTask; @@ -198,7 +194,6 @@ import org.sonar.server.pushapi.ServerPushModule; import org.sonar.server.pushapi.hotspots.HotspotChangeEventServiceImpl; import org.sonar.server.pushapi.issues.IssueChangeEventServiceImpl; import org.sonar.server.pushapi.qualityprofile.QualityProfileChangeEventServiceImpl; -import org.sonar.server.qualitygate.ProjectsInWarningModule; import org.sonar.server.qualitygate.QualityGateModule; import org.sonar.server.qualitygate.notification.QGChangeNotificationHandler; import org.sonar.server.qualitygate.ws.QualityGateWsModule; @@ -318,8 +313,6 @@ public class PlatformLevel4 extends PlatformLevel { // quality profile BuiltInQProfileRepositoryImpl.class, ActiveRuleIndexer.class, - XMLProfileParser.class, - XMLProfileSerializer.class, QProfileComparison.class, QProfileTreeImpl.class, QProfileRulesImpl.class, @@ -336,7 +329,6 @@ public class PlatformLevel4 extends PlatformLevel { // rule RuleIndexDefinition.class, RuleIndexer.class, - AnnotationRuleParser.class, WebServerRuleFinderImpl.class, RuleDefinitionsLoader.class, RulesDefinitionXmlLoader.class, @@ -366,11 +358,9 @@ public class PlatformLevel4 extends PlatformLevel { // measure new MetricsWsModule(), new MeasuresWsModule(), - MetricFinder.class, UnanalyzedLanguageMetrics.class, new QualityGateModule(), - new ProjectsInWarningModule(), new QualityGateWsModule(), // web services diff --git a/server/sonar-webserver/src/main/java/org/sonar/server/platform/platformlevel/PlatformLevelStartup.java b/server/sonar-webserver/src/main/java/org/sonar/server/platform/platformlevel/PlatformLevelStartup.java index 3cd30ccb4c3..f25523ff456 100644 --- a/server/sonar-webserver/src/main/java/org/sonar/server/platform/platformlevel/PlatformLevelStartup.java +++ b/server/sonar-webserver/src/main/java/org/sonar/server/platform/platformlevel/PlatformLevelStartup.java @@ -30,13 +30,12 @@ import org.sonar.server.platform.ServerLifecycleNotifier; import org.sonar.server.platform.web.RegisterServletFilters; import org.sonar.server.plugins.DetectPluginChange; import org.sonar.server.plugins.PluginConsentVerifier; -import org.sonar.server.qualitygate.ProjectsInWarningDaemon; import org.sonar.server.qualitygate.RegisterQualityGates; +import org.sonar.server.qualityprofile.RegisterQualityProfiles; import org.sonar.server.qualityprofile.builtin.BuiltInQProfileInsertImpl; import org.sonar.server.qualityprofile.builtin.BuiltInQProfileLoader; import org.sonar.server.qualityprofile.builtin.BuiltInQProfileUpdateImpl; import org.sonar.server.qualityprofile.builtin.BuiltInQualityProfilesUpdateListener; -import org.sonar.server.qualityprofile.RegisterQualityProfiles; import org.sonar.server.rule.AdvancedRuleDescriptionSectionsGenerator; import org.sonar.server.rule.LegacyHotspotRuleDescriptionSectionsGenerator; import org.sonar.server.rule.LegacyIssueRuleDescriptionSectionsGenerator; @@ -91,7 +90,7 @@ public class PlatformLevelStartup extends PlatformLevel { // RegisterServletFilters makes the WebService engine of Level4 served by the MasterServletFilter, therefore it // must be started after all the other startup tasks RegisterServletFilters.class - ); + ); } /** @@ -126,8 +125,6 @@ public class PlatformLevelStartup extends PlatformLevel { protected void doPrivileged() { PlatformLevelStartup.super.start(); getOptional(IndexerStartupTask.class).ifPresent(IndexerStartupTask::execute); - // Need to be executed after indexing as it executes an ES query - get(ProjectsInWarningDaemon.class).notifyStart(); get(ServerLifecycleNotifier.class).notifyStart(); get(ProcessCommandWrapper.class).notifyOperational(); get(WebServerRuleFinder.class).stopCaching(); |