Skip to content

Commit

Permalink
Update coursier-interface to 1.0.21
Browse files Browse the repository at this point in the history
  • Loading branch information
alexarchambault authored and kitbellew committed Sep 20, 2024
1 parent d0e7f65 commit 72648bb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -195,6 +195,11 @@ 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",
).map(cls => s"--initialize-at-run-time=$cls"),
).dependsOn(core, dynamic).enablePlugins(NativeImagePlugin)

lazy val tests = crossProject(JVMPlatform).withoutSuffixFor(JVMPlatform)
Expand Down

0 comments on commit 72648bb

Please sign in to comment.