VinodAnandan / sonar-pitest

43 stars 30 forks source link

Enable support for SonarQube 4.2 #2

Closed gvsmirnov closed 6 years ago

gvsmirnov commented 9 years ago

The problem was that sonar-pitest would use the 3.7 API, and when running on 4.2, the following error message would be received:

Not supported since v4.2. See http://docs.codehaus.org/display/SONAR/API+Changes

Basically, org.sonar.api.resources.JavaFile were deprecated.

Also, I guess, http://docs.sonarqube.org/display/SONAR/Plugin+version+matrix should be updated.

dbolkensteyn commented 9 years ago

I think that you should upgrade directly to the new LTS, 4.5.1. SonarQube 4.2 is no longer supported.

gvsmirnov commented 9 years ago

@dbolkensteyn Good point. However, it introduces a lot of new stuff (like RulesDefinition) that isn't there in 4.2. My installation is 4.3, and I am, unfortunately, unable to upgrade it for the time being.

gvsmirnov commented 9 years ago

@dbolkensteyn So I would appreciate a release that works at 4.3. When there is such, I am all for upgrading the plugin to the latest API version and making a new release.

dbolkensteyn commented 9 years ago

It was just my 2 cents ;) I let @alexvictoor review this pull request

gvsmirnov commented 9 years ago

Actually the version updated for 4.5.1 works on my 4.3 installation if marked as 4.3. But it would not work on 4.2 because of new APIs.

So, I propose that this is reviewed, merged, and a version compatible with 4.2 is released. Then another version compatible with APIs 4.3 .. 4.5.1 is released, too. I have it here: https://github.com/gvsmirnov/sonar-pitest/tree/4.3