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

Commit

Permalink
fix: Fix javadoc generation on Java11 (#1145)
Browse files Browse the repository at this point in the history
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 c7a039e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build.gradle
Expand Up @@ -196,6 +196,9 @@ subprojects {
if (JavaVersion.current().isJava8Compatible()) {
addStringOption('Xdoclint:all,-missing', '-quiet')
}
if (JavaVersion.current().isJava11Compatible()) {
addStringOption('-release', '7')
}
}

// Test jar
Expand Down

0 comments on commit c7a039e

Please sign in to comment.