From 96477a492eea096dadfc1350b6f41a4f49440e88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicklas=20K=C3=B6rtge?= Date: Wed, 20 Nov 2024 10:52:39 +0100 Subject: [PATCH] fix sonar api version, so it works with the latest sonarqube and update plugin config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Nicklas Körtge --- pom.xml | 2 +- .../src/main/java/com/ibm/plugin/Configuration.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 093a81f9..72c31359 100644 --- a/pom.xml +++ b/pom.xml @@ -44,7 +44,7 @@ 10.7.0.96327 9.14.0.375 - 10.14.0.2599 + 10.13.0.2560 8.6.0.37351 4.23.0.17664 diff --git a/sonar-cryptography-plugin/src/main/java/com/ibm/plugin/Configuration.java b/sonar-cryptography-plugin/src/main/java/com/ibm/plugin/Configuration.java index 5c0b527e..7e08b793 100644 --- a/sonar-cryptography-plugin/src/main/java/com/ibm/plugin/Configuration.java +++ b/sonar-cryptography-plugin/src/main/java/com/ibm/plugin/Configuration.java @@ -22,6 +22,7 @@ import java.util.List; import javax.annotation.Nonnull; import org.sonar.api.config.PropertyDefinition; +import org.sonar.api.resources.Qualifiers; public final class Configuration { @@ -30,7 +31,7 @@ private Configuration() {} public static @Nonnull List getPropertyDefinitions() { return List.of( PropertyDefinition.builder(Constants.CBOM_OUTPUT_NAME) - .onConfigScopes(PropertyDefinition.ConfigScope.PROJECT) + .onQualifiers(Qualifiers.PROJECT) .subCategory(Constants.SUB_CATEGORY_GENERAL) .name("CBOM filename") .description("Filename for the generated CBOM")