Skip to content

Commit 99ad0ed

Browse files
committed
gradle: don't exclude unix files on macos
Somehow they are needed. No clue. Fixes GH-43
1 parent c7a05a9 commit 99ad0ed

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build.gradle.kts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,13 +607,15 @@ val fatJar = tasks.register("fatJar", fun Jar.() {
607607
exclude("com/sun/jna/freebsd*/**")
608608
exclude("com/sun/jna/openbsd*/**")
609609
exclude("com/sun/jna/dragonflybsd*/**")
610-
exclude("com/sun/jna/platform/unix/**")
611610
exclude("com/sun/jna/platform/bsd/**")
612611
exclude("oshi/software/os/unix/**")
613612
exclude("oshi/hardware/platform/unix/**")
614613
exclude("oshi/driver/unix/**")
615614
exclude("org/lwjgl/system/freebsd/**")
616615
}
616+
if (PlatformInfo.OS != OSTypes.MAC && PlatformInfo.OS != OSTypes.UNIX) {
617+
exclude("com/sun/jna/platform/unix/**")
618+
}
617619
if (PlatformInfo.OS != OSTypes.LINUX) {
618620
exclude("com/sun/jna/platform/linux/**")
619621
exclude("com/sun/jna/linux*/**")

0 commit comments

Comments
 (0)