mirror of https://github.com/apache/lucene.git
Remove hardcoded "--release" from renderJavadoc task (#13132)
This commit is contained in:
parent
8f759d5bf6
commit
47021ae98f
|
@ -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<String, File> offlineLinks = [:]
|
||||
|
||||
|
@ -423,7 +428,7 @@ class RenderJavadocTask extends DefaultTask {
|
|||
opts << [ '-linkoffline', url, dir ]
|
||||
}
|
||||
|
||||
opts << [ '--release', 17 ]
|
||||
opts << [ '--release', releaseVersion.toString() ]
|
||||
opts << '-Xdoclint:all,-missing'
|
||||
|
||||
// Increase Javadoc's heap.
|
||||
|
|
Loading…
Reference in New Issue