@@ -2,23 +2,9 @@ name := "play-js-validation"
2
2
3
3
organization := " EPFL"
4
4
5
- version := " 0.1"
6
-
7
- // --- Local Scala
8
-
9
- scalaHome <<= baseDirectory { f =>
10
- // val scalaVirtualizedHome = SettingKey[File]("scala-virtualized-home","Location of local Scala virtualized checkout")
11
- val props = new java.util.Properties ()
12
- IO .load(props, f / " local.properties" )
13
- val x = props.getProperty(" scala.virtualized.home" )
14
- if (x == null )
15
- sys.error(" Did you forget to set scala.virtualized.home property in local.properties file?" )
16
- else Some (file(x))
17
- }
18
-
19
- scalaVersion := " 2.10.0-virtualized-SNAPSHOT"
5
+ version := " 0.2-SNAPSHOT"
20
6
21
- scalacOptions <+= scalaHome map (_.map(f => " -Xplugin: " + f + " /misc/scala-devel/plugins/continuations.jar " ).get )
7
+ scalaVersion := Option ( System .getenv( " SCALA_VIRTUALIZED_VERSION " )).getOrElse( " 2.10.0-M1-virtualized " )
22
8
23
9
// --- Dependencies
24
10
@@ -30,7 +16,7 @@ resolvers ++= Seq(
30
16
31
17
libraryDependencies ++= Seq (
32
18
" org.scalatest" % " scalatest_2.10.0-virtualized-SNAPSHOT" % " 1.6.1-SNAPSHOT" % " test" ,
33
- " EPFL" % " lms-sandbox_2.10.0-virtualized-SNAPSHOT " % " 0.1 " )
19
+ " EPFL" %% " js-scala " % " 0.2-SNAPSHOT " )
34
20
35
21
// --- End of Dependencies
36
22
@@ -42,3 +28,11 @@ parallelExecution in Test := false
42
28
// disable publishing of main docs
43
29
publishArtifact in (Compile , packageDoc) := false
44
30
31
+ // continuations
32
+ autoCompilerPlugins := true
33
+
34
+ libraryDependencies <<= (scalaVersion, libraryDependencies) { (ver, deps) =>
35
+ deps :+ compilerPlugin(" org.scala-lang.plugins" % " continuations" % ver)
36
+ }
37
+
38
+ scalacOptions += " -P:continuations:enable"
0 commit comments