Skip to content

Commit

Permalink
Remove scala-collection-compat_2.13 dependency from Scala 3
Browse files Browse the repository at this point in the history
We have both `scala-collection-compat_2.13` and `scala-collection-compat_3` in the classpath
  • Loading branch information
lolgab committed May 17, 2024
1 parent 741e5db commit 4894fcc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -446,8 +446,10 @@ object amm extends Cross[MainModule](fullCrossScalaVersions: _*) {
// we remove transitive _2.13 dependencies from Scala 3 and
// then we add it back with _3
.exclude("com.lihaoyi" -> "sourcecode_2.13")
.exclude("org.scala-lang.modules" -> "scala-collection-compat_2.13")
else dep
) ++ (if (isScala3(crossScalaVersion)) Agg(Deps.sourcecode) else Agg.empty[Dep])
) ++ (if (isScala3(crossScalaVersion)) Agg(Deps.sourcecode, Deps.scalaCollectionCompat)
else Agg.empty[Dep])
}

// object `test-runner` extends mill.scalalib.SbtModule {
Expand Down

0 comments on commit 4894fcc

Please sign in to comment.