Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ensure grails-wrapper files exist in native grails-forge-cli builds #393

Merged
merged 3 commits into from
Oct 10, 2024

Conversation

jamesfredley
Copy link
Contributor

@jamesfredley jamesfredley commented Oct 10, 2024

To make native binaries small, the native-image builder performs static analysis at build time to determine only the necessary program elements that are needed for the correctness of the application. Small binaries allow fast application startup and low memory footprint, however they come at a cost: determining dynamically-accessed application elements via static analysis is infeasible as reachability of those elements depends on data that is available only at run time.

To ensure inclusion of necessary dynamically-accessed elements into the native binary, the native-image builder requires reachability metadata (hereinafter referred to as metadata). Providing the builder with correct and exhaustive reachability metadata guarantees application correctness and ensures compatibility with third-party libraries at runtime.

https://www.graalvm.org/latest/reference-manual/native-image/metadata/#specifying-metadata-with-json

@jamesfredley jamesfredley changed the title fix grails-wrapper feature in native grails-forge-cli builds ensure grails-wrapper files exist in native grails-forge-cli builds Oct 10, 2024
@jamesfredley jamesfredley linked an issue Oct 10, 2024 that may be closed by this pull request
@jamesfredley jamesfredley self-assigned this Oct 10, 2024
@jamesfredley jamesfredley merged commit af2bdfc into 6.2.x Oct 10, 2024
10 checks passed
@jamesfredley jamesfredley deleted the fix-native-build-wrapper branch October 10, 2024 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Problem Generating Grails Wrapper
2 participants