diff --git a/gradle/documentation/render-javadoc.gradle b/gradle/documentation/render-javadoc.gradle index f76a2c401c2..2dc40c6ed32 100644 --- a/gradle/documentation/render-javadoc.gradle +++ b/gradle/documentation/render-javadoc.gradle @@ -53,6 +53,7 @@ allprojects { dependsOn sourceSets.main.compileClasspath classpath = sourceSets.main.compileClasspath srcDirSet = sourceSets.main.java + releaseVersion = rootProject.minJavaVersion outputDir = project.javadoc.destinationDir } @@ -72,6 +73,7 @@ allprojects { dependsOn sourceSets.main.compileClasspath classpath = sourceSets.main.compileClasspath srcDirSet = sourceSets.main.java + releaseVersion = rootProject.minJavaVersion relativeProjectLinks = true @@ -280,6 +282,9 @@ class RenderJavadocTask extends DefaultTask { @Input boolean relativeProjectLinks = false + @Input + JavaVersion releaseVersion + @Internal Map offlineLinks = [:] @@ -423,7 +428,7 @@ class RenderJavadocTask extends DefaultTask { opts << [ '-linkoffline', url, dir ] } - opts << [ '--release', 21 ] + opts << [ '--release', releaseVersion.toString() ] opts << '-Xdoclint:all,-missing' // Increase Javadoc's heap.