javadocAll: Set source to sourceCompatibility to work around bug

in JDK 11. See https://bugs.openjdk.java.net/browse/JDK-8217177
This commit is contained in:
Florian Schmaus 2019-09-01 22:44:14 +02:00
parent 75625283ef
commit 1a7e2c1510
1 changed files with 6 additions and 0 deletions

View File

@ -306,6 +306,12 @@ task javadocAll(type: Javadoc, dependsOn: copyAllJavadocDocFiles) {
project.sourceSets.main.compileClasspath})
classpath += files(androidBootClasspath)
options {
// Add source compatiblitiy statement to work around bug in JDK 11
// See
// - https://bugs.openjdk.java.net/browse/JDK-8217177
// - http://hg.openjdk.java.net/jdk/jdk/rev/8ce4083fc831
// - https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=920020
source = sourceCompatibility
linkSource = true
use = true
links = [