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

Add manifest entry to indicate that a jar has been built for native image #35205

Closed
scottfrederick opened this issue Apr 28, 2023 · 1 comment
Assignees
Labels
theme: aot An issue related to Ahead-of-time processing type: enhancement A general enhancement
Milestone

Comments

@scottfrederick
Copy link
Contributor

scottfrederick commented Apr 28, 2023

When a Spring Boot jar has been built for use in a native image, an entry named Spring-Boot-Native-Processed with a value of true should be added to the META-INF/MANIFEST.MF file. This indicates that the jar has been AOT processed, the GraalVM reachability metadata is enabled, and reachability metadata has been copied to the jar. Tooling such as Cloud Native Buildpacks can use this manifest attribute to make decisions about whether to package the application as a native executable.

This attribute will be absent from the manifest if the jar has not been prepared for use in a native image.

@scottfrederick scottfrederick added type: enhancement A general enhancement theme: aot An issue related to Ahead-of-time processing labels Apr 28, 2023
@scottfrederick scottfrederick added this to the 3.1.0-RC2 milestone Apr 28, 2023
@scottfrederick scottfrederick self-assigned this Apr 28, 2023
@scottfrederick
Copy link
Contributor Author

Closed with 23ae91b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme: aot An issue related to Ahead-of-time processing type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant