Skip to content

use sbt-version-policy and declare versionScheme #164

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,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"
"org.scala-lang.modules" %% "scala-parallel-collections" % "1.0.1"
```

In your code, adding this import:
Expand All @@ -46,7 +46,7 @@ libraryDependencies ++= {
case Some((2, major)) if major <= 12 =>
Seq()
case _ =>
Seq("org.scala-lang.modules" %% "scala-parallel-collections" % "1.0.0")
Seq("org.scala-lang.modules" %% "scala-parallel-collections" % "1.0.1")
}
}
```
Expand Down
3 changes: 3 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
Global / cancelable := true
publish / skip := true // in root

ThisBuild / versionScheme := Some("early-semver")
ThisBuild / versionPolicyIntention := Compatibility.BinaryAndSourceCompatible

lazy val commonSettings: Seq[Setting[_]] =
ScalaModulePlugin.scalaModuleSettings ++ Seq(
Compile / compile / scalacOptions --= (if (isDotty.value) Seq("-Xlint")
Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ export CI_SNAPSHOT_RELEASE="${projectPrefix}publish"
# for now, until we're confident in the new release scripts, just close the staging repo.
export CI_SONATYPE_RELEASE="; sonatypePrepare; sonatypeBundleUpload; sonatypeClose"

sbt clean ${projectPrefix}test core/headerCheck ${projectPrefix}publishLocal $releaseTask
sbt clean ${projectPrefix}test core/versionPolicyCheck core/headerCheck ${projectPrefix}publishLocal $releaseTask
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
addSbtPlugin("org.scala-lang.modules" % "sbt-scala-module" % "2.2.4")
addSbtPlugin("ch.epfl.scala" % "sbt-version-policy" % "1.0.0-RC5")
addSbtPlugin("ch.epfl.lamp" % "sbt-dotty" % "0.5.3")