Fix javadoc generation on java 11

See https://github.com/gradle/gradle/issues/11182
This commit is contained in:
Paul Schaub 2020-08-30 22:34:29 +02:00
parent 2b3f7ef54a
commit 8a2f74a603
Signed by: vanitasvitae
GPG Key ID: 62BEE9264BF17311
1 changed files with 4 additions and 1 deletions

View File

@ -235,8 +235,11 @@ task jacocoRootReport(type: JacocoReport) {
setOnlyIf { true }
}
task javadocAll(type: Javadoc) {
def currentJavaVersion = JavaVersion.current()
if (currentJavaVersion.compareTo(JavaVersion.VERSION_1_9) >= 0) {
options.addStringOption("-release", "8");
}
source subprojects.collect {project ->
project.sourceSets.main.allJava }
destinationDir = new File(buildDir, 'javadoc')