From 2f3f9aa851080b6c79f3af14b3fdfeab56feffec Mon Sep 17 00:00:00 2001 From: Jakob Odersky Date: Mon, 26 Mar 2018 18:38:41 -0700 Subject: Add MiMa plugin --- .ci/build | 2 +- CHANGELOG.md | 8 ++++++++ build.sbt | 2 ++ project/plugins.sbt | 1 + 4 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.ci/build b/.ci/build index 1431ec5..11f8e4e 100755 --- a/.ci/build +++ b/.ci/build @@ -1,7 +1,7 @@ #!/bin/bash set -ev -sbt scalafmtTest +test +sbt scalafmtTest +mimaReportBinaryIssues +test # Automatic publishing for tags that start with `v` if [[ "$TRAVIS_PULL_REQUEST" == "false" && "$TRAVIS_TAG" =~ ^v[0-9].* ]]; then diff --git a/CHANGELOG.md b/CHANGELOG.md index ad63117..5db553d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +Version 0.4.1 +------------- +Add MiMa plugin to check binary backwards compatibility. + +Version 0.4.0 +------------- +Same as version 0.3.1; the package rename should have warranted a major version bump. + Version 0.3.1 ------------- - Rename packages to "spray.json" for seamless integration with spray-json. diff --git a/build.sbt b/build.sbt index 370c4fa..23c577f 100644 --- a/build.sbt +++ b/build.sbt @@ -20,3 +20,5 @@ libraryDependencies ++= Seq( "com.propensive" %% "magnolia" % "0.7.1", "org.scalatest" %% "scalatest" % "3.0.2" % "test" ) + +mimaPreviousArtifacts := Set("xyz.driver" %% "spray-json-derivation" % "0.3.1") diff --git a/project/plugins.sbt b/project/plugins.sbt index a1e2f8a..17dccdc 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1,3 +1,4 @@ ivyLoggingLevel := UpdateLogging.Quiet addSbtPlugin("com.geirsson" % "sbt-scalafmt" % "1.2.0") +addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "0.1.18") -- cgit v1.2.3