Skip to content

Commit 61a682f

Browse files
committed
Finalize the move to Scala 2.11.x
- Link to the 2.10.x branch from the README - use `scala.annotation.compileTimeOnly` (from scala-library.jar) - no longer impose a transitive dependency on scala-reflect and scala-compiler. - Update Travis CI configuration to use only 2.11.0-SNAPSHOT
1 parent bc51a19 commit 61a682f

File tree

4 files changed

+8
-14
lines changed

4 files changed

+8
-14
lines changed

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ language: scala
22
script:
33
- sbt ++$TRAVIS_SCALA_VERSION clean test publishLocal
44
scala:
5-
- 2.10.3
6-
- 2.11.0-M6
5+
- 2.11.0-SNAPSHOT
76
jdk:
87
- openjdk6
98
- openjdk7

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
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

build.sbt

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,18 @@
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

77
organization := "org.scala-lang.modules"
88

99
name := "scala-async"
1010

1111
version := "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

2317
libraryDependencies += "junit" % "junit-dep" % "4.10" % "test"
2418

src/main/scala/scala/async/Async.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ package scala.async
66

77
import scala.language.experimental.macros
88
import 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]].

0 commit comments

Comments
 (0)