From 3d419d9760c7a7e8abeaf4c6b07ee527ff9005de Mon Sep 17 00:00:00 2001 From: Matthias Kurz Date: Thu, 2 Nov 2023 09:41:02 +0100 Subject: [PATCH] Set mimaPreviousArtifacts.value to last "major" release --- build.sbt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/build.sbt b/build.sbt index f0a62f5b..3f729966 100644 --- a/build.sbt +++ b/build.sbt @@ -40,12 +40,11 @@ val joda = Seq( // Common settings +val previousVersion: Option[String] = Some("2.10.0") + // Do not check for previous JS artifacts for upgrade to Scala.js 1.0 because no sjs1 artifacts exist def playJsonMimaSettings = 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( ), )