Skip to content
This repository was archived by the owner on Sep 26, 2023. It is now read-only.

Commit c7a039e

Browse files
authored
fix: Fix javadoc generation on Java11 (#1145)
Without this fix gradle fails witht he following error for publishing tasks (like `./gradlew clean publishMavenJavaPublicationToMavenLocal`) when built on `Java 11` (it used to work normally on `Java 8`) ``` javadoc: error - The code being documented uses modules but the packages defined in https://docs.oracle.com/javase/7/docs/api/ are in the unnamed module ```
1 parent 0512a15 commit c7a039e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,9 @@ subprojects {
196196
if (JavaVersion.current().isJava8Compatible()) {
197197
addStringOption('Xdoclint:all,-missing', '-quiet')
198198
}
199+
if (JavaVersion.current().isJava11Compatible()) {
200+
addStringOption('-release', '7')
201+
}
199202
}
200203

201204
// Test jar

0 commit comments

Comments
 (0)