Skip to content

Commit

Permalink
Remove hardcoded "--release" from renderJavadoc task (apache#13132)
Browse files Browse the repository at this point in the history
# Conflicts:
#	gradle/documentation/render-javadoc.gradle
  • Loading branch information
uschindler committed Feb 25, 2024
1 parent cbea492 commit 5683676
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions gradle/documentation/render-javadoc.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ allprojects {
dependsOn sourceSets.main.compileClasspath
classpath = sourceSets.main.compileClasspath
srcDirSet = sourceSets.main.java
releaseVersion = rootProject.minJavaVersion

outputDir = project.javadoc.destinationDir
}
Expand All @@ -74,6 +75,7 @@ allprojects {
dependsOn sourceSets.main.compileClasspath
classpath = sourceSets.main.compileClasspath
srcDirSet = sourceSets.main.java
releaseVersion = rootProject.minJavaVersion

relativeProjectLinks = true

Expand Down Expand Up @@ -265,7 +267,10 @@ class RenderJavadocTask extends DefaultTask {
boolean relativeProjectLinks = false

@Input
def offlineLinks = [:]
JavaVersion releaseVersion

@Input
Map<String, File> offlineLinks = [:]

@Input
@Optional
Expand Down Expand Up @@ -399,7 +404,7 @@ class RenderJavadocTask extends DefaultTask {
opts << [ '-linkoffline', url, dir ]
}

opts << [ '--release', 11 ]
opts << [ '--release', releaseVersion.toString() ]
opts << '-Xdoclint:all,-missing'

// Increase Javadoc's heap.
Expand Down

0 comments on commit 5683676

Please sign in to comment.