From a75db3c7fe9dc502818f2fbd38cbf887a156b31b Mon Sep 17 00:00:00 2001 From: Mike Friesen Date: Tue, 6 Jun 2023 20:59:56 -0500 Subject: [PATCH] #23 - Fails to build Windows image (#24) --- build.gradle | 2 +- .../java/com/formkiq/gradle/internal/NativeImageExecutor.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 32b8c87..cfe9161 100644 --- a/build.gradle +++ b/build.gradle @@ -10,7 +10,7 @@ plugins { } group 'com.formkiq.gradle' -version '1.5.0' +version '1.5.1' java { toolchain { diff --git a/src/main/java/com/formkiq/gradle/internal/NativeImageExecutor.java b/src/main/java/com/formkiq/gradle/internal/NativeImageExecutor.java index b451993..d1d18f8 100644 --- a/src/main/java/com/formkiq/gradle/internal/NativeImageExecutor.java +++ b/src/main/java/com/formkiq/gradle/internal/NativeImageExecutor.java @@ -94,7 +94,8 @@ private String buildClassPathString(final Project project) { files.add(Path.of(project.getBuildDir().getAbsolutePath(), GRAALVM_JAVA_MAIN).toFile()); addClasspaths(files); - return files.stream().map(File::getAbsolutePath).map(s -> formatToUnix(s)) + return files.stream().map(File::getAbsolutePath) + .map(s -> this.extension.getDockerImage() != null ? formatToUnix(s) : s) .collect(Collectors.joining(OperatingSystem.current().isWindows() ? ";" : ":")); }