Skip to content

Commit 557b989

Browse files
authored
Update pack.java
1 parent 5dba691 commit 557b989

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

samples/hello-quarkus/pack.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ public static void main(String... args) {
4444

4545
String JDK="17";
4646

47+
Map<String,String> envMap = new java.util.HashMap<>();
48+
envMap.put("BP_JVM_VERSION",JDK);
49+
4750
int exitCode = BuildConfig.builder()
4851
//.withBuilderImage(new ImageReference("docker.io/paketocommunity/builder-ubi-base"))
4952
.withBuilderImage(new ImageReference("quay.io/ozzydweller/testbuilders:paketo-default"))
@@ -53,7 +56,7 @@ public static void main(String... args) {
5356
.and()
5457
.withNewPlatformConfig()
5558
.withPhaseDebugScript(debugScript)
56-
.withEnvironment(Map.of("BP_JVM_VERSION",JDK))
59+
.withEnvironment(envMap)
5760
.and()
5861
.withNewLogConfig()
5962
.withLogger(new SystemLogger())

0 commit comments

Comments
 (0)