sbt / sbt-maven-resolver

An sbt plugin to resolve dependencies using Aether
12 stars 9 forks source link

Update org.scala-sbt:librarymanagement-core version #9

Open eloots opened 3 years ago

eloots commented 3 years ago

In a Scala 3.0.0 project, this plugin is used and it somehow interferes in sbt 1.5.x (tried with 1.5.2 and 1.5.3) with the automatic library remapping between 2.13 and 3.0.0 leading to the following error on loading the project in sbt:

/Users/ericloots/Lunatech/Projects/xxx/build.sbt:41: error: value for3Use2_13 is not a member of object sbt.librarymanagement.CrossVersion
  ).map(_.cross(CrossVersion.for3Use2_13)),
                             ^
sbt.compiler.EvalException: Type error in expression
[error] sbt.compiler.EvalException: Type error in expression

sbt-maven-resolver depends on version 1.3.2 of org.scala-sbt:librarymanagement-core and org.scala-sbt:librarymanagement-ivy.

Adding the following dependencies to my project seems to solve the issue although this is a hack:

libraryDependencies += "org.scala-sbt" %% "librarymanagement-core" % "1.5.2"
libraryDependencies += "org.scala-sbt" %% "librarymanagement-ivy" % "1.5.2"

Would a new release of the plugin with org.scala-sbt:librarymanagement-core/ivy bumped to 1.5.2 resolve this issue?