Skip to content

Commit

Permalink
feat: Set the attribute "Plugin-RequiredForLanguages" in the plugin m…
Browse files Browse the repository at this point in the history
…anifest to support the "Analyzers loading optimization" feature from SonarQube 10.4
  • Loading branch information
felipebz committed Feb 7, 2024
1 parent 5732e53 commit 1399943
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion plsql-custom-rules/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ tasks.jar {
"Plugin-Name" to "Company PL/SQL Rules",
"Plugin-Version" to project.version,
"Sonar-Version" to minSonarQubeVersion,
"SonarLint-Supported" to "false"
"SonarLint-Supported" to "false",
"Plugin-RequiredForLanguages" to "plsqlopen"
))
}
}
Expand Down
3 changes: 2 additions & 1 deletion plsql-custom-rules/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,12 @@
<plugin>
<groupId>org.sonarsource.sonar-packaging-maven-plugin</groupId>
<artifactId>sonar-packaging-maven-plugin</artifactId>
<version>1.18.0.372</version>
<version>1.23.0.740</version>
<extensions>true</extensions>
<configuration>
<pluginClass>com.company.plsql.PlSqlCustomRulesPlugin</pluginClass>
<pluginKey>my-rules</pluginKey>
<requiredForLanguages>plsqlopen</requiredForLanguages>
</configuration>
</plugin>

Expand Down
3 changes: 2 additions & 1 deletion sonar-zpa-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ val shadowJar = tasks.named<ShadowJar>("shadowJar") {
"Plugin-SourcesUrl" to "https://github.com/felipebz/zpa",
"Plugin-Version" to project.version,
"Sonar-Version" to Versions.min_sonarqube,
"SonarLint-Supported" to "false"
"SonarLint-Supported" to "false",
"Plugin-RequiredForLanguages" to "plsqlopen"
))
}
}
Expand Down

0 comments on commit 1399943

Please sign in to comment.