Skip to content

Commit 1b1c669

Browse files
committed
Fix custom jre doc
1 parent 142f921 commit 1b1c669

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

docs/custom-jre-usage.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ applications:
178178
- my-custom-java-buildpack
179179
env:
180180
BP_JAVA_VERSION: 17
181-
JBP_CONFIG_COMPONENTS: '{"jres": ["OracleJRE"]}'
181+
JBP_CONFIG_ORACLE_JRE: '{ jre: { version: 17.+ }}'
182182
```
183183

184184
**Option B: Specify buildpack on command line**
@@ -191,7 +191,7 @@ cf push my-app -b my-custom-java-buildpack
191191
cf set-env my-app BP_JAVA_VERSION 17
192192
193193
# Select JRE vendor (if multiple JREs available)
194-
cf set-env my-app JBP_CONFIG_COMPONENTS '{"jres": ["GraalVMJRE"]}'
194+
cf set-env my-app JBP_CONFIG_GRAAL_VM_JRE '{ jre: { version: 21.+ }}'
195195
196196
# Restage to apply changes
197197
cf restage my-app
@@ -235,7 +235,7 @@ dependencies:
235235
# Push application with Oracle JRE 17
236236
cf push my-app -b my-custom-java-buildpack
237237
cf set-env my-app BP_JAVA_VERSION 17
238-
cf set-env my-app JBP_CONFIG_COMPONENTS '{"jres": ["OracleJRE"]}'
238+
cf set-env my-app JBP_CONFIG_ORACLE_JRE '{ jre: { version: 17.+ }}'
239239
cf restage my-app
240240
```
241241

0 commit comments

Comments
 (0)