Skip to content

Commit 88ba8f2

Browse files
committed
Declare versionScheme and add sbt-version-policy
1 parent 6e2264f commit 88ba8f2

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

Diff for: build.sbt

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@ lazy val root = project.in(file("."))
22
.aggregate(parserCombinatorsJVM, parserCombinatorsJS, parserCombinatorsNative)
33
.settings(
44
publish / skip := true,
5+
ThisBuild / versionScheme := Some("early-semver"),
6+
ThisBuild / versionPolicyIntention := Compatibility.BinaryAndSourceCompatible
57
)
68

79
lazy val parserCombinators = crossProject(JVMPlatform, JSPlatform, NativePlatform)
810
.in(file("."))
911
.settings(
1012
ScalaModulePlugin.scalaModuleSettings,
1113
name := "scala-parser-combinators",
12-
scalaModuleMimaPreviousVersion := None, // until we publish 1.2.0
14+
scalaModuleMimaPreviousVersion := Some("1.2.0-M2"),
1315

1416
libraryDependencies += "junit" % "junit" % "4.13.2" % Test,
1517
libraryDependencies += "com.novocode" % "junit-interface" % "0.11" % Test,

Diff for: build.sh

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

56-
sbt clean ${projectPrefix}test ${projectPrefix}publishLocal $releaseTask
56+
sbt clean ${projectPrefix}test ${projectPrefix}versionPolicyCheck ${projectPrefix}publishLocal $releaseTask

Diff for: project/plugins.sbt

+1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ addSbtPlugin("org.scala-js" % "sbt-scalajs" % scalaJSVersion)
1212
addSbtPlugin("org.portable-scala" % "sbt-scala-native-crossproject" % "1.0.0")
1313
addSbtPlugin("org.scala-native" % "sbt-scala-native" % scalaNativeVersion)
1414

15+
addSbtPlugin("ch.epfl.scala" % "sbt-version-policy" % "1.0.0-RC5")
1516
addSbtPlugin("ch.epfl.lamp" % "sbt-dotty" % "0.5.3")

0 commit comments

Comments
 (0)