wttech / AEM-Rules-for-SonarQube

SonarQube plugin with set of rules detecting possible bugs and bad smells specific for AEM development.
Apache License 2.0
112 stars 51 forks source link

Allow the project to be compiled with Java 11 #194

Closed toniedzwiedz closed 4 years ago

toniedzwiedz commented 4 years ago

I've switched from Java 8 a while back and it appears I'm not able to build the project with Java 11. I've tried both Oracle and AdaptOpenJDK.

It seems the issue is with the Maven Surefire plugin. It's not explicitly added as a dependency to the pom.xml but version 2.20.1 is used and it crashes for the reasons outlined in https://issues.apache.org/jira/browse/SUREFIRE-1440, due to a dependency on Apache Commons Lang (https://issues.apache.org/jira/browse/LANG-1365)

The project should be possible to build with both Java 8 and 11

Be sure to update https://github.com/Cognifide/AEM-Rules-for-SonarQube/blob/master/.travis.yml

toniedzwiedz commented 4 years ago

Resolved by #196