-
Notifications
You must be signed in to change notification settings - Fork 2.6k
add support for spring boot 4, with a fallback to 3 #1226
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -39,6 +39,8 @@ default_versions: | |
| - name: auto-reconfiguration | ||
| version: 2.x | ||
| - name: java-cfenv | ||
| version: 4.x | ||
| - name: java-cfenv-sb3 | ||
| version: 3.x | ||
| - name: client-certificate-mapper | ||
| version: 2.x | ||
|
|
@@ -283,14 +285,22 @@ dependencies: | |
| - cflinuxfs4 | ||
| source: https://repo1.maven.org/maven2/org/jacoco/jacoco/0.8.14/jacoco-0.8.14.zip | ||
| source_sha256: 0372447f54900b4e77bcb216985b7d31cf5318fc599f8f9346ee35830448c125 | ||
| - name: java-cfenv | ||
| - name: java-cfenv-sb3 | ||
| version: 3.5.0 | ||
| uri: https://java-buildpack.cloudfoundry.org/java-cfenv/java-cfenv-3.5.0.jar | ||
| sha256: 6a761fe530783c0ec9e6d1713ef54f6504803bf1ad02856d3ee7b46211f905c5 | ||
| cf_stacks: | ||
| - cflinuxfs4 | ||
| source: https://repo1.maven.org/maven2/io/pivotal/cfenv/java-cfenv/3.5.0/java-cfenv-3.5.0.jar | ||
| source_sha256: 9cc8d4c368bc90eafb7b6b14bc34c57ef5523f3ec8546e3fbd91326cdfc13500 | ||
| - name: java-cfenv | ||
| version: 4.0.0 | ||
| uri: https://java-buildpack.cloudfoundry.org/java-cfenv/java-cfenv-4.0.0.jar | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This file is not available at this url but I couldn't find what the process was to get it available there
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we need to add this to our dependecy-builds pipeline
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should I prep a PR for that or do you have something in the works for it?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The manifest will be populated once we add it to the buildpack dependency config in our overall dependency pipeline |
||
| sha256: caa4a78642a39df4fe01ed2013fef1f58ac7ce5376d7791f9b4c8f6eba9da94e | ||
| cf_stacks: | ||
| - cflinuxfs4 | ||
| source: https://repo1.maven.org/maven2/io/pivotal/cfenv/java-cfenv/4.0.0/java-cfenv-4.0.0.jar | ||
| source_sha256: caa4a78642a39df4fe01ed2013fef1f58ac7ce5376d7791f9b4c8f6eba9da94e | ||
| - name: java-memory-assistant | ||
| version: 0.5.0 | ||
| uri: https://github.com/SAP/java-memory-assistant/releases/download/0.5.0/java-memory-assistant-0.5.0.jar | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we also up this to 3.5.1?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes that is possible
we could keep 2 lines
i already was worrking on a document for migrate/add to automation
see https://github.com/cloudfoundry/buildpacks-ci/blob/bfed40a5c25b065973b851dd5269a734fc380d1c/docs/java-dependency-migration-plan.md#java-cfenv---active-v400-released-feb-2026-breaking-change-from-3x
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is also a bigger problem. and that is that the buildpack is now exceeding the 1gb range. and is now even 1.2gb
so adding more dependencies/version is something we need to be aware off
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, I saw the size was also an issue in the past when Java 21 was added. There is a lot in the "--cached" buildpack.zip indeed. Did a local check and biggest dependencies are your-kit-profiler (137MB) and jprofiler (119MB). Then we have 5 java versions (8,11,17,21,25) in 3 distributions (OpenJDK, Zulu, SAPMachine) for a total of ~596MB. In comparison: the java-cfenv jar is about 872kb. ;-)
Seems off topic here: maybe for another issue/PR: is it possible to create slimmed down versions? E.g. with only one JDK distribution and with/without profilers?
We create a stripped down offline buildpack ourselves with only what we need by removing entries from the manifest.yml file. (One downside: if you then request something not present, e.g. a profiler that is not included, the cf push fails with an unclear error message).