Skip to content

Commit fd0eb14

Browse files
committed
doc: workaround for javadoc error
The following error occurs when using JDK 9+ javadoc: error - The code being documented uses modules but the packages defined in https://docs.oracle.com/javaee/7/api/ are in the unnamed module. This commit implements a workaround so docs can be built on JDK8+.
1 parent ec676c9 commit fd0eb14

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

module/pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,13 @@
171171
<artifactId>maven-javadoc-plugin</artifactId>
172172
<version>${maven.javadoc.plugin}</version>
173173
<configuration>
174+
<!--
175+
This is required to allow javadocs to be built on jdk 9+. If/when
176+
the jsonurl codebase moves to JDK9 this can probably be removed.
177+
-->
178+
<javadocVersion>${jdk.version}</javadocVersion>
179+
<source>${jdk.version}</source>
180+
174181
<doclint>all,-missing</doclint>
175182
<!--
176183
Ideally I'd simply link to javadoc.io for everything here via

0 commit comments

Comments
 (0)