Skip to content

Commit 2edce8b

Browse files
authored
Merge pull request #947 from mkurz/adjust_mima_main_minor
[2.10.x] Set `mimaPreviousArtifacts` to last "major" release
2 parents 8eb784b + 3d419d9 commit 2edce8b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

build.sbt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,11 @@ val joda = Seq(
4040

4141
// Common settings
4242

43+
val previousVersion: Option[String] = Some("2.10.0")
44+
4345
// Do not check for previous JS artifacts for upgrade to Scala.js 1.0 because no sjs1 artifacts exist
4446
def playJsonMimaSettings = Seq(
45-
mimaPreviousArtifacts := Set(
46-
organization.value %%% name.value % previousStableVersion.value
47-
.getOrElse(throw new Error("Unable to determine previous version"))
48-
),
47+
mimaPreviousArtifacts := previousVersion.map(organization.value %%% moduleName.value % _).toSet,
4948
mimaBinaryIssueFilters ++= Seq(
5049
),
5150
)

0 commit comments

Comments
 (0)