From 9f79993bd89e11274803adb69ab7f9f0fa9b0e3f Mon Sep 17 00:00:00 2001 From: Matthias Kurz Date: Thu, 2 Nov 2023 00:30:10 +0100 Subject: [PATCH] Set mimaPreviousArtifacts.value to last "major" release Do not skip patch releases --- build.sbt | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/build.sbt b/build.sbt index 0d6b3c9..1ed202b 100644 --- a/build.sbt +++ b/build.sbt @@ -18,13 +18,10 @@ Global / onLoad := (Global / onLoad).value.andThen { s => s } +val previousVersion: Option[String] = Some("8.0.0-M1") + 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( ) )