From 5a09c66d04f14cc73729bb94f07b85be480a1969 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 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/build.sbt b/build.sbt index 12ca0dedd3..5807f60c22 100644 --- a/build.sbt +++ b/build.sbt @@ -60,7 +60,7 @@ lazy val dynamic = crossProject(JVMPlatform).withoutSuffixFor(JVMPlatform) buildInfoPackage := "org.scalafmt.dynamic", buildInfoObject := "BuildInfo", libraryDependencies ++= List( - "io.get-coursier" % "interface" % "0.0.17", + "io.get-coursier" % "interface" % "1.0.21", "com.typesafe" % "config" % "1.4.3", munit.value % Test, scalametaTestkit % Test, @@ -195,6 +195,12 @@ 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", + "coursierapi.shaded.org.fusesource.jansi.internal.Kernel32", + "coursierapi.shaded.org.fusesource.jansi.internal.Kernel32$CONSOLE_SCREEN_BUFFER_INFO", + ).map(cls => s"--initialize-at-run-time=$cls"), ).dependsOn(core, dynamic).enablePlugins(NativeImagePlugin) lazy val tests = crossProject(JVMPlatform).withoutSuffixFor(JVMPlatform)