diff --git a/README.md b/README.md index a8b91e55..9d72f527 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ Only the most commonly used APIs are supported; many are missing. Contributions To use this library, add the following to your `build.sbt`: ``` -libraryDependencies += "org.scala-lang.modules" %% "scala-collection-compat" % "2.4.4" +libraryDependencies += "org.scala-lang.modules" %% "scala-collection-compat" % "2.5.0" ``` All future versions will remain backwards binary compatible with 2.0.0. (The 1.0.0 release was withdrawn and should not be used.) @@ -64,7 +64,7 @@ The `Collection213Upgrade` rewrite upgrades to the 2.13 collections without the ```scala // build.sbt -ThisBuild / scalafixDependencies += "org.scala-lang.modules" %% "scala-collection-migrations" % "2.4.4" +ThisBuild / scalafixDependencies += "org.scala-lang.modules" %% "scala-collection-migrations" % "2.5.0" addCompilerPlugin(scalafixSemanticdb) scalacOptions ++= List("-Yrangepos", "-P:semanticdb:synthetics:on") ``` @@ -82,8 +82,8 @@ To cross-build for 2.12 and 2.11, the rewrite rule introduces a dependency on th ```scala // build.sbt -ThisBuild / scalafixDependencies += "org.scala-lang.modules" %% "scala-collection-migrations" % "2.4.4" -libraryDependencies += "org.scala-lang.modules" %% "scala-collection-compat" % "2.4.4" +ThisBuild / scalafixDependencies += "org.scala-lang.modules" %% "scala-collection-migrations" % "2.5.0" +libraryDependencies += "org.scala-lang.modules" %% "scala-collection-compat" % "2.5.0" addCompilerPlugin(scalafixSemanticdb) scalacOptions ++= List("-Yrangepos", "-P:semanticdb:synthetics:on") ``` diff --git a/build.sbt b/build.sbt index 81f45888..3faefe97 100644 --- a/build.sbt +++ b/build.sbt @@ -81,17 +81,12 @@ lazy val compat = MultiScalaCrossProject(JSPlatform, JVMPlatform, NativePlatform .jvmSettings( Test / unmanagedSourceDirectories += (ThisBuild / baseDirectory).value / "compat/src/test/scala-jvm", junit, - scalaModuleMimaPreviousVersion := (CrossVersion.partialVersion(scalaVersion.value) match { - case Some((3, _)) => None - case _ => Some("2.4.0") - }), + scalaModuleMimaPreviousVersion := Some("2.5.0"), mimaBinaryIssueFilters ++= { import com.typesafe.tools.mima.core._ import com.typesafe.tools.mima.core.ProblemFilters._ Seq( exclude[ReversedMissingMethodProblem]("scala.collection.compat.PackageShared.*"), // it's package-private - exclude[MissingClassProblem]("scala.annotation.nowarn"), // it's part of scala-library from 2.12.13 onwards - exclude[MissingClassProblem]("scala.annotation.nowarn$") // it's part of scala-library from 2.12.13 onwards ) }, )