File tree Expand file tree Collapse file tree 1 file changed +20
-6
lines changed Expand file tree Collapse file tree 1 file changed +20
-6
lines changed Original file line number Diff line number Diff line change @@ -95,15 +95,29 @@ There is something you need to know:
95
95
96
96
Add these lines to your ` build.sbt ` if you use [ Sbt] ( http://www.scala-sbt.org/ ) :
97
97
98
- libraryDependencies += "com.dongxiguo" % "memcontinuationed_2.10" % "0.3.1"
99
-
100
- libraryDependencies <+= scalaVersion { v =>
101
- compilerPlugin("org.scala-lang.plugins" % "continuations" % v)
98
+ libraryDependencies += "com.dongxiguo" %% "memcontinuationed" % "0.3.2"
99
+
100
+ libraryDependencies <++= scalaBinaryVersion { bv =>
101
+ bv match {
102
+ case "2.10" => {
103
+ Seq()
104
+ }
105
+ case _ => {
106
+ Seq("org.scala-lang.plugins" % s"scala-continuations-library_$bv" % "1.0.1")
107
+ }
108
+ }
102
109
}
103
110
111
+ libraryDependencies <+= scalaVersion { sv =>
112
+ if (sv.startsWith("2.10.")) {
113
+ compilerPlugin("org.scala-lang.plugins" % "continuations" % sv)
114
+ } else {
115
+ compilerPlugin("org.scala-lang.plugins" % s"scala-continuations-plugin_$sv" % "1.0.1")
116
+ }
117
+ }
118
+
104
119
scalacOptions += "-P:continuations:enable"
105
-
106
- scalaVersion := "2.10.0"
120
+
107
121
108
122
See http://mvnrepository.com/artifact/com.dongxiguo/memcontinuationed_2.10/0.3.1 if you use [ Maven] ( http://maven.apache.org/ )
109
123
or other build systems.
You can’t perform that action at this time.
0 commit comments