Skip to content

Commit 50c3ccb

Browse files
authored
Merge pull request #23 from larsrh/topic/2.12
Scala 2.12.0-RC2
2 parents d32637d + 56ac812 commit 50c3ccb

File tree

6 files changed

+28
-14
lines changed

6 files changed

+28
-14
lines changed

.travis.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
language: scala
22
script:
3-
- sbt ++$TRAVIS_SCALA_VERSION sourcecodeJVM/test:run sourcecodeJS/test:run
3+
- sbt ++$TRAVIS_SCALA_VERSION sourcecodeJVM/test:run sourcecodeJS/test:run
44
scala:
5-
- 2.10.4
6-
- 2.11.7
5+
- 2.10.6
6+
- 2.11.8
7+
- 2.12.0
8+
jdk:
9+
- openjdk7
10+
- oraclejdk8
11+
matrix:
12+
exclude:
13+
- scala: 2.12.0
14+
jdk: openjdk7
715
sudo: false

build.sbt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11

2-
crossScalaVersions := Seq("2.10.4", "2.11.7")
2+
crossScalaVersions := Seq("2.10.6", "2.11.8", "2.12.0")
33

44
def macroDependencies(version: String) =
55
Seq(
66
"org.scala-lang" % "scala-reflect" % version % "provided",
77
"org.scala-lang" % "scala-compiler" % version % "provided"
88
) ++
99
(if (version startsWith "2.10.")
10-
Seq(compilerPlugin("org.scalamacros" % s"paradise" % "2.0.0" cross CrossVersion.full),
11-
"org.scalamacros" %% s"quasiquotes" % "2.0.0")
10+
Seq(compilerPlugin("org.scalamacros" % s"paradise" % "2.1.0" cross CrossVersion.full),
11+
"org.scalamacros" %% s"quasiquotes" % "2.1.0")
1212
else
1313
Seq())
1414

1515
lazy val sourcecode = crossProject.settings(
16-
version := "0.1.2",
17-
scalaVersion := "2.11.7",
16+
version := "0.1.3",
17+
scalaVersion := "2.11.8",
1818
name := "sourcecode" ,
1919
organization := "com.lihaoyi",
2020
libraryDependencies ++= macroDependencies(scalaVersion.value),
2121
unmanagedSourceDirectories in Compile ++= {
22-
if (scalaVersion.value startsWith "2.10.") Seq(baseDirectory.value / ".."/"shared"/"src"/ "main" / "scala-2.10")
23-
else Seq(baseDirectory.value / ".."/"shared" / "src" / "main" / "scala-2.11")
22+
if (scalaVersion.value startsWith "2.12.") Seq(baseDirectory.value / ".."/"shared"/"src"/ "main" / "scala-2.11")
23+
else Seq()
2424
},
2525
publishTo := Some("releases" at "https://oss.sonatype.org/service/local/staging/deploy/maven2"),
2626

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version=0.13.9
1+
sbt.version=0.13.12

project/build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.6")
1+
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "0.6.13")

sourcecode/shared/src/test/scala/sourcecode/Apply.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ object Apply {
3535
assert(line == 34)
3636

3737
val enclosing = sourcecode.Enclosing()
38-
assert(enclosing == "sourcecode.Apply.applyRun myLazy$lzy Bar#enclosing")
38+
assert(
39+
(enclosing == "sourcecode.Apply.applyRun myLazy$lzy Bar#enclosing") ||
40+
(enclosing == "sourcecode.Apply.applyRun myLazy Bar#enclosing") // encoding changed in Scala 2.12
41+
)
3942
}
4043
val b = new Bar{}
4144
}

sourcecode/shared/src/test/scala/sourcecode/Implicits.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ object Implicits {
3535
assert(line.value == 34)
3636

3737
val enclosing = implicitly[sourcecode.Enclosing]
38-
assert(enclosing.value == "sourcecode.Implicits.implicitRun myLazy$lzy Bar#enclosing")
38+
assert(
39+
(enclosing.value == "sourcecode.Implicits.implicitRun myLazy$lzy Bar#enclosing") ||
40+
(enclosing.value == "sourcecode.Implicits.implicitRun myLazy Bar#enclosing") // encoding changed in Scala 2.12
41+
)
3942
}
4043
val b = new Bar{}
4144
}

0 commit comments

Comments
 (0)