From bb9d553b83664727c2c1baaff095fa597103435d Mon Sep 17 00:00:00 2001 From: Sebastian Westemeyer Date: Mon, 18 Nov 2024 11:16:46 +0100 Subject: [PATCH] Allow setting of SonarQube module key bindings by applying a pattern --- build.gradle | 7 ++- gradle.properties | 2 +- metadata/changelog.html | 3 +- .../autoconfig/UpdateModuleHandler.java | 4 ++ .../CommonModuleConfigurationHandler.java | 23 ++++---- .../sonarqube/SonarQubeModuleHandler.java | 59 +++++++++++++++++++ .../service/ConfigurationUpdaterService.java | 15 ++++- src/main/resources/META-INF/plugin-git.xml | 1 + src/main/resources/META-INF/plugin-java.xml | 1 + src/main/resources/META-INF/plugin-maven.xml | 1 + .../resources/META-INF/plugin-sonarqube.xml | 6 ++ src/main/resources/META-INF/plugin.xml | 1 + .../schema/sonarqubeModule.schema.json | 23 ++++++++ 13 files changed, 127 insertions(+), 19 deletions(-) create mode 100644 src/main/java/de/gebit/plugins/autoconfig/handlers/sonarqube/SonarQubeModuleHandler.java create mode 100644 src/main/resources/META-INF/plugin-sonarqube.xml create mode 100644 src/main/resources/schema/sonarqubeModule.schema.json diff --git a/build.gradle b/build.gradle index a005494..26acf86 100644 --- a/build.gradle +++ b/build.gradle @@ -46,7 +46,7 @@ signPlugin { } publishPlugin { - token = System.getenv("PUBLISH_TOKEN") + token = System.getenv("PUBLISH_TOKEN") setHidden(findProperty("hidden").toBoolean()) channels = findProperty("preRelease").toBoolean() ? ["autoconfig-beta"] : ["default", "autoconfig-beta"] } @@ -72,7 +72,8 @@ intellij { "Git4Idea", "junit", "org.jetbrains.plugins.yaml", - "org.jetbrains.idea.maven" + "org.jetbrains.idea.maven", + "org.sonarlint.idea:10.8.1.79205" ] } buildSearchableOptions.enabled = false // Disable because it takes a long time and the plugin doesn't need it @@ -285,7 +286,7 @@ jsonSchema2Pojo { useOptionalForGetters = false // properties to exclude from generated toString - toStringExcludes = ["someProperty"] + toStringExcludes = [] // What Java version to target with generated source code (1.6, 1.8, 9, 11, etc). // By default, the version will be taken from the Gradle Java plugin's 'sourceCompatibility', diff --git a/gradle.properties b/gradle.properties index c3c901d..db70320 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,5 @@ # Autoconfig Plugin Properties -pluginVersion = 1.0.2 +pluginVersion = 1.1.0 preRelease = false hidden = false pluginGroup = de.gebit.plugins.autoconfig diff --git a/metadata/changelog.html b/metadata/changelog.html index c8a957a..3d4f07a 100644 --- a/metadata/changelog.html +++ b/metadata/changelog.html @@ -5,9 +5,10 @@ Changelog -

1.0.3

+

1.1.0

1.0.2