Skip to content

Commit

Permalink
Merge pull request #105 from 2m/wip-fw-errors-when-bc-checking
Browse files Browse the repository at this point in the history
Added abstract method test
  • Loading branch information
2m committed Mar 1, 2016
2 parents 4f1cd43 + 87d8cac commit 276095b
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import com.typesafe.tools.mima.core._

mimaPreviousArtifacts := Set("0.0.1-SNAPSHOT") map { v => organization.value %% name.value % v }

val issueFilters = SettingKey[Map[String, Seq[ProblemFilter]]]("")
issueFilters := Map(
"0.0.1-SNAPSHOT" -> Seq(ProblemFilters.exclude[MissingMethodProblem]("A.bar"))
)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % System.getProperty("plugin.version"))
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
abstract class A {
def foo: Int
def bar: Int
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
abstract class A {
def foo: Int
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
> set scalaSource in Compile := baseDirectory.value /"src" /"v1"
> set version := s"0.0.1-SNAPSHOT"
> publishLocal

> set scalaSource in Compile := baseDirectory.value /"src" /"main"
> set version := s"0.0.2-SNAPSHOT"

-> mimaReportBinaryIssues
> set mimaBackwardIssueFilters := issueFilters.value
> mimaReportBinaryIssues

0 comments on commit 276095b

Please sign in to comment.