diff --git a/CommonBuild.scala b/CommonBuild.scala index ef6b4d1..c76f5b0 100644 --- a/CommonBuild.scala +++ b/CommonBuild.scala @@ -1,3 +1,4 @@ +import com.typesafe.tools.mima.plugin.MimaKeys.mimaPreviousArtifacts import sbt.* import sbt.Keys.* import sbtgitpublish.GitPublishKeys.* @@ -30,6 +31,7 @@ package object andxor { Compile / packageDoc / publishArtifact := false, packageDoc / publishArtifact := false, Compile / doc / sources := Seq(), + mimaPreviousArtifacts := Set(), ) ++ baseSettings0 final lazy val commonSettings = baseSettings ++ Seq( @@ -45,6 +47,8 @@ package object andxor { publish / skip := false, gitPublishDir := file("/src/maven-repo"), licenses += License.Apache2, + resolvers += "bondlink-maven-repo" at "https://raw.githubusercontent.com/mblink/maven-repo/main", + mimaPreviousArtifacts := Set("andxor" %% name.value % "0.14.0"), ) final lazy val testSettings = Seq(libraryDependencies += scalacheck % "test") diff --git a/both.sh b/both.sh index ebcd050..9de1d60 100755 --- a/both.sh +++ b/both.sh @@ -47,4 +47,8 @@ function gitRelease() { sbtSequential gitRelease } +function mimaReport() { + sbtSequential mimaReportBinaryIssues +} + $operation diff --git a/common-plugins.sbt b/common-plugins.sbt index 96ee75b..062e40b 100644 --- a/common-plugins.sbt +++ b/common-plugins.sbt @@ -1,3 +1,4 @@ +addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "1.1.3") addSbtPlugin("org.typelevel" % "sbt-tpolecat" % "0.5.0") addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.5.2")