Set source version for javadoc task (#11209)

This commit is contained in:
Lauri Tulmin 2024-04-23 10:38:23 +03:00 committed by GitHub
parent 4e7a36f053
commit 8ffecc9cfc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 0 deletions

View File

@ -99,6 +99,11 @@ afterEvaluate {
sourceCompatibility = otelJava.minJavaVersionSupported.get().majorVersion
targetCompatibility = otelJava.minJavaVersionSupported.get().majorVersion
}
tasks.withType<Javadoc>().configureEach {
with(options) {
source = otelJava.minJavaVersionSupported.get().majorVersion
}
}
}
evaluationDependsOn(":dependencyManagement")

View File

@ -60,6 +60,11 @@ tasks.withType<Test>().configureEach {
jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")
}
tasks.withType<Javadoc>().configureEach {
// using com.sun.tools.javac.api.JavacTrees breaks javadoc generation
enabled = false
}
// Our conventions apply this project as a dependency in the errorprone configuration, which would cause
// a circular dependency if trying to compile this project with that still there. So we filter this
// project out.