Skip to content

Commit be2f711

Browse files
Leo3418marcphilipp
authored andcommitted
Fix build for Java 20 and above
1 parent 28fa2ca commit be2f711

File tree

1 file changed

+41
-1
lines changed

1 file changed

+41
-1
lines changed

pom.xml

+41-1
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@
591591
<profile>
592592
<id>java12</id>
593593
<activation>
594-
<jdk>[12,)</jdk>
594+
<jdk>[12,20)</jdk>
595595
</activation>
596596
<properties>
597597
<!-- JDK 12 minimal source and target versions are 1.7 -->
@@ -631,5 +631,45 @@
631631
</plugins>
632632
</reporting>
633633
</profile>
634+
<profile>
635+
<id>java20</id>
636+
<activation>
637+
<jdk>[20,)</jdk>
638+
</activation>
639+
<properties>
640+
<!-- JDK 20 minimal source and target versions are 1.8 -->
641+
<jdkVersion>1.8</jdkVersion>
642+
</properties>
643+
<build>
644+
<plugins>
645+
<plugin>
646+
<artifactId>maven-javadoc-plugin</artifactId>
647+
<configuration>
648+
<source>1.8</source>
649+
<failOnError>false</failOnError>
650+
</configuration>
651+
</plugin>
652+
<plugin>
653+
<artifactId>maven-compiler-plugin</artifactId>
654+
<configuration>
655+
<compilerArgs>
656+
<arg>-Xdoclint:none</arg>
657+
</compilerArgs>
658+
</configuration>
659+
</plugin>
660+
</plugins>
661+
</build>
662+
<reporting>
663+
<plugins>
664+
<plugin>
665+
<artifactId>maven-javadoc-plugin</artifactId>
666+
<configuration>
667+
<source>1.8</source>
668+
<failOnError>false</failOnError>
669+
</configuration>
670+
</plugin>
671+
</plugins>
672+
</reporting>
673+
</profile>
634674
</profiles>
635675
</project>

0 commit comments

Comments
 (0)