Skip to content

Commit

Permalink
Set MIMA plugin for the project
Browse files Browse the repository at this point in the history
  • Loading branch information
pomadchin committed Sep 4, 2021
1 parent 3ffafad commit f43127c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ jobs:
- name: Check that workflows are up to date
run: sbt ++${{ matrix.scala }} githubWorkflowCheck

- name: Binary compatibility check
run: sbt ++${{ matrix.scala }} mimaReportBinaryIssues

- name: Setup Python
uses: actions/setup-python@v2
with:
Expand Down
14 changes: 12 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ val irrecVersion = "0.4.0"

val Scala212 = "2.12.14"

val previousVersion = "0.10.1"

ThisBuild / versionScheme := Some("semver-spec")

ThisBuild / crossScalaVersions := Seq(Scala212)
Expand All @@ -19,6 +21,7 @@ lazy val root = Project("frameless", file("." + "frameless")).in(file("."))
.aggregate(core, cats, dataset, ml, docs)
.settings(framelessSettings: _*)
.settings(noPublishSettings: _*)
.settings(mimaPreviousArtifacts := Set(), mimaFailOnNoPrevious := false)

lazy val core = project
.settings(name := "frameless-core")
Expand Down Expand Up @@ -88,6 +91,7 @@ lazy val docs = project
"-Ydelambdafy:inline"
)
)
.settings(mimaPreviousArtifacts := Set(), mimaFailOnNoPrevious := false)
.dependsOn(dataset, cats, ml)

lazy val framelessSettings = Seq(
Expand Down Expand Up @@ -120,7 +124,8 @@ lazy val framelessSettings = Seq(
"org.scalacheck" %% "scalacheck" % scalacheck % "test"),
Test / javaOptions ++= Seq("-Xmx1G", "-ea"),
Test / fork := true,
Test / parallelExecution := false
Test / parallelExecution := false,
mimaPreviousArtifacts := Set("org.typelevel" %% name.value % previousVersion)
) ++ consoleSettings

lazy val consoleSettings = Seq(
Expand Down Expand Up @@ -213,7 +218,12 @@ copyReadme := copyReadmeImpl.value

ThisBuild / githubWorkflowArtifactUpload := false

ThisBuild / githubWorkflowBuild := Seq(
ThisBuild / githubWorkflowBuild := Seq(WorkflowStep.Sbt(
List("mimaReportBinaryIssues"),
name = Some("Binary compatibility check")
))

ThisBuild / githubWorkflowBuild ++= Seq(
WorkflowStep.Use(UseRef.Public("actions", "setup-python", "v2"),
name = Some("Setup Python"),
params = Map("python-version" -> "3.x")
Expand Down
1 change: 1 addition & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.5.7")
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.8.2")
addSbtPlugin("com.codecommit" % "sbt-github-actions" % "0.13.0")
addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.2.23")
addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "1.0.0")

0 comments on commit f43127c

Please sign in to comment.