Skip to content

Commit f3310b3

Browse files
authored
Merge pull request #164 from SethTisue/declare-version-scheme
use sbt-version-policy and declare versionScheme
2 parents 740fa58 + d94ccea commit f3310b3

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ To depend on scala-parallel-collections in sbt, add this to your `build.sbt`:
2424

2525
```scala
2626
libraryDependencies +=
27-
"org.scala-lang.modules" %% "scala-parallel-collections" % "1.0.0"
27+
"org.scala-lang.modules" %% "scala-parallel-collections" % "1.0.1"
2828
```
2929

3030
In your code, adding this import:
@@ -46,7 +46,7 @@ libraryDependencies ++= {
4646
case Some((2, major)) if major <= 12 =>
4747
Seq()
4848
case _ =>
49-
Seq("org.scala-lang.modules" %% "scala-parallel-collections" % "1.0.0")
49+
Seq("org.scala-lang.modules" %% "scala-parallel-collections" % "1.0.1")
5050
}
5151
}
5252
```

build.sbt

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
Global / cancelable := true
22
publish / skip := true // in root
33

4+
ThisBuild / versionScheme := Some("early-semver")
5+
ThisBuild / versionPolicyIntention := Compatibility.BinaryAndSourceCompatible
6+
47
lazy val commonSettings: Seq[Setting[_]] =
58
ScalaModulePlugin.scalaModuleSettings ++ Seq(
69
Compile / compile / scalacOptions --= (if (isDotty.value) Seq("-Xlint")

build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ export CI_SNAPSHOT_RELEASE="${projectPrefix}publish"
4747
# for now, until we're confident in the new release scripts, just close the staging repo.
4848
export CI_SONATYPE_RELEASE="; sonatypePrepare; sonatypeBundleUpload; sonatypeClose"
4949

50-
sbt clean ${projectPrefix}test core/headerCheck ${projectPrefix}publishLocal $releaseTask
50+
sbt clean ${projectPrefix}test core/versionPolicyCheck core/headerCheck ${projectPrefix}publishLocal $releaseTask

project/plugins.sbt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
addSbtPlugin("org.scala-lang.modules" % "sbt-scala-module" % "2.2.4")
2+
addSbtPlugin("ch.epfl.scala" % "sbt-version-policy" % "1.0.0-RC5")
23
addSbtPlugin("ch.epfl.lamp" % "sbt-dotty" % "0.5.3")
3-

0 commit comments

Comments
 (0)