Skip to content

Commit 83fa3f4

Browse files
committed
Merge branch 'master' of github.com:Atry/memcontinuationed
2 parents abbd434 + 008b9e8 commit 83fa3f4

File tree

1 file changed

+20
-6
lines changed

1 file changed

+20
-6
lines changed

README.md

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,15 +95,29 @@ There is something you need to know:
9595

9696
Add these lines to your `build.sbt` if you use [Sbt](http://www.scala-sbt.org/):
9797

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+
}
102109
}
103110

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+
104119
scalacOptions += "-P:continuations:enable"
105-
106-
scalaVersion := "2.10.0"
120+
107121

108122
See http://mvnrepository.com/artifact/com.dongxiguo/memcontinuationed_2.10/0.3.1 if you use [Maven](http://maven.apache.org/)
109123
or other build systems.

0 commit comments

Comments
 (0)