sergeda
sergeda

Reputation: 369

Scala 2 artifact in Scala 3 project: conflicting cross-version suffixes

I want to use Scala 2 library that wasn't migrated to Scala 3 yet in my Scala 3 project. When I add it as a dependency I get error Modules were resolved with conflicting cross-version suffixes. Is it possible to fix this?

Upvotes: 0

Views: 1028

Answers (1)

sergeda
sergeda

Reputation: 369

You can exclude the 2.13 scala-collection-compat like this:

    excludeDependencies += "org.scala-lang.modules" % "scala-collection-compat_2.13"

Upvotes: 2

Related Questions