we are currently developing a SonarQube Plugin with custom checks with Java by following this guide.
The Version of our SonarQube Server is 9.9.1 (build 69595) and the working versions of “sonar-plugin-api” and “sonar-java-plugins” can be seen in the pom snippet:
<sonar.version>18.104.22.168595</sonar.version> <sonar.plugin.api.version>22.214.171.124</sonar.plugin.api.version> <sonar.java.plugin.version>126.96.36.199229</sonar.java.plugin.version> <analyzer.commons.version>188.8.131.521</analyzer.commons.version>
Now I want to upgrade the “sonar-java-plugin”-version to at least 7.17 to use the newly introduced tokens for records. But with the following versions it does not work:
<sonar.version>184.108.40.206595</sonar.version> <sonar.plugin.api.version> 220.127.116.110</sonar.plugin.api.version> <sonar.java.version>18.104.22.168443</sonar.java.version> <analyzer.commons.version>22.214.171.1241</analyzer.commons.version>
The compatible “sonar-plugin-api”- version I took from the mapping in the repo. Since there is no info regarding “sonar-java-plugin”-version, I just took 126.96.36.199443.
But when copying the built JAR to the plugins folder of my server and restarting it, apparently my plugin with custom rules is not started. I guess there are some version incompatibilities, I’m not aware of.
Can anyone help?
Thank you in advance!