1+ import com .typesafe .tools .mima .plugin .{MimaPlugin , MimaKeys }
12import Keys .{`package` => packageTask }
23import com .typesafe .sbt .osgi .{OsgiKeys , SbtOsgi }
34
@@ -6,9 +7,9 @@ import com.typesafe.sbt.osgi.{OsgiKeys, SbtOsgi}
67lazy val commonSettings = scalaModuleSettings ++ Seq (
78 repoName := " scala-continuations" ,
89 organization := " org.scala-lang.plugins" ,
9- version := " 1.0.0 -SNAPSHOT" ,
10- scalaVersion := " 2.11.0-M8 " ,
11- snapshotScalaBinaryVersion := " 2.11.0-M8 "
10+ version := " 1.0.1 -SNAPSHOT" ,
11+ scalaVersion := " 2.11.0-RC1 " ,
12+ snapshotScalaBinaryVersion := " 2.11.0-RC1 "
1213)
1314
1415lazy val root = project.in( file(" ." ) ).settings( publishArtifact := false ).aggregate(plugin, library).settings(commonSettings : _* )
@@ -23,8 +24,9 @@ lazy val plugin = project settings (scalaModuleOsgiSettings: _*) settings (
2324val pluginJar = packageTask in (plugin, Compile )
2425
2526// TODO: the library project's test are really plugin tests, but we first need that jar
26- lazy val library = project settings (scalaModuleOsgiSettings : _* ) settings (
27- name := " scala-continuations-library" ,
27+ lazy val library = project settings (scalaModuleOsgiSettings : _* ) settings (MimaPlugin .mimaDefaultSettings: _* ) settings (
28+ name := " scala-continuations-library" ,
29+ MimaKeys .previousArtifact := Some (organization.value % s " ${name.value}_2.11.0-RC1 " % " 1.0.0" ),
2830 scalacOptions ++= Seq (
2931 // add the plugin to the compiler
3032 s " -Xplugin: ${pluginJar.value.getAbsolutePath}" ,
@@ -41,5 +43,10 @@ lazy val library = project settings (scalaModuleOsgiSettings: _*) settings (
4143 TestFrameworks .JUnit ,
4244 s " -Dscala-continuations-plugin.jar= ${pluginJar.value.getAbsolutePath}"
4345 ),
46+ // run mima during tests
47+ test in Test := {
48+ MimaKeys .reportBinaryIssues.value
49+ (test in Test ).value
50+ },
4451 OsgiKeys .exportPackage := Seq (s " scala.util.continuations;version= ${version.value}" )
4552) settings (commonSettings : _* )
0 commit comments