File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed
build-tools-internal/src/main/groovy Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ configure(allprojects) {
61
61
project. getTasks(). withType(ThirdPartyAuditTask . class). configureEach {
62
62
if (BuildParams . getIsRuntimeJavaHomeSet() == false ) {
63
63
javaHome. set(providers. provider(() -> " ${ project.jdks.provisioned_runtime.javaHomePath} " ))
64
+ targetCompatibility. set(providers. provider(() -> JavaVersion . toVersion(project. jdks. provisioned_runtime. major)))
64
65
}
65
66
}
66
67
}
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ tasks.named("dependencyLicenses").configure {
31
31
}
32
32
33
33
tasks. named(" thirdPartyAudit" ). configure {
34
- if (BuildParams . runtimeJavaVersion == JavaVersion . VERSION_20 ) {
34
+ if (BuildParams . runtimeJavaVersion == JavaVersion . VERSION_20 || BuildParams . isRuntimeJavaHomeSet == false ) {
35
35
ignoreMissingClasses(
36
36
// This class was removed in Java 20 but is only referenced by a class that requires preview features anyhow
37
37
// See: https://github.com/apache/lucene/pull/12042
Original file line number Diff line number Diff line change @@ -236,7 +236,7 @@ tasks.named("thirdPartyAudit").configure {
236
236
)
237
237
ignoreMissingClasses ' javax.xml.bind.DatatypeConverter'
238
238
239
- if (BuildParams . runtimeJavaVersion == JavaVersion . VERSION_20 ) {
239
+ if (BuildParams . runtimeJavaVersion == JavaVersion . VERSION_20 || BuildParams . isRuntimeJavaHomeSet == false ) {
240
240
ignoreMissingClasses(
241
241
// This class was removed in Java 20 but is only referenced by a class that requires preview features anyhow
242
242
// See: https://github.com/apache/lucene/pull/12042
You can’t perform that action at this time.
0 commit comments