Skip to content

Commit

Permalink
Merge pull request #822 from mkurz/adjust_mima_main_minor
Browse files Browse the repository at this point in the history
[2.2.x] Set `mimaPreviousArtifacts` to last "major" release
  • Loading branch information
mkurz committed Nov 2, 2023
2 parents 4167e24 + 91b8e4d commit 52cc4ae
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 @@ -49,11 +49,10 @@ val scalacOpts = Def.setting[Seq[String]] {
}
}

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

lazy 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 52cc4ae

Please sign in to comment.