Skip to content

Commit 276095b

Browse files
committed
Merge pull request #105 from 2m/wip-fw-errors-when-bc-checking
Added abstract method test
2 parents 4f1cd43 + 87d8cac commit 276095b

File tree

5 files changed

+26
-0
lines changed

5 files changed

+26
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import com.typesafe.tools.mima.core._
2+
3+
mimaPreviousArtifacts := Set("0.0.1-SNAPSHOT") map { v => organization.value %% name.value % v }
4+
5+
val issueFilters = SettingKey[Map[String, Seq[ProblemFilter]]]("")
6+
issueFilters := Map(
7+
"0.0.1-SNAPSHOT" -> Seq(ProblemFilters.exclude[MissingMethodProblem]("A.bar"))
8+
)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % System.getProperty("plugin.version"))
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
abstract class A {
2+
def foo: Int
3+
def bar: Int
4+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
abstract class A {
2+
def foo: Int
3+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
> set scalaSource in Compile := baseDirectory.value /"src" /"v1"
2+
> set version := s"0.0.1-SNAPSHOT"
3+
> publishLocal
4+
5+
> set scalaSource in Compile := baseDirectory.value /"src" /"main"
6+
> set version := s"0.0.2-SNAPSHOT"
7+
8+
-> mimaReportBinaryIssues
9+
> set mimaBackwardIssueFilters := issueFilters.value
10+
> mimaReportBinaryIssues

0 commit comments

Comments
 (0)