Created
June 5, 2012 22:15
-
-
Save havocp/2878474 to your computer and use it in GitHub Desktop.
example of filtering mima issues
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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