Skip to content

Commit

Permalink
add explicit bundles for native-build (#370)
Browse files Browse the repository at this point in the history
  • Loading branch information
lionelfleury authored Oct 11, 2023
1 parent fbe456b commit f938827
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ci_scripts/make_native_artifact.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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 \
Expand Down
6 changes: 6 additions & 0 deletions ci_scripts/resource-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"resources": [],
"bundles": [
{"name":"com.sun.org.apache.xerces.internal.impl.msg.XMLMessages"}
]
}

0 comments on commit f938827

Please sign in to comment.