From dfe08b585b6ac0eaf5af0d63a5b85e284d0527e3 Mon Sep 17 00:00:00 2001
From: cmoulliard <cmoulliard@redhat.com>
Date: Wed, 20 Nov 2024 11:13:32 +0100
Subject: [PATCH] Remove double code

Signed-off-by: cmoulliard <cmoulliard@redhat.com>
---
 samples/build-me/src/main/java/dev/snowdrop/BuildMe.java | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/samples/build-me/src/main/java/dev/snowdrop/BuildMe.java b/samples/build-me/src/main/java/dev/snowdrop/BuildMe.java
index 994713c..68071f8 100644
--- a/samples/build-me/src/main/java/dev/snowdrop/BuildMe.java
+++ b/samples/build-me/src/main/java/dev/snowdrop/BuildMe.java
@@ -28,6 +28,8 @@ public static void main(String... args) {
 
         Map<String, String> envMap = new HashMap<>();
         envMap.put("BP_JVM_VERSION", "21");
+        // envMap.put("BP_MAVEN_BUILT_ARTIFACT","target/quarkus-app/lib/ target/quarkus-app/*.jar target/quarkus-app/app/ target/quarkus-app/quarkus");
+        // envMap.put("CNB_LOG_LEVEL","trace");
 
         DockerClient client = getDockerClient();
         client.authConfig()
@@ -39,11 +41,7 @@ public static void main(String... args) {
             .withBuilderImage(new ImageReference("paketocommunity/builder-ubi-base:latest"))
             .withOutputImage(new ImageReference("quay.io/snowdrop/my-quarkus-app"))
             .withNewPlatformConfig()
-              .withEnvironment(Map.ofEntries(
-                  Map.entry("BP_JVM_VERSION", "21")
-                  // Map.entry("BP_MAVEN_BUILT_ARTIFACT","target/quarkus-app/lib/ target/quarkus-app/*.jar target/quarkus-app/app/ target/quarkus-app/quarkus"),
-                  // Map.entry("CNB_LOG_LEVEL","trace")
-                  ))
+              .withEnvironment(envMap)
             .endPlatformConfig()
             .withNewDockerConfig()
               .withDockerClient(client)