Skip to content

Commit

Permalink
MiMa filter
Browse files Browse the repository at this point in the history
  • Loading branch information
mkurz committed Apr 6, 2023
1 parent d2775bd commit 2890371
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import scala.sys.process._

import com.typesafe.tools.mima.plugin.MimaPlugin._
import com.typesafe.tools.mima.core._
import com.typesafe.tools.mima.core.ProblemFilters
import interplay.ScalaVersions._

ThisBuild / resolvers ++= Resolver.sonatypeOssRepos("releases")
Expand Down Expand Up @@ -42,6 +41,9 @@ lazy val `play-slick` = (project in file("src/core"))
.configs(Docs)
.settings(libraryDependencies ++= Dependencies.core)
.settings(mimaSettings)
.settings(mimaBinaryIssueFilters ++= Seq(
ProblemFilters.exclude[DirectMissingMethodProblem]("play.api.db.slick.HasDatabaseConfig.db")
))
.settings(commonSettings)

lazy val `play-slick-evolutions` = (project in file("src/evolutions"))
Expand All @@ -68,5 +70,9 @@ val previousVersion: Option[String] = Some("5.0.2")
ThisBuild / mimaFailOnNoPrevious := false

def mimaSettings = Seq(
mimaPreviousArtifacts := previousVersion.map(organization.value %% moduleName.value % _).toSet
mimaPreviousArtifacts := {
if (scalaBinaryVersion.value == "3") Set.empty[ModuleID]
else
previousVersion.map(organization.value %% moduleName.value % _).toSet
}
)

0 comments on commit 2890371

Please sign in to comment.