Skip to content

Commit

Permalink
Added abstract method test.
Browse files Browse the repository at this point in the history
  • Loading branch information
2m committed Feb 29, 2016
1 parent 4f1cd43 commit 87d8cac
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 87d8cac

Please sign in to comment.