Skip to content
Merged
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
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
16 changes: 7 additions & 9 deletions mta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
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