Skip to content

Commit 82be2fa

Browse files
committed
declare versionScheme and enable MiMa
fixes #210
1 parent 92c24cf commit 82be2fa

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
@@ -18,6 +18,9 @@ def osgiExport(scalaVersion: String, version: String) = {
1818
}) ++ Seq(s"scala.compat.java8.*;version=${version}")
1919
}
2020

21+
ThisBuild / versionScheme := Some("early-semver")
22+
ThisBuild / versionPolicyIntention := Compatibility.BinaryAndSourceCompatible
23+
2124
lazy val commonSettings = Seq(
2225
scalacOptions ++= Seq("-feature", "-deprecation", "-unchecked"),
2326

@@ -70,7 +73,10 @@ lazy val scalaJava8Compat = (project in file("."))
7073

7174
libraryDependencies += "com.novocode" % "junit-interface" % "0.11" % "test",
7275

73-
scalaModuleMimaPreviousVersion := None,
76+
// we're still in 0.x land so we could choose to break bincompat,
77+
// but let's at least be aware when we're doing it. also we should
78+
// think about going 1.0, it's been a while
79+
scalaModuleMimaPreviousVersion := Some("0.9.1"),
7480

7581
testOptions += Tests.Argument(TestFrameworks.JUnit, "-v", "-a"),
7682

build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,4 @@ export CI_SNAPSHOT_RELEASE="publish"
6262
# for now, until we're confident in the new release scripts, just close the staging repo.
6363
export CI_SONATYPE_RELEASE="; sonatypePrepare; sonatypeBundleUpload; sonatypeClose"
6464
65-
sbt "$setTagScalaVersion" clean test publishLocal $releaseTask
65+
sbt "$setTagScalaVersion" clean test versionPolicyCheck publishLocal $releaseTask

project/plugins.sbt

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

0 commit comments

Comments
 (0)