Skip to content

Commit 25fd981

Browse files
committed
Add MiMa
1 parent 9e6f016 commit 25fd981

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ jobs:
3131
run: sudo apt-get install libidn11-dev
3232
- name: Compile
3333
run: sbt -v compile
34+
- name: Check MiMa # disable for major releases
35+
run: sbt -v mimaReportBinaryIssues
3436
- name: Test
3537
run: sbt -v test
3638
- name: Cleanup

build.sbt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ val commonSettings = commonSmlBuildSettings ++ ossPublishSettings ++ Seq(
2525
organization := "com.softwaremill.sttp.shared",
2626
libraryDependencies ++= Seq(
2727
"org.scalatest" %% "scalatest" % scalaTestVersion % Test
28-
)
28+
),
29+
mimaPreviousArtifacts := previousStableVersion.value.map(organization.value %% moduleName.value % _).toSet,
30+
mimaReportBinaryIssues := { if ((publish / skip).value) {} else mimaReportBinaryIssues.value },
31+
versionScheme := Some("semver-spec")
2932
)
3033

3134
val commonJvmSettings = commonSettings ++ Seq(

project/plugins.sbt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ addSbtPlugin("com.softwaremill.sbt-softwaremill" % "sbt-softwaremill-publish" %
99
addSbtPlugin("com.softwaremill.sbt-softwaremill" % "sbt-softwaremill-browser-test-js" % sbtSoftwareMillVersion)
1010

1111
addSbtPlugin("org.jetbrains" % "sbt-ide-settings" % "1.1.0")
12+
addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "0.9.2")

0 commit comments

Comments
 (0)