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 d24e768
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 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,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)
Expand Down

0 comments on commit d24e768

Please sign in to comment.