From a70b9b8d5551ae88ce0c2ec3bddae2a1b14b24c2 Mon Sep 17 00:00:00 2001 From: Hector Ventura Date: Fri, 16 Oct 2026 19:23:27 -0500 Subject: [PATCH] fix(build): let the Windows native build keep its JNI libraries (#5843) The native resource excludes dropped every Windows snappy-java library, and JNA's dispatch library, which docker-java's named-pipe transport loads for Docker Desktop on Windows, was never included. A Windows native binary would therefore lack both. The Windows x86_64 snappy library and JNA's win32-x86-64 dispatch library are now selected by two build properties, floci.native.windows-jni-exclude and floci.native.windows-jni-include. Their defaults keep every other build exactly as before; the Windows release build sets them to keep both. Refs #5767 Signed-off-by: Hector Ventura --- src/main/resources/application.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 5d8a6109ef..eca27f317f 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -86,14 +86,21 @@ quarkus: # OpenAPIParser discovers the Swagger 2.0 converter through ServiceLoader. - META-INF/services/io.swagger.v3.parser.core.extensions.SwaggerParserExtension - com/mysql/cj/util/TimeZoneMapping.properties + # JNA's dispatch library, which docker-java's named-pipe transport (Docker Desktop on + # Windows) loads. Only the Windows build includes it, with -Dfloci.native.windows-jni-include=*. + - com/sun/jna/win32-x86-64/${floci.native.windows-jni-include:none} # snappy-java registers 27 JNI libraries, one per platform. Only the one - # for the running platform loads, so 23 are dropped. Linux x86_64 and - # aarch64 cover the published images, Mac covers a local native build. + # for the running platform loads, so the others are dropped. Linux x86_64 and + # aarch64 cover the published images, Mac covers the macOS binaries. The + # Windows x86_64 library is kept only by the Windows build, which passes + # -Dfloci.native.windows-jni-exclude=none; every other build still excludes it. excludes: - org/xerial/snappy/native/AIX/** - org/xerial/snappy/native/FreeBSD/** - org/xerial/snappy/native/SunOS/** - - org/xerial/snappy/native/Windows/** + - org/xerial/snappy/native/Windows/aarch64/** + - org/xerial/snappy/native/Windows/x86/** + - org/xerial/snappy/native/Windows/x86_64/${floci.native.windows-jni-exclude:**} - org/xerial/snappy/native/Linux/android-aarch64/** - org/xerial/snappy/native/Linux/android-arm/** - org/xerial/snappy/native/Linux/arm/**