Closed raspy closed 3 years ago
@toniedzwiedz would you please help to review and include the changes in a release? It seems that there have been people impacted by #201 (including myself).
Hi @raspy, thanks for the PR. I've had a cursory look at the code changes and they seem fine. Please also revert this commit https://github.com/Cognifide/AEM-Rules-for-SonarQube/commit/efc963d431ef1c870bdb9fc1c4600b236e085644 in your branch to ensure Travis also builds the project with JDK 8 (which should be possible if we use this source level).
Reverted as requested, seems to work with Travis as well.
@raspy it does, thanks. I'll kick off a release today.
Plugin code executes within SonarScanner, which still supports Java 8. As the plugin cannot be deactivated per project, current requirement to use Java 11 renders any project that still uses Java 8 or Java 9 (think: Android projects) can no longer be analyzed on the SQ server that has aemrules installed.
It seems however that the main refactoring made when the plugin was migrated to Java 11 was to remove guava dependencies. Luckily enough all current code can be slightly modified to use pure Java 8 statements, hence dropping dependency on guava while remaining compatible with Java 8 (and SonarScanner).
Please consider including the changes in the official release and release through the marketplace.