fix javadoc failures on Java 11+ by specifying the source=8 in the maven-javadoc-plugin plugin configuration.
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
+ <!-- needed to fix javadoc on java 11+ https://github.com/joel-costigliola/assertj-core/issues/1403 -->
+ <source>8</source>
<!-- (1) CSS file location -->
<stylesheetfile>src/main/javadoc/assertj-javadoc.css</stylesheetfile>
<!-- (2) Highlight Javascript file -->
</activation>
<properties>
<sonar.skip>true</sonar.skip>
- <!-- currently fails with "javadoc: error - The code being documented uses modules but the packages defined in https://docs.oracle.com/javase/8/docs/api/
- are in the unnamed module." -->
- <maven.javadoc.skip>true</maven.javadoc.skip>
</properties>
</profile>
</profiles>
