Skip to content

Commit cf95c34

Browse files
authored
Fix third party audit task when running with Java 20 (#94601)
The upgrade to Lucene 9.6 snapshot broke third party audit when running against Java 20, presumably because the usage of the since removed MemorySegment API has been removed.
1 parent c45038c commit cf95c34

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

libs/plugin-analysis-api/build.gradle

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,3 @@ tasks.named('forbiddenApisMain').configure {
2929
tasks.named("dependencyLicenses").configure {
3030
mapping from: /lucene-.*/, to: 'lucene'
3131
}
32-
33-
tasks.named("thirdPartyAudit").configure {
34-
if (BuildParams.runtimeJavaVersion == JavaVersion.VERSION_20) {
35-
ignoreMissingClasses(
36-
// This class was removed in Java 20 but is only referenced by a class that requires preview features anyhow
37-
// See: https://github.com/apache/lucene/pull/12042
38-
'java.lang.foreign.MemorySession',
39-
)
40-
}
41-
}

server/build.gradle

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -239,14 +239,6 @@ tasks.named("thirdPartyAudit").configure {
239239
'org.zeromq.ZMQ',
240240
)
241241
ignoreMissingClasses 'javax.xml.bind.DatatypeConverter'
242-
243-
if (BuildParams.runtimeJavaVersion == JavaVersion.VERSION_20) {
244-
ignoreMissingClasses(
245-
// This class was removed in Java 20 but is only referenced by a class that requires preview features anyhow
246-
// See: https://github.com/apache/lucene/pull/12042
247-
'java.lang.foreign.MemorySession',
248-
)
249-
}
250242
}
251243

252244
tasks.named("dependencyLicenses").configure {

0 commit comments

Comments
 (0)