Skip to content

Commit 1541fdb

Browse files
authored
Suppress setting spring.datasource.url by cf_env (#320)
The library [Java CF Env](https://github.com/pivotal-cf/java-cfenv/tree/main/java-cfenv-boot) is added to the classpath by the java_buildpack on startup. This change prevents it from configuring our datasource.
1 parent 656e02a commit 1541fdb

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ package-lock.json
2525
.mta/
2626
*.mtar
2727
mta.yaml
28+
mta_archives/
2829

2930
*.log*
3031
gc_history*

mta.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ modules:
1818
SPRING_PROFILES_ACTIVE: cloud
1919
JBP_CONFIG_COMPONENTS: '{jres: ["JavaBuildpack::Jre::SapMachineJRE"]}'
2020
JBP_CONFIG_SAP_MACHINE_JRE: '{ jre: { version: "17.+" } }'
21+
# We do not want cfenv to configure the DataSource for us
22+
# cfenv uses names of the services, so this variable must be adapted if needed
23+
# as CFENV_SERVICE_[service-name]_ENABLED
24+
# See https://docs.cloudfoundry.org/buildpacks/java/configuring-service-connections.html
25+
CFENV_SERVICE_BOOKSHOP-PG-DB_ENABLED: false
2126
build-parameters:
2227
builder: custom
2328
commands:

0 commit comments

Comments
 (0)