From bed8ac971fec084936f1c41bfd4df8c741569920 Mon Sep 17 00:00:00 2001 From: Seth Tisue Date: Tue, 17 Nov 2020 20:25:31 -0800 Subject: [PATCH] post 1.0.0 release stuff * readme tweaks * bump MiMa reference version --- README.md | 12 ++++++------ build.sbt | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index ceb446dd..06c8a7dc 100644 --- a/README.md +++ b/README.md @@ -2,9 +2,9 @@ This Scala standard module contains the package `scala.collection.parallel`, with all of the parallel collections that -used to be part of the Scala standard library. +used to be part of the Scala standard library (in Scala 2.10 through 2.12). -For Scala 2.13, this module is a separate JAR that can be +For Scala 2.13 and Scala 3, this module is a separate JAR that can be omitted from projects that do not use parallel collections. ## Maintenance status @@ -19,7 +19,7 @@ To depend on scala-parallel-collections in sbt, add this to your `build.sbt`: ```scala libraryDependencies += - "org.scala-lang.modules" %% "scala-parallel-collections" % "1.0.0-RC1" + "org.scala-lang.modules" %% "scala-parallel-collections" % "1.0.0" ``` In your code, adding this import: @@ -36,7 +36,7 @@ Here is the [full Scaladoc](https://static.javadoc.io/org.scala-lang.modules/sca ### Cross-building: dependency -This module is published only for the Scala 2.13.x series, so in a +This module is published only for the Scala 2.13 and 3.0 series, so in a cross-built project, the dependency should take this form: ```scala @@ -45,7 +45,7 @@ libraryDependencies ++= { case Some((2, major)) if major <= 12 => Seq() case _ => - Seq("org.scala-lang.modules" %% "scala-parallel-collections" % "1.0.0-RC1") + Seq("org.scala-lang.modules" %% "scala-parallel-collections" % "1.0.0") } } ``` @@ -57,7 +57,7 @@ community build, etc). ### Cross-building: source compatibility Using `.par` is problematic in a cross-built project, since in Scala -2.13 the `CollectionConverters._` import shown above is necessary, but +2.13+ the `CollectionConverters._` import shown above is necessary, but in earlier Scala versions, that import will not compile. You may able to avoid the problem by directly constructing your diff --git a/build.sbt b/build.sbt index f572d413..22460d41 100644 --- a/build.sbt +++ b/build.sbt @@ -16,7 +16,7 @@ lazy val core = project.in(file("core")) // don't run Dottydoc, it errors and isn't needed anyway. // but we leave `publishArtifact` set to true, otherwise Sonatype won't let us publish Compile / doc / sources := (if (isDotty.value) Seq() else (Compile / doc/ sources).value), - scalaModuleMimaPreviousVersion := Some("1.0.0-RC1").filterNot(_ => isDotty.value), + scalaModuleMimaPreviousVersion := Some("1.0.0").filterNot(_ => isDotty.value), ) lazy val junit = project.in(file("junit"))