From 08169e7c418071a85782b76bb069455ed8de0290 Mon Sep 17 00:00:00 2001 From: Eugene Yokota Date: Fri, 10 Jul 2026 18:11:11 -0400 Subject: [PATCH 1/2] ALL-UNNAMED --- build.sbt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/build.sbt b/build.sbt index 323dbca..1217cbb 100644 --- a/build.sbt +++ b/build.sbt @@ -105,6 +105,22 @@ buildWin32X86_64 / skip := { }, _.isEmpty) } Test / fork := true +Test / javaOptions ++= { + import scala.util.Properties + if (Properties.isJavaAtLeast("11")) Seq("--enable-native-access=ALL-UNNAMED") + else Nil +} +Test / testGrouping := { + val tests = (Test / definedTests).value + tests + .groupBy(_.name) + .map { + case (name, tests) => + val options = (Test / forkOptions).value + new Tests.Group(name, tests, Tests.SubProcess(options)) + } + .toSeq +} clangfmt / fileInputs += baseDirectory.value.toGlob / "jni" / "*.c" commands += Command.command("buildNativeArtifacts") { state => "buildLinuxX86_64" :: "buildLinuxAarch64" :: "buildDarwin" :: "buildWin32X86_64" :: state From 4b0ab7312043538f44446a87452589460149db47 Mon Sep 17 00:00:00 2001 From: Eugene Yokota Date: Fri, 10 Jul 2026 17:43:20 -0400 Subject: [PATCH 2/2] jna 5.19.0 --- build.sbt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sbt b/build.sbt index 1217cbb..d44c8ea 100644 --- a/build.sbt +++ b/build.sbt @@ -5,7 +5,7 @@ import scala.collection.mutable.ArrayBuffer import scala.util.Try import scala.sys.process._ -val jnaVersion = "5.12.0" +val jnaVersion = "5.19.0" val jna = "net.java.dev.jna" % "jna" % jnaVersion val jnaPlatform = "net.java.dev.jna" % "jna-platform" % jnaVersion