Explorar el Código

Silence server third party audit on Java 19 builds

The forbidden apis plugin bundles an older version of ASM that doesn't
support Java 19. The version of Lucene we use is a MR jar that contains
Java 19 classes. Until forbidden apis updates their bundled ASM we'll
just mute these checks on Java 19 for now.
Mark Vieira hace 3 años
padre
commit
3791d6da99
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      server/build.gradle

+ 3 - 0
server/build.gradle

@@ -137,6 +137,9 @@ if (BuildParams.isSnapshotBuild() == false) {
 }
 
 tasks.named("thirdPartyAudit").configure {
+    // See: https://github.com/elastic/elasticsearch/issues/90445
+    onlyIf { BuildParams.runtimeJavaVersion < JavaVersion.VERSION_19 }
+
     ignoreMissingClasses(
             // from com.fasterxml.jackson.dataformat.yaml.YAMLMapper (jackson-dataformat-yaml)
             'com.fasterxml.jackson.databind.ObjectMapper',