Skip to content

Commit 4bedd03

Browse files
marcospereiradwijnand
authored andcommitted
Scala 2.13.0-RC1 (#161)
1 parent 28122b2 commit 4bedd03

File tree

3 files changed

+16
-35
lines changed

3 files changed

+16
-35
lines changed

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ matrix:
3434
scala:
3535
- 2.11.12
3636
- 2.12.8
37-
- 2.13.0-M3
38-
- 2.13.0-M5
37+
- 2.13.0-RC1
3938

4039
script:
4140
- sbt ++$TRAVIS_SCALA_VERSION validateCode

build.sbt

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import com.typesafe.tools.mima.core._
44

55
val commonSettings = Seq(
66
scalaVersion := Version.scala212,
7-
crossScalaVersions := Seq(Version.scala213, Version.scala213M3, Version.scala212, Version.scala211),
7+
crossScalaVersions := Seq(Version.scala213, Version.scala212, Version.scala211),
88
javacOptions ++= Seq("-source", "1.8", "-target", "1.8")
99
)
1010

@@ -26,18 +26,9 @@ lazy val sslConfigCore = project.in(file("ssl-config-core"))
2626
case _ => // 2.13 we don't have a library capable of this
2727
Set.empty[ModuleID]
2828
}), // "sbt mimaReportBinaryIssues"
29+
libraryDependencies += Library.parserCombinators(scalaVersion.value),
2930
libraryDependencies ++= Dependencies.sslConfigCore,
30-
libraryDependencies ++= (
31-
scalaVersion.value match {
32-
case Version.scala213M3 => Seq(Library.parserCombinators213M3)
33-
case _ => Seq(Library.parserCombinators)
34-
}),
35-
libraryDependencies ++= (
36-
scalaVersion.value match {
37-
case Version.scala213M3 => Dependencies.testDependencies213M3
38-
case _ => Dependencies.testDependencies
39-
}
40-
),
31+
libraryDependencies ++= Dependencies.testDependencies,
4132
OsgiKeys.bundleSymbolicName := s"${organization.value}.sslconfig",
4233
OsgiKeys.exportPackage := Seq(s"com.typesafe.sslconfig.*;version=${version.value}"),
4334
OsgiKeys.importPackage := Seq("!sun.misc", "!sun.security.*", configImport(), "*"),

project/Dependencies.scala

Lines changed: 12 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,19 @@ object Version {
66
val jodaTime = "2.10.1"
77
val jodaTimeConvert = "2.2.0"
88

9-
val parserCombinators = "1.1.1"
10-
val parserCombinators213M3 = "1.1.0"
11-
12-
val specs2Scala213M3 = "4.2.0"
13-
val specs2 = "4.3.5"
9+
// Because of https://github.com/sbt/sbt/issues/4609
10+
val parserCombinators211 = "1.1.1"
11+
val parserCombinators = "1.1.2"
12+
val specs2 = "4.5.1"
1413

1514
val scala211 = "2.11.12"
16-
val scala212 = "2.12.6"
17-
val scala213M3 = "2.13.0-M3"
18-
val scala213 = "2.13.0-M5"
15+
val scala212 = "2.12.8"
16+
val scala213 = "2.13.0-RC1"
1917
}
2018

2119
object Library {
2220
val typesafeConfig = "com.typesafe" % "config" % Version.typesafeConfig // Apache2
2321

24-
2522
// TESTS
2623
val specs2 = Seq(
2724
"org.specs2" %% "specs2-core" % Version.specs2 % "test",
@@ -30,25 +27,19 @@ object Library {
3027
"org.specs2" %% "specs2-matcher-extra" % Version.specs2 % "test"
3128
)
3229

33-
val specs2Scala213M3 = Seq(
34-
"org.specs2" %% "specs2-core" % Version.specs2Scala213M3 % "test",
35-
"org.specs2" %% "specs2-junit" % Version.specs2Scala213M3 % "test",
36-
"org.specs2" %% "specs2-mock" % Version.specs2Scala213M3 % "test",
37-
"org.specs2" %% "specs2-matcher-extra" % Version.specs2Scala213M3 % "test"
38-
)
39-
40-
val parserCombinators = "org.scala-lang.modules" %% "scala-parser-combinators" % Version.parserCombinators
41-
val parserCombinators213M3 = "org.scala-lang.modules" %% "scala-parser-combinators" % Version.parserCombinators213M3
42-
4330
val jodaTime = "joda-time" % "joda-time" % Version.jodaTime % "test" // ONLY FOR TESTS!
4431
val jodaTimeConvert = "org.joda" % "joda-convert" % Version.jodaTimeConvert % "test" // ONLY FOR TESTS!
32+
33+
def parserCombinators(scalaVersion: String) = if (scalaVersion.equals(Version.scala211)) {
34+
"org.scala-lang.modules" %% "scala-parser-combinators" % Version.parserCombinators211
35+
} else {
36+
"org.scala-lang.modules" %% "scala-parser-combinators" % Version.parserCombinators
37+
}
4538
}
4639

4740
object Dependencies {
4841
import Library._
4942

5043
val sslConfigCore = Seq(typesafeConfig)
51-
val testDependencies213M3 = Library.specs2Scala213M3 ++ Seq(jodaTime, jodaTimeConvert)
52-
5344
val testDependencies = Library.specs2 ++ Seq(jodaTime, jodaTimeConvert)
5445
}

0 commit comments

Comments
 (0)