Skip to content

Commit

Permalink
Merge pull request #302 from mkurz/adjust_mima_main_minor
Browse files Browse the repository at this point in the history
Set `mimaPreviousArtifacts` to last "major" release
  • Loading branch information
mkurz committed Nov 2, 2023
2 parents 56fa0d2 + ae61773 commit 5500ee9
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ lazy val commonSettings = Seq(
),
)

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

lazy val `play-mailer` = (project in file("play-mailer"))
.enablePlugins(Common)
.settings(commonSettings)
Expand All @@ -47,8 +49,7 @@ lazy val `play-mailer` = (project in file("play-mailer"))
"org.playframework" %% "play" % Dependencies.PlayVersion % Test,
"org.playframework" %% "play-specs2" % Dependencies.PlayVersion % Test
),
mimaPreviousArtifacts := Set("org.playframework" %% "play-mailer" % previousStableVersion.value
.getOrElse(throw new Error("Unable to determine previous version"))),
mimaPreviousArtifacts := previousVersion.map(organization.value %% moduleName.value % _).toSet,
)

lazy val `play-mailer-guice` = (project in file("play-mailer-guice"))
Expand All @@ -61,9 +62,7 @@ lazy val `play-mailer-guice` = (project in file("play-mailer-guice"))
"org.playframework" %% "play" % Dependencies.PlayVersion % Test,
"org.playframework" %% "play-specs2" % Dependencies.PlayVersion % Test
),
mimaPreviousArtifacts := Set("org.playframework" %% "play-mailer-guice" % previousStableVersion.value
.getOrElse(throw new Error("Unable to determine previous version")))
,
mimaPreviousArtifacts := previousVersion.map(organization.value %% moduleName.value % _).toSet,
)

lazy val `play-mailer-root` = (project in file("."))
Expand Down

0 comments on commit 5500ee9

Please sign in to comment.