From f55078986303eeb9611b2060085184451cebbc3d Mon Sep 17 00:00:00 2001 From: Foivos Zakkak Date: Thu, 18 Jun 2026 11:30:30 +0300 Subject: [PATCH] Include reachability metadata schema in mandrel releases Fixes https://github.com/graalvm/mandrel/issues/983 (cherry picked from commit 6a537795e4438edb1b845cc90db66c43f364a7bd) --- build.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build.java b/build.java index a31058b..747e5bf 100644 --- a/build.java +++ b/build.java @@ -175,6 +175,12 @@ public static void main(String... args) throws IOException } FileSystem.copy(mandrelRepo.resolve(Path.of("substratevm", "src", "com.oracle.svm.libffi", "include", "svm_libffi.h")), mandrelJavaHome.resolve(Path.of("lib", "svm", "clibraries", PLATFORM, "include", "svm_libffi.h"))); + // The reachability metadata schema is required by the native-maven-plugin + // (https://github.com/graalvm/native-build-tools/tree/master/native-maven-plugin/) + // to validate reachability metadata repositories. + // See: https://github.com/graalvm/mandrel/issues/983 + FileSystem.copy(mandrelRepo.resolve(Path.of("substratevm", "schemas", "reachability-metadata-schema-v1.2.0.json")), + mandrelJavaHome.resolve(Path.of("lib", "svm", "schemas", "reachability-metadata-schema.json"))); FileSystem.copy(mandrelRepo.resolve(Path.of("truffle", "src", "com.oracle.truffle.nfi.native", "include", "trufflenfi.h")), mandrelJavaHome.resolve(Path.of("lib", "svm", "clibraries", PLATFORM, "include", "trufflenfi.h"))); String platformAndJDK = PLATFORM + "-" + JDK_VERSION;