Skip to content

sbt-scalafmt for sbt 2.x transitively pulls in scala-collection-compat_2.13 #433

@eed3si9n

Description

@eed3si9n

Steps

sbt 2.0.0-RC10

project/plugins.sbt

addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.6")
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.14.6")

Problem

$ sbt --server
[info] welcome to sbt 2.0.0-RC10 (Azul Systems, Inc. Java 17.0.12)
[info] loading project definition from /private/tmp/bbb/project
[error] Modules were resolved with conflicting cross-version suffixes in ProjectRef(uri("file:/private/tmp/bbb/project/"), "bbb-build"):
[error]    org.scala-lang.modules:scala-collection-compat _3, _2.13
[error] java.lang.RuntimeException: Conflicting cross-version suffixes in: org.scala-lang.modules:scala-collection-compat

Expectation

We can use these plugins together.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions