File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 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+
13scalaModuleSettings
24
35name := " scala-xml"
@@ -25,6 +27,16 @@ libraryDependencies += ("org.scala-lang" % "scala-compiler" % scalaVersion.value
2527// alternatively, manage the scala instance as shown below (commented)
2628fork in Test := true
2729
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+
2840// ALTERNATIVE: manage the Scala instance ourselves to exclude the published scala-xml (scala-compiler depends on it)
2941// since this dependency hides the classes we're testing
3042// 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