Skip to content

Commit

Permalink
fix sonar api version, so it works with the latest sonarqube and upda…
Browse files Browse the repository at this point in the history
…te plugin config

Signed-off-by: Nicklas Körtge <[email protected]>
  • Loading branch information
n1ckl0sk0rtge committed Nov 20, 2024
1 parent b09c936 commit 96477a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@

<sonar.version>10.7.0.96327</sonar.version>
<sonar.minVersion>9.14.0.375</sonar.minVersion>
<sonar.plugin.api.version>10.14.0.2599</sonar.plugin.api.version>
<sonar.plugin.api.version>10.13.0.2560</sonar.plugin.api.version>
<!-- language parser versions -->
<sonar.java.version>8.6.0.37351</sonar.java.version>
<sonar.python.version>4.23.0.17664</sonar.python.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand All @@ -30,7 +31,7 @@ private Configuration() {}
public static @Nonnull List<PropertyDefinition> 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")
Expand Down

0 comments on commit 96477a4

Please sign in to comment.