Skip to content

Commit

Permalink
Setup mima.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdziuban committed Mar 21, 2024
1 parent 5136c3c commit d8cc5d3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CommonBuild.scala
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import com.typesafe.tools.mima.plugin.MimaKeys.mimaPreviousArtifacts
import sbt.*
import sbt.Keys.*
import sbtgitpublish.GitPublishKeys.*
Expand Down Expand Up @@ -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(
Expand All @@ -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")
Expand Down
4 changes: 4 additions & 0 deletions both.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,8 @@ function gitRelease() {
sbtSequential gitRelease
}

function mimaReport() {
sbtSequential mimaReportBinaryIssues
}

$operation
1 change: 1 addition & 0 deletions common-plugins.sbt
Original file line number Diff line number Diff line change
@@ -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")

Expand Down

0 comments on commit d8cc5d3

Please sign in to comment.