1- import Settings ._
21import Keys .{`package` => packageTask }
32import com .typesafe .sbt .osgi .{OsgiKeys , SbtOsgi }
43
@@ -8,13 +7,13 @@ lazy val commonSettings = scalaModuleSettings ++ Seq(
87 repoName := " scala-continuations" ,
98 organization := " org.scala-lang.plugins" ,
109 version := " 1.0.0-SNAPSHOT" ,
11- scalaVersion := " 2.11.0-M7 " ,
12- snapshotScalaBinaryVersion := " 2.11.0-M7 "
10+ scalaVersion := " 2.11.0-M8 " ,
11+ snapshotScalaBinaryVersion := " 2.11.0-M8 "
1312)
1413
1514lazy val root = project.in( file(" ." ) ).settings( publishArtifact := false ).aggregate(plugin, library).settings(commonSettings : _* )
1615
17- lazy val plugin = project settings (SbtOsgi .osgiSettings : _* ) settings (
16+ lazy val plugin = project settings (scalaModuleOsgiSettings : _* ) settings (
1817 name := " scala-continuations-plugin" ,
1918 libraryDependencies += " org.scala-lang" % " scala-compiler" % scalaVersion.value,
2019 OsgiKeys .exportPackage := Seq (s " scala.tools.selectivecps;version= ${version.value}" )
@@ -23,7 +22,7 @@ lazy val plugin = project settings (SbtOsgi.osgiSettings: _*) settings (
2322val pluginJar = packageTask in (plugin, Compile )
2423
2524// TODO: the library project's test are really plugin tests, but we first need that jar
26- lazy val library = project settings (SbtOsgi .osgiSettings : _* ) settings (
25+ lazy val library = project settings (scalaModuleOsgiSettings : _* ) settings (
2726 name := " scala-continuations-library" ,
2827 scalacOptions ++= Seq (
2928 // add the plugin to the compiler
@@ -34,9 +33,9 @@ lazy val library = project settings (SbtOsgi.osgiSettings: _*) settings (
3433 // the library after editing the plugin. (Otherwise a 'clean' is needed.)
3534 s " -Jdummy= ${pluginJar.value.lastModified}" ),
3635 libraryDependencies ++= Seq (
37- " org.scala-lang" % " scala-compiler" % scalaVersion.value % " test" ,
38- " junit" % " junit" % " 4.11" % " test" ,
39- " com.novocode" % " junit-interface" % " 0.10" % " test" ),
36+ " org.scala-lang" % " scala-compiler" % scalaVersion.value % " test" ,
37+ " junit" % " junit" % " 4.11" % " test" ,
38+ " com.novocode" % " junit-interface" % " 0.10" % " test" ),
4039 testOptions += Tests .Argument (
4140 TestFrameworks .JUnit ,
4241 s " -Dscala-continuations-plugin.jar= ${pluginJar.value.getAbsolutePath}"
0 commit comments