Skip to content

Commit

Permalink
Set mimaPreviousArtifacts to last "major" release
Browse files Browse the repository at this point in the history
  • Loading branch information
mkurz committed Nov 2, 2023
1 parent 026b8ed commit 9ae6014
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@ def parserCombinators(scalaVersion: String) = "org.scala-lang.modules" %% "scala
}
}

val previousVersion: Option[String] = Some("2.0.1")

val mimaSettings = Seq(
mimaPreviousArtifacts := Set(
organization.value %% name.value % previousStableVersion.value
.getOrElse(throw new Error("Unable to determine previous version"))
),
mimaPreviousArtifacts := previousVersion.map(organization.value %% moduleName.value % _).toSet,
mimaBinaryIssueFilters ++= Seq(
)
)
Expand Down

0 comments on commit 9ae6014

Please sign in to comment.