From 9ae601480dd3b399190b2cb36bd7e63842a173b5 Mon Sep 17 00:00:00 2001 From: Matthias Kurz Date: Thu, 2 Nov 2023 13:34:51 +0100 Subject: [PATCH] Set `mimaPreviousArtifacts` to last "major" release --- build.sbt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/build.sbt b/build.sbt index 15b028bb..c0b94116 100644 --- a/build.sbt +++ b/build.sbt @@ -16,11 +16,10 @@ def parserCombinators(scalaVersion: String) = "org.scala-lang.modules" %% "scala } } +val previousVersion: Option[String] = Some("2.0.1") + 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( ) )