Skip to content

Commit

Permalink
Fix build for Java 20 and above
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo3418 authored and marcphilipp committed May 6, 2024
1 parent 28fa2ca commit be2f711
Showing 1 changed file with 41 additions and 1 deletion.
42 changes: 41 additions & 1 deletion pom.xml
Expand Up @@ -591,7 +591,7 @@
<profile>
<id>java12</id>
<activation>
<jdk>[12,)</jdk>
<jdk>[12,20)</jdk>
</activation>
<properties>
<!-- JDK 12 minimal source and target versions are 1.7 -->
Expand Down Expand Up @@ -631,5 +631,45 @@
</plugins>
</reporting>
</profile>
<profile>
<id>java20</id>
<activation>
<jdk>[20,)</jdk>
</activation>
<properties>
<!-- JDK 20 minimal source and target versions are 1.8 -->
<jdkVersion>1.8</jdkVersion>
</properties>
<build>
<plugins>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<source>1.8</source>
<failOnError>false</failOnError>
</configuration>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<compilerArgs>
<arg>-Xdoclint:none</arg>
</compilerArgs>
</configuration>
</plugin>
</plugins>
</build>
<reporting>
<plugins>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<source>1.8</source>
<failOnError>false</failOnError>
</configuration>
</plugin>
</plugins>
</reporting>
</profile>
</profiles>
</project>

0 comments on commit be2f711

Please sign in to comment.