From 8820aeb438609b89a1922bbbdce399e72d1168e0 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 e1434eb9..541b6ab1 100644 --- a/build.sbt +++ b/build.sbt @@ -19,11 +19,10 @@ def parserCombinators(scalaVersion: String) = "org.scala-lang.modules" %% "scala } } +val previousVersion: Option[String] = Some("1.6.0") + 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( ) )