File tree 2 files changed +15
-1
lines changed
2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change
1
+ import com .typesafe .tools .mima .plugin .{MimaPlugin , MimaKeys }
2
+
1
3
scalaModuleSettings
2
4
3
5
name := " scala-xml"
@@ -25,6 +27,16 @@ libraryDependencies += ("org.scala-lang" % "scala-compiler" % scalaVersion.value
25
27
// alternatively, manage the scala instance as shown below (commented)
26
28
fork in Test := true
27
29
30
+ MimaPlugin .mimaDefaultSettings
31
+
32
+ MimaKeys .previousArtifact := Some (organization.value % s " ${name.value}_2.11.0-RC1 " % " 1.0.0" )
33
+
34
+ // run mima during tests
35
+ test in Test := {
36
+ MimaKeys .reportBinaryIssues.value
37
+ (test in Test ).value
38
+ }
39
+
28
40
// ALTERNATIVE: manage the Scala instance ourselves to exclude the published scala-xml (scala-compiler depends on it)
29
41
// since this dependency hides the classes we're testing
30
42
// managedScalaInstance := false
Original file line number Diff line number Diff line change 1
- addSbtPlugin(" org.scala-lang.modules" % " scala-module-plugin" % " 1.0.1" )
1
+ addSbtPlugin(" org.scala-lang.modules" % " scala-module-plugin" % " 1.0.2" )
2
+
3
+ addSbtPlugin(" com.typesafe" % " sbt-mima-plugin" % " 0.1.6" )
You can’t perform that action at this time.
0 commit comments