scalacenter / scala3-migrate

A tool to help migrating from Scala 2 to Scala 3
https://docs.scala-lang.org/scala3/guides/migration/scala3-migrate.html
Apache License 2.0
110 stars 24 forks source link

Version 0.7.1 requires semanticdb-scalac 4.7.8, which doesn't exist for Scala 2.13.14+ #506

Open gaelrenoux opened 1 month ago

gaelrenoux commented 1 month ago

Version 0.7.1 of the scala3-migrate-plugin requires version 4.7.8 of semanticdb-scalac, which doesn't exist for Scala 2.13.14+. Error message: (update) sbt.librarymanagement.ResolveException: Error downloading org.scalameta:semanticdb-scalac_2.13.15:4.7.8

Strangely enough, version 0.7.0 of sbt-scala3-migrate required version 4.9.9 of semanticdb-scalac, which is significantly more recent and works fine.

My test case build.sbt

organization := "gael.renoux"
name := "gaston"
version := "1.0.0"
scalaVersion := "2.13.15"
scalacOptions ++= Seq("-Xsource:3")

project/plugins.sbt

addSbtPlugin("ch.epfl.scala" % "sbt-scala3-migrate" % "0.7.1")

project/build.properties

sbt.version=1.10.2
adpi2 commented 1 month ago

Thanks for the report. I'll do a release soon to fix this.

In the meantime, I think you can work around this with semanticdbVersion := "4.9.9"