cloudfoundry / java-buildpack

Cloud Foundry buildpack for running Java applications
Apache License 2.0
435 stars 2.58k forks source link

Adds java-cfenv framework #1031

Closed pivotal-david-osullivan closed 11 months ago

pivotal-david-osullivan commented 12 months ago

This PR adds a new framework, Java CfEnv, which contributes the java-cfenv library for Spring Boot 3+ apps. This is the recommended replacement for Spring AutoReconfiguration which is deprecated.

The Java CfEnv library will set the 'cloud' profile when used with the buildpack, which Spring AutoReconfiguration set explicitly.

Addresses #951

anthonydahanne commented 12 months ago

LGTM (no maintainer role)

anthonydahanne commented 11 months ago

LGTM (no maintainer role)

I have thoroughly tested the new behavior with Spring Boot 3, and I approve this PR as ready for merging!