outr / scribe

The fastest logging library in the world. Built from scratch in Scala and programmatically configurable.
MIT License
525 stars 42 forks source link

Fix `scala-collection-compat` for Scala Native #592

Closed lolgab closed 4 months ago

lolgab commented 4 months ago

scala-collection-compat was declared with %% which doesn't carry the .nir files necessary for Scala Native. Moreover, it was always added since the correct switch should be scalaVersion.startsWith("2.12.") not !scalaVersion.startsWith("3.0")

Workaround

Until this gets merged and published you can exclude the wrong scala-collection-compat artifact and manually add the correct version to your libraryDependencies

libraryDependencies ++= Seq(
  ("com.outr" %%% "scribe" % "3.14.0")
    .excludeAll("org.scala-lang.modules" %% "scala-collection-compat")
)

libraryDependencies ++= (
  if (scalaVersion.value.startsWith("2.12.")) {
    List("org.scala-lang.modules" %%% "scala-collection-compat" % "2.12.0")
  } else {
    Nil
  }
)