From aa0fef7dd3747c2f2d7ac3790fd52fce104644db Mon Sep 17 00:00:00 2001 From: Jonah Jeleniewski Date: Mon, 25 Sep 2023 16:16:14 +1000 Subject: [PATCH] Update minimum SonarQube version to 9.9 The plugin is technically compatible as far back as 7.9 on java 11. Unfortunately, this won't fly on the marketplace because we don't support java 8, which is expected for LTS versions prior to 9.9. --- delphi-checks-testkit/pom.xml | 7 ++++++- delphi-checks/pom.xml | 2 +- delphi-frontend/pom.xml | 7 ++++++- docs/CUSTOM_RULES_101.md | 2 +- docs/delphi-custom-rules-example/pom.xml | 8 ++++---- pom.xml | 15 +++++++++++---- sonar-delphi-plugin/pom.xml | 10 +++++++--- 7 files changed, 36 insertions(+), 15 deletions(-) diff --git a/delphi-checks-testkit/pom.xml b/delphi-checks-testkit/pom.xml index bd7130d7c..7efec712a 100644 --- a/delphi-checks-testkit/pom.xml +++ b/delphi-checks-testkit/pom.xml @@ -29,9 +29,14 @@ - org.sonarsource.sonarqube + org.sonarsource.api.plugin sonar-plugin-api + + org.sonarsource.sonarqube + sonar-plugin-api-impl + compile + commons-io diff --git a/delphi-checks/pom.xml b/delphi-checks/pom.xml index bf475ac9b..7e8c5e32e 100644 --- a/delphi-checks/pom.xml +++ b/delphi-checks/pom.xml @@ -33,7 +33,7 @@ sonar-analyzer-commons - org.sonarsource.sonarqube + org.sonarsource.api.plugin sonar-plugin-api diff --git a/delphi-frontend/pom.xml b/delphi-frontend/pom.xml index 14c4b5e2b..4e0c3f08a 100644 --- a/delphi-frontend/pom.xml +++ b/delphi-frontend/pom.xml @@ -16,7 +16,7 @@ - org.sonarsource.sonarqube + org.sonarsource.api.plugin sonar-plugin-api @@ -60,6 +60,11 @@ json-simple + + org.sonarsource.sonarqube + sonar-plugin-api-impl + test + org.sonarsource.analyzer-commons sonar-analyzer-test-commons diff --git a/docs/CUSTOM_RULES_101.md b/docs/CUSTOM_RULES_101.md index 5459127fb..416f5ceaa 100644 --- a/docs/CUSTOM_RULES_101.md +++ b/docs/CUSTOM_RULES_101.md @@ -76,7 +76,7 @@ you rename or move the class implementing `org.sonar.api.Plugin`. Delphi Custom Rules au.com.integradev.samples.delphi.MyDelphiRulesPlugin true - ${sonarqube.version} + 9.9 communitydelphi:${sonar.delphi.version} diff --git a/docs/delphi-custom-rules-example/pom.xml b/docs/delphi-custom-rules-example/pom.xml index 2f34050d9..4ae980d8c 100644 --- a/docs/delphi-custom-rules-example/pom.xml +++ b/docs/delphi-custom-rules-example/pom.xml @@ -49,8 +49,8 @@ UTF-8 - 7.9 0.40.0 + 9.14.0.375 2.7.0.1482 5.9.0 3.23.1 @@ -65,9 +65,9 @@ - org.sonarsource.sonarqube + org.sonarsource.api.plugin sonar-plugin-api - ${sonarqube.version} + ${sonar.plugin.api.version} provided @@ -130,7 +130,7 @@ Delphi Custom Rules au.com.integradev.samples.delphi.MyDelphiRulesPlugin true - ${sonarqube.version} + 9.9 communitydelphi:${sonar.delphi.version} diff --git a/pom.xml b/pom.xml index bd5394b80..f5275125d 100644 --- a/pom.xml +++ b/pom.xml @@ -101,7 +101,8 @@ r1 @(javax\\.annotation\\.)?Generated - 7.9 + 9.9.0.65466 + 9.14.0.375 2.7.0.1482 4.0.0.404 3.5.3 @@ -136,9 +137,9 @@ - org.sonarsource.sonarqube + org.sonarsource.api.plugin sonar-plugin-api - ${sonar.version} + ${sonar-plugin-api.version} provided @@ -191,6 +192,12 @@ json-simple ${json-simple.version} + + org.sonarsource.sonarqube + sonar-plugin-api-impl + ${sonarqube.version} + test + org.sonarsource.analyzer-commons sonar-analyzer-test-commons @@ -230,7 +237,7 @@ org.sonarsource.sonarqube sonar-ws - ${sonar.version} + ${sonarqube.version} test diff --git a/sonar-delphi-plugin/pom.xml b/sonar-delphi-plugin/pom.xml index 83c6c9372..85111151a 100644 --- a/sonar-delphi-plugin/pom.xml +++ b/sonar-delphi-plugin/pom.xml @@ -46,9 +46,8 @@ - org.sonarsource.sonarqube + org.sonarsource.api.plugin sonar-plugin-api - provided org.sonarsource.analyzer-commons @@ -64,6 +63,11 @@ jdom2 + + org.sonarsource.sonarqube + sonar-plugin-api-impl + test + org.sonarsource.analyzer-commons sonar-analyzer-test-commons @@ -97,7 +101,7 @@ Delphi true au.com.integradev.delphi.DelphiPlugin - 7.9 + 9.9 11