Skip to content

Commit

Permalink
vert-xgh-177 Add binary compatibility checker plugin and check with 1…
Browse files Browse the repository at this point in the history
….0.0
  • Loading branch information
galderz committed Sep 19, 2014
1 parent 2836fb5 commit 3749a3c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
17 changes: 16 additions & 1 deletion project/VertxScalaBuild.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import sbt._
import sbt.Keys._
import com.typesafe.tools.mima.plugin.MimaPlugin.mimaDefaultSettings
import com.typesafe.tools.mima.plugin.MimaKeys.previousArtifact
import com.typesafe.tools.mima.plugin.MimaKeys.binaryIssueFilters

object VertxScalaBuild extends Build {

Expand All @@ -12,10 +15,22 @@ object VertxScalaBuild extends Build {
description := "Vert.x module that provides Scala support"
)

lazy val mimaSettings = mimaDefaultSettings ++ Seq(
previousArtifact := Some("io.vertx" % "lang-scala" % "1.0.0"),
binaryIssueFilters ++= ignoredABIProblems
)

val ignoredABIProblems = {
import com.typesafe.tools.mima.core._
import com.typesafe.tools.mima.core.ProblemFilters._
Seq(exclude[MissingMethodProblem]("org.vertx.scala.lang.ScalaInterpreter.org$vertx$scala$lang$ScalaInterpreter$$addImports"),
exclude[InaccessibleMethodProblem]("org.vertx.scala.testtools.ScalaClassRunner.computeTestMethods"))
}

lazy val project = Project (
"project",
file ("."),
settings = baseSettings ++ Seq(
settings = baseSettings ++ mimaSettings ++ Seq(
copyModTask,
zipModTask,
libraryDependencies ++= Dependencies.compile,
Expand Down
1 change: 1 addition & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "0.1.6")

0 comments on commit 3749a3c

Please sign in to comment.