From f938827132f4f81b8bf64418c3da2354529ebf0e Mon Sep 17 00:00:00 2001 From: Lionel Fleury Date: Wed, 11 Oct 2023 18:12:47 +0200 Subject: [PATCH] add explicit bundles for native-build (#370) --- ci_scripts/make_native_artifact.sh | 2 ++ ci_scripts/resource-config.json | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100644 ci_scripts/resource-config.json diff --git a/ci_scripts/make_native_artifact.sh b/ci_scripts/make_native_artifact.sh index 6e8cc10..ed93833 100755 --- a/ci_scripts/make_native_artifact.sh +++ b/ci_scripts/make_native_artifact.sh @@ -16,6 +16,7 @@ mkdir templates/ cp ../src/scala/com/github/johnynek/bazel_deps/templates/* templates/ cp ../bazel-deps.jar . cp ../ci_scripts/reflection.json . +cp ../ci_scripts/resource-config.json . native-image -H:+ReportUnsupportedElementsAtRuntime \ --initialize-at-build-time \ @@ -26,6 +27,7 @@ native-image -H:+ReportUnsupportedElementsAtRuntime \ -H:EnableURLProtocols=http,https \ --enable-all-security-services \ -H:ReflectionConfigurationFiles=reflection.json \ + -H:ResourceConfigurationFiles=resource-config.json \ --allow-incomplete-classpath \ -H:+ReportExceptionStackTraces \ --no-fallback \ diff --git a/ci_scripts/resource-config.json b/ci_scripts/resource-config.json new file mode 100644 index 0000000..dceb171 --- /dev/null +++ b/ci_scripts/resource-config.json @@ -0,0 +1,6 @@ +{ + "resources": [], + "bundles": [ + {"name":"com.sun.org.apache.xerces.internal.impl.msg.XMLMessages"} + ] +}