File tree Expand file tree Collapse file tree 4 files changed +8
-14
lines changed
src/main/scala/scala/async Expand file tree Collapse file tree 4 files changed +8
-14
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,7 @@ language: scala
22script :
33 - sbt ++$TRAVIS_SCALA_VERSION clean test publishLocal
44scala :
5- - 2.10.3
6- - 2.11.0-M6
5+ - 2.11.0-SNAPSHOT
76jdk :
87 - openjdk6
98 - openjdk7
Original file line number Diff line number Diff line change 22
33[ ![ Build Status] ( https://secure.travis-ci.org/scala/async.png )] ( http://travis-ci.org/scala/async )
44
5+ Note: this branch targets Scala 2.11.x, support for Scala 2.10.x has been moved to [ this branch] ( https://github.com/scala/async/tree/2.10.x ) .
56
67## Quick start
78
Original file line number Diff line number Diff line change 1- scalaVersion := " 2.11.0-RC1 "
1+ scalaVersion := " 2.11.0-SNAPSHOT "
22
33// Uncomment to test with a locally built copy of Scala.
44// scalaHome := Some(file("/code/scala2/build/pack"))
5-
5+ resolvers ++= ( if (scalaVersion.value.endsWith( " SNAPSHOT " )) List ( Resolver .sonatypeRepo( " snapshots " )) else Nil )
66
77organization := " org.scala-lang.modules"
88
99name := " scala-async"
1010
1111version := " 0.9.0-SNAPSHOT"
1212
13- libraryDependencies <++= (scalaVersion) {
14- sv => Seq (
15- // TODO we should make this provided after we rely on @compileTimeOnly in scla-library in 2.11.-
16- // but if we do that now, and a user doesn't have this on the classpath, they can get the
17- // dreaded MissingRequirementErrors when unpickling types from scala.async.Async
18- " org.scala-lang" % " scala-reflect" % sv,
19- " org.scala-lang" % " scala-compiler" % sv % " provided"
20- )
21- }
13+ libraryDependencies += " org.scala-lang" % " scala-reflect" % scalaVersion.value % " provided"
14+
15+ libraryDependencies += " org.scala-lang" % " scala-compiler" % scalaVersion.value % " test" // for ToolBox
2216
2317libraryDependencies += " junit" % " junit-dep" % " 4.10" % " test"
2418
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ package scala.async
66
77import scala .language .experimental .macros
88import scala .concurrent .{Future , ExecutionContext }
9- import scala .reflect . internal . annotations .compileTimeOnly
9+ import scala .annotation .compileTimeOnly
1010
1111/**
1212 * Async blocks provide a direct means to work with [[scala.concurrent.Future ]].
You can’t perform that action at this time.
0 commit comments