From 155669c10fa65fabc1e91951291921ce86e2e6f3 Mon Sep 17 00:00:00 2001 From: Matthias Kurz Date: Thu, 14 Sep 2023 21:55:09 +0200 Subject: [PATCH] Adjust MiMa settings after 1.6.0 release --- build.sbt | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/build.sbt b/build.sbt index 4c5f6fb9..c6d4fc51 100644 --- a/build.sbt +++ b/build.sbt @@ -10,9 +10,6 @@ import com.typesafe.tools.mima.core.ProblemFilters import sbtcrossproject.CrossPlugin.autoImport.crossProject import org.scalajs.jsenv.nodejs.NodeJSEnv -// Binary compatibility is this version -val previousVersion: Option[String] = Some("1.5.1") - val ScalaTestVersion = "3.2.17" def parserCombinators(scalaVersion: String) = "org.scala-lang.modules" %% "scala-parser-combinators" % { @@ -23,19 +20,11 @@ def parserCombinators(scalaVersion: String) = "org.scala-lang.modules" %% "scala } val mimaSettings = Seq( - mimaPreviousArtifacts := { - CrossVersion.partialVersion(scalaVersion.value) match { - // No release for Scala 3 yet - case Some((3, _)) => Set.empty - case _ => previousVersion.map(organization.value %% name.value % _).toSet - } - }, + mimaPreviousArtifacts := Set( + organization.value %% name.value % previousStableVersion.value + .getOrElse(throw new Error("Unable to determine previous version")) + ), mimaBinaryIssueFilters ++= Seq( - ProblemFilters.exclude[Problem]("play.twirl.parser.*"), - ProblemFilters.exclude[MissingClassProblem]("play.twirl.compiler.*"), - ProblemFilters.exclude[IncompatibleMethTypeProblem]("play.twirl.compiler.*"), - ProblemFilters.exclude[MissingClassProblem]("play.twirl.api.TemplateMagic*"), - ProblemFilters.exclude[DirectMissingMethodProblem]("play.twirl.compiler.TwirlCompiler.DefaultImports"), ) )