Skip to content

Commit

Permalink
Adjust MiMa settings after 1.6.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
mkurz committed Sep 14, 2023
1 parent 2304bf7 commit 155669c
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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" % {
Expand All @@ -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"),
)
)

Expand Down

0 comments on commit 155669c

Please sign in to comment.