Skip to content

Commit 1caf77a

Browse files
authored
Merge pull request #364 from Philippus/add-version-scheme
2 parents 6e2264f + d59923b commit 1caf77a

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

build.sbt

+7-1
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,20 @@ 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 := (CrossVersion.partialVersion(scalaVersion.value) match {
15+
// pending resolution of https://github.com/scalacenter/sbt-version-policy/issues/62
16+
case Some((3, _)) => None
17+
case _ => Some("1.2.0-M2")
18+
}),
1319

1420
libraryDependencies += "junit" % "junit" % "4.13.2" % Test,
1521
libraryDependencies += "com.novocode" % "junit-interface" % "0.11" % Test,

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

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)