From 07febcceb620ff1eafd2988c7e5249b8c32c70dc Mon Sep 17 00:00:00 2001 From: Arman Bilge Date: Wed, 18 Jan 2023 08:55:43 +0000 Subject: [PATCH] Hush mima on scala 3 --- build.sbt | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/build.sbt b/build.sbt index ae9255c1..72ee94cb 100644 --- a/build.sbt +++ b/build.sbt @@ -120,7 +120,20 @@ lazy val dom = project "co.fs2" %%% "fs2-core" % fs2Version, "org.http4s" %%% "http4s-client" % http4sVersion, "org.scala-js" %%% "scalajs-dom" % scalaJSDomVersion - ) + ), + mimaBinaryIssueFilters ++= { + import com.typesafe.tools.mima.core._ + if (tlIsScala3.value) + Seq( + ProblemFilters.exclude[DirectMissingMethodProblem]( + "org.http4s.dom.package.closeReadableStream"), + ProblemFilters.exclude[DirectMissingMethodProblem]( + "org.http4s.dom.package.fromReadableStream"), + ProblemFilters.exclude[DirectMissingMethodProblem]( + "org.http4s.dom.package.toDomHeaders") + ) + else Seq() + } ) .enablePlugins(ScalaJSPlugin)