Skip to content
Permalink
Browse files
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
```
  • Loading branch information
vam-google committed Jul 14, 2020
1 parent 0512a15 commit c7a039e07be02298d9dd906b08e1e1bb995e85e2
Showing with 3 additions and 0 deletions.
  1. +3 −0 build.gradle
@@ -196,6 +196,9 @@ subprojects {
if (JavaVersion.current().isJava8Compatible()) {
addStringOption('Xdoclint:all,-missing', '-quiet')
}
if (JavaVersion.current().isJava11Compatible()) {
addStringOption('-release', '7')
}
}

// Test jar

0 comments on commit c7a039e

Please sign in to comment.