Skip to content

Commit a75db3c

Browse files
authored
#23 - Fails to build Windows image (#24)
1 parent afaff9d commit a75db3c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ plugins {
1010
}
1111

1212
group 'com.formkiq.gradle'
13-
version '1.5.0'
13+
version '1.5.1'
1414

1515
java {
1616
toolchain {

src/main/java/com/formkiq/gradle/internal/NativeImageExecutor.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ private String buildClassPathString(final Project project) {
9494
files.add(Path.of(project.getBuildDir().getAbsolutePath(), GRAALVM_JAVA_MAIN).toFile());
9595
addClasspaths(files);
9696

97-
return files.stream().map(File::getAbsolutePath).map(s -> formatToUnix(s))
97+
return files.stream().map(File::getAbsolutePath)
98+
.map(s -> this.extension.getDockerImage() != null ? formatToUnix(s) : s)
9899
.collect(Collectors.joining(OperatingSystem.current().isWindows() ? ";" : ":"));
99100
}
100101

0 commit comments

Comments
 (0)