public
Created

example of filtering mima issues

  • Download Gist
example-akka-filtering.patch
Diff
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
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] = {

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.