Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v5
with:
java-version: 21
java-version: 25
distribution: sapmachine

- name: Build with Maven
Expand Down
2 changes: 1 addition & 1 deletion mta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ modules:
properties:
SPRING_PROFILES_ACTIVE: cloud
JBP_CONFIG_COMPONENTS: '{jres: ["JavaBuildpack::Jre::SapMachineJRE"]}'
JBP_CONFIG_SAP_MACHINE_JRE: '{ jre: { version: "21.+" } }'
JBP_CONFIG_SAP_MACHINE_JRE: '{ jre: { version: "25.+" } }'
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SapMachine 25 isn't available on GCP:

   2026-04-27T14:33:12.05+0200 [STG/0] OUT -----> Java Buildpack v4.77.0 (offline) | https://github.com/cloudfoundry/java-buildpack.git#1194e2c3
   2026-04-27T14:33:12.06+0200 [STG/0] ERR [Buildpack]                      ERROR Finalize failed with exception #<RuntimeError: Sap Machine JRE error: No version resolvable for '25.+' in 1.8.0_345, 1.8.0_352, 1.8.0_362, 1.8.0_372, 1.8.0_382, 1.8.0_392, 1.8.0_402, 1.8.0_412, 1.8.0_422, 1.8.0_432, 1.8.0_442, 1.8.0_452, 10.0.0_0.2.b46, 10.0.1_0.0.b10, 10.0.2_0.0.b13, 10.0.2_0.1.b13, 11.0.0_0.1.b28, 11.0.10_0.0.b0, 11.0.11_0.0.b0, 11.0.12_0.0.b0, 11.0.13_0.0.b0, 11.0.14_0.0.b0, 11.0.14_1.0.b0, 11.0.15_0.0.b0, 11.0.15_0.1.b0, 11.0.16_0.0.b0, 11.0.16_1.0.b0, 11.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5_0.0.b0, 21.0.6_0.0.b0, 21.0.7_0.0.b0, 22.0.0_0.0.b0, 22.0.1_0.0.b0, 22.0.2_0.0.b0, 23.0.0_0.0.b0, 23.0.1_0.0.b0, 23.0.2_0.0.b0, 24.0.0_0.0.b0, 24.0.1_0.0.b0>
   2026-04-27T14:33:12.06+0200 [STG/0] ERR Sap Machine JRE error: No version resolvable for '25.+' in 1.8.0_345, 1.8.0_352, 1.8.0_362, 1.8.0_372, 1.8.0_382, 1.8.0_392, 1.8.0_402, 1.8.0_412, 1.8.0_422, 1.8.0_432, 1.8.0_442, 1.8.0_452, 10.0.0_0.2.b46, 10.0.1_0.0.b10, 10.0.2_0.0.b13, 10.0.2_0.1.b13, 11.0.0_0.1.b28, 11.0.10_0.0.b0, 11.0.11_0.0.b0, 11.0.12_0.0.b0, 11.0.13_0.0.b0, 11.0.14_0.0.b0, 11.0.14_1.0.b0, 11.0.15_0.0.b0, 11.0.15_0.1.b0, 11.0.16_0.0.b0, 11.0.16_1.0.b0, 11.0.17_0.0.b0, 11.0.18_0.0.b0, 11.0.19_0.0.b0, 11.0.1_0.0.b13, 11.0.20_0.0.b0, 11.0.20_1.0.b0, 11.0.21_0.0.b0, 11.0.22_0.0.b0, 11.0.23_0.0.b0, 11.0.24_0.0.b0, 11.0.25_0.0.b0, 11.0.26_0.0.b0, 11.0.27_0.0.b0, 11.0.2_0.0.b0, 11.0.3_0.0.b0, 11.0.4_0.0.b0, 11.0.5_0.0.b0, 11.0.6_0.0.b0, 11.0.6_0.1.b0, 11.0.7_0.0.b0, 11.0.8_0.0.b0, 11.0.9_0.0.b0, 11.0.9_1.0.b0, 12.0.0_0.0.b0, 12.0.1_0.0.b0, 12.0.2_0.0.b0, 13.0.0_0.0.b0, 13.0.1_0.0.b0, 13.0.2_0.0.b0, 14.0.0_0.0.b0, 14.0.1_0.0.b0, 14.0.2_0.0.b0, 15.0.0_0.0.b0, 15.0.1_0.0.b0, 15.0.2_0.0.b0, 16.0.0_0.0.b0, 16.0.1_0.0.b0, 16.0.2_0.0.b0, 17.0.0_0.0.b0, 17.0.10_0.0.b0, 17.0.11_0.0.b0, 17.0.12_0.0.b0, 17.0.13_0.0.b0, 17.0.14_0.0.b0, 17.0.15_0.0.b0, 17.0.1_0.0.b0, 17.0.2_0.0.b0, 17.0.3_0.0.b0, 17.0.3_0.1.b0, 17.0.4_0.0.b0, 17.0.4_1.0.b0, 17.0.5_0.0.b0, 17.0.6_0.0.b0, 17.0.7_0.0.b0, 17.0.8_0.0.b0, 17.0.8_1.0.b0, 17.0.9_0.0.b0, 18.0.0_0.0.b0, 18.0.1_0.0.b0, 18.0.1_1.0.b0, 18.0.2_0.0.b0, 18.0.2_1.0.b0, 19.0.0_0.0.b0, 19.0.1_0.0.b0, 19.0.2_0.0.b0, 20.0.0_0.0.b0, 20.0.1_0.0.b0, 20.0.2_0.0.b0, 21.0.0_0.0.b0, 21.0.1_0.0.b0, 21.0.2_0.0.b0, 21.0.3_0.0.b0, 21.0.4_0.0.b0, 21.0.5_0.0.b0, 21.0.6_0.0.b0, 21.0.7_0.0.b0, 22.0.0_0.0.b0, 22.0.1_0.0.b0, 22.0.2_0.0.b0, 23.0.0_0.0.b0, 23.0.1_0.0.b0, 23.0.2_0.0.b0, 24.0.0_0.0.b0, 24.0.1_0.0.b0
   2026-04-27T14:33:12.07+0200 [STG/0] ERR Failed to compile droplet: Failed to run finalize script: exit status 1

Can we use the Open JDK instead ?

# We do not want cfenv to configure the DataSource for us
# cfenv uses names of the services, so this variable must be adapted if needed
# as CFENV_SERVICE_[service-name]_ENABLED
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<revision>1.0.0-SNAPSHOT</revision>

<!-- DEPENDENCIES VERSION -->
<jdk.version>21</jdk.version>
<jdk.version>25</jdk.version>
<cds.services.version>4.9.0</cds.services.version>
<spring.boot.version>3.5.14</spring.boot.version>
<cf-java-logging-support.version>4.2.0</cf-java-logging-support.version>
Expand Down