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

Remove setting BP_NATIVE_IMAGE environment variable when building images #32884

Closed
scottfrederick opened this issue Oct 26, 2022 · 1 comment
Closed
Assignees
Labels
type: enhancement A general enhancement
Milestone

Comments

@scottfrederick
Copy link
Contributor

When paketo-buildpacks/spring-boot#273 is implemented, Paketo buildpacks will build an image containing a native executable by default when invoked with a Spring Boot jar or war, there's no need for the Spring Boot Maven and Gradle plugins to set BP_NATIVE_IMAGE to true explicitly.

@mhalbritter
Copy link
Contributor

mhalbritter commented Sep 17, 2024

We now no longer set BP_NATIVE_IMAGE: true. We, however, add Spring-Boot-Native-Processed: true to the manifest. This is read by the Spring Boot buildpack, which then provides the native-image-application buildplan entry, which triggers the native image buildpack and builds a native image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants