Skip to content

@havocp /example-akka-filtering.patch
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
example of filtering mima issues
diff --git a/project/AkkaBuild.scala b/project/AkkaBuild.scala
index 23d51fe..a47aa8e 100644
--- a/project/AkkaBuild.scala
+++ b/project/AkkaBuild.scala
@@ -13,6 +13,7 @@ import com.typesafe.sbtscalariform.ScalariformPlugin.ScalariformKeys
import com.typesafe.sbtosgi.OsgiPlugin.{ OsgiKeys, osgiSettings }
import com.typesafe.tools.mima.plugin.MimaPlugin.mimaDefaultSettings
import com.typesafe.tools.mima.plugin.MimaKeys.previousArtifact
+import com.typesafe.tools.mima.plugin.MimaKeys.binaryIssueFilters
import java.lang.Boolean.getBoolean
import sbt.Tests
import Sphinx.{ sphinxDocs, sphinxHtml, sphinxLatex, sphinxPdf, sphinxPygments, sphinxTags }
@@ -417,9 +418,17 @@ object AkkaBuild extends Build {
}
)
+ val ignoredABIProblems = {
+ import com.typesafe.tools.mima.core._
+ import com.typesafe.tools.mima.core.ProblemFilters._
+ Seq(exclude[MissingClassProblem]("akka.dispatch.SharingMailbox"),
+ exclude[IncompatibleMethTypeProblem]("akka.dispatch.DefaultPromise.<<"))
+ }
+
lazy val mimaSettings = mimaDefaultSettings ++ Seq(
// MiMa
- previousArtifact := None
+ previousArtifact := None,
+ binaryIssueFilters ++= ignoredABIProblems
)
def akkaPreviousArtifact(id: String, organization: String = "com.typesafe.akka", version: String = "2.0"): Option[sbt.ModuleID] = {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.