New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SonarQube / Java compatibility #282
Comments
It is compiled on jdk 11
Looks like we missed something, we thought that 7.9 is only running on jdk 11. Can you share details of what version sonar can be executed on jdk 8 ? |
The server is running version 11, but the scanners can be version 8 still which is when this plugin causes issues as the scanner throws errors. Downgrading to 4.27 fixes this |
the same problem on my side (but running with gradle) the build is failing with:
but the sonar-runner says a few lines before
|
from #258 (comment)
did we miss something with where jdk11 is required ? |
i had some time today to investigate this. SQ 7.9 server needs JDK 11 and, since we adapted integration (and IT) to 7.9 server, we had to run the verification pipeline using JDK 11. what i missed was the requirements regarding sonar scanner which are - and i don‘t know why - somehow different. i never realized it because i‘m running all „everyday“ projects with JDK 11. in short, yes, for the scanner part we updated too early, unfortunately, and for the server part we are in line. sorry for missing this point... |
So not going to fix it? |
unfortunately no :( . If you have few hours, here is workaround: |
@romani : if you are intressted on keeping the compatibility i could have a look on it :) but IMHO sonar 7.9 supports jdk8 on the runner side, so strictly spoken the current version of the plugin broke the compatibility.. if you are really not going to fix it; i would strongly suggest to set the compatiblity of the current version to SQ 8.x since here everything would be fine.. somehow i wonder how other plugins are doing this since we are up to date with other plugins and do not have a problem |
I am ok to restore compatibility with sonar 7.9 if we find a way how to make it and reconcile:
@muhlba91 , please consider this.
they might have more or better maintainers :). |
generally speaking, code wise as far as i remember the jdk update was not a major concern if all maven plugins are compatible and - permitting sonarcloud and teamcity are working fine - we can, seen from my point of view, switch back to jdk for source and target compatibility. i can have a look at it in the next 2-3 days most likely to see what has to be changed. :) „problematic“ for me is that we have to run the test suites against jdk 11 (especially integration tests due to SQ 7.9 requirements) and cannot test against jdk 8. |
ITs are disabled by default, and only should be executed on CI, so we can configure CI to use jdk11 for ITs. |
cool, i will check tomorrow or friday on the changes to revert back to jdk 8 and leave the CI running ITs with jdk 11. |
I can provide a list of plugins tomorrow.. BTW: i just tried a build with target-compability set to 1.8 and running on jdk11 (which should do the job) #283 (just for a test) if somebody wants me to verify if a plugin works that way in our setup, i could try it.. |
@BerndFarkaDyna , your contribution to project is still in demand, feel free to contribute any fixes. |
reopening as per #283 |
fixed by #283 |
Sonar version: 7.9.1
Checkstyle sonar plugin version: 4.28
Java Sonar server version: 1.11.0_5
Java Sonar scanner version: 1.8.0_232
Steps to reproduce or description of problem:
Run "maven sonar:sonar"
This should work, but throws errors as the only supported JDK version is 11. Should this only be "compatible" with higher level SonarQube versions that are enforcing Java 11 for scanners
The text was updated successfully, but these errors were encountered: