diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index 4998522b..934d88c4 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -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
diff --git a/README.md b/README.md
index 833e3e82..fab18d6d 100644
--- a/README.md
+++ b/README.md
@@ -109,7 +109,6 @@ Prerequisites:
- Install the [Cloud Foundry Command Line Interface](https://docs.cloudfoundry.org/cf-cli/install-go-cli.html).
- Get an SAP Business Technology Platform account to deploy the services and applications.
- Ensure you have an entitlement for _PostgreSQL, hyperscaler option_ with appropriate plan in the same space.
-- Ensure that your CF instances are connected to Internet to download SAPMachine JRE 17 as it is available in `sap_java_buildpack` in online mode only and you run in the landscape where the _PostgreSQL, hyperscaler option_ is available.
Deploy Application:
- Run `mbt build`
diff --git a/mta.yaml b/mta.yaml
index bcd22968..626767f5 100644
--- a/mta.yaml
+++ b/mta.yaml
@@ -13,16 +13,14 @@ modules:
parameters:
memory: 1024M
disk-quota: 512M
- buildpack: java_buildpack
+ buildpack: sap_java_buildpack_jakarta
properties:
- SPRING_PROFILES_ACTIVE: cloud
- JBP_CONFIG_COMPONENTS: '{jres: ["JavaBuildpack::Jre::SapMachineJRE"]}'
- JBP_CONFIG_SAP_MACHINE_JRE: '{ jre: { version: "21.+" } }'
- # 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
- # See https://docs.cloudfoundry.org/buildpacks/java/configuring-service-connections.html
- CFENV_SERVICE_BOOKSHOP-PG-DB_ENABLED: false
+ SPRING_PROFILES_ACTIVE: cloud
+ JBP_CONFIG_COMPONENTS: "jres: ['com.sap.xs.java.buildpack.jdk.SAPMachineJDK']"
+ JBP_CONFIG_SAP_MACHINE_JDK: '{ version: 25.+ }'
+ # Skip provided libraries (e.g. PostgreSQL driver) as they are already included in the Bookshop
+ # See: https://help.sap.com/docs/btp/sap-business-technology-platform/application-provided-library-components?locale=en-US&version=Cloud#jbp_skip_provided_library_components
+ JBP_SKIP_PROVIDED_LIBRARY_COMPONENTS: true
build-parameters:
builder: custom
commands:
diff --git a/pom.xml b/pom.xml
index 78133001..d5472914 100644
--- a/pom.xml
+++ b/pom.xml
@@ -15,7 +15,7 @@
1.0.0-SNAPSHOT
- 21
+ 25
4.9.0
3.5.14
4.2.0