From 3b6b84a9558d0e3b0b7d80a2c04d4df85f9c3f9b Mon Sep 17 00:00:00 2001 From: Alexandre Archambault Date: Tue, 17 Sep 2024 18:36:07 +0200 Subject: [PATCH] Update coursier-interface to 1.0.21 --- build.sbt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.sbt b/build.sbt index 12ca0dedd3..4229025f6c 100644 --- a/build.sbt +++ b/build.sbt @@ -195,6 +195,10 @@ lazy val cli = crossProject(JVMPlatform).withoutSuffixFor(JVMPlatform) val isStatic = sys.env.get("NATIVE_IMAGE_STATIC").exists(_.toBoolean) if (isStatic) Seq("--static") else Nil }, + nativeImageOptions ++= Seq( + "org.scalafmt.cli.ScalafmtDynamicRunner$", + "coursierapi.internal.jniutils.ApiInternalNativeApi", + ).map(cls => s"--initialize-at-run-time=$cls"), ).dependsOn(core, dynamic).enablePlugins(NativeImagePlugin) lazy val tests = crossProject(JVMPlatform).withoutSuffixFor(JVMPlatform)