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
2
2
script :
3
3
- sbt ++$TRAVIS_SCALA_VERSION clean test publishLocal
4
4
scala :
5
- - 2.10.3
6
- - 2.11.0-M6
5
+ - 2.11.0-SNAPSHOT
7
6
jdk :
8
7
- openjdk6
9
8
- openjdk7
Original file line number Diff line number Diff line change 2
2
3
3
[ ![ Build Status] ( https://secure.travis-ci.org/scala/async.png )] ( http://travis-ci.org/scala/async )
4
4
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 ) .
5
6
6
7
## Quick start
7
8
Original file line number Diff line number Diff line change 1
- scalaVersion := " 2.11.0-RC1 "
1
+ scalaVersion := " 2.11.0-SNAPSHOT "
2
2
3
3
// Uncomment to test with a locally built copy of Scala.
4
4
// scalaHome := Some(file("/code/scala2/build/pack"))
5
-
5
+ resolvers ++= ( if (scalaVersion.value.endsWith( " SNAPSHOT " )) List ( Resolver .sonatypeRepo( " snapshots " )) else Nil )
6
6
7
7
organization := " org.scala-lang.modules"
8
8
9
9
name := " scala-async"
10
10
11
11
version := " 0.9.0-SNAPSHOT"
12
12
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
22
16
23
17
libraryDependencies += " junit" % " junit-dep" % " 4.10" % " test"
24
18
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ package scala.async
6
6
7
7
import scala .language .experimental .macros
8
8
import scala .concurrent .{Future , ExecutionContext }
9
- import scala .reflect . internal . annotations .compileTimeOnly
9
+ import scala .annotation .compileTimeOnly
10
10
11
11
/**
12
12
* Async blocks provide a direct means to work with [[scala.concurrent.Future ]].
You can’t perform that action at this time.
0 commit comments