Skip to content

Commit ab5a704

Browse files
committed
Merge pull request #60 from giabao/scala-2.12
Scala 2.12
2 parents 0444e90 + a6e2c35 commit ab5a704

File tree

4 files changed

+26
-7
lines changed

4 files changed

+26
-7
lines changed

.travis.yml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,25 @@
1+
sudo: required
2+
dist: trusty
13
language: scala
24
scala:
35
- 2.11.8
4-
jdk:
5-
- oraclejdk8
6-
- oraclejdk7
6+
- 2.12.0-M4
7+
env:
8+
- JDK=oraclejdk8
9+
- JDK=openjdk8
10+
- JDK=oraclejdk7
11+
- JDK=openjdk7
12+
before_script:
13+
- jdk_switcher use $JDK
14+
#https://github.com/travis-ci/travis-ci/issues/5227#issuecomment-165131913
15+
- cat /etc/hosts # optionally check the content *before*
16+
- sudo hostname "$(hostname | cut -c1-63)"
17+
- sed -e "s/^\\(127\\.0\\.0\\.1.*\\)/\\1 $(hostname | cut -c1-63)/" /etc/hosts | sudo tee /etc/hosts
18+
- cat /etc/hosts # optionally check the content *after*
19+
matrix:
20+
# scala 2.12 require java 8
21+
exclude:
22+
- scala: 2.12.0-M4
23+
env: JDK=oraclejdk7
24+
- scala: 2.12.0-M4
25+
env: JDK=openjdk7

project/Common.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,11 @@ object Common {
1616
// Core settings
1717
organization := "com.typesafe.scala-logging",
1818
scalaVersion := Version.scala,
19-
crossScalaVersions := List(scalaVersion.value),
19+
crossScalaVersions := Version.crossScala,
2020
scalacOptions ++= List(
2121
"-unchecked",
2222
"-deprecation",
2323
"-language:_",
24-
"-target:jvm-1.6",
2524
"-encoding", "UTF-8"
2625
),
2726
unmanagedSourceDirectories in Compile := List((scalaSource in Compile).value),

project/Dependencies.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ import sbt._
22

33
object Version {
44
val logback = "1.1.7"
5-
val mockito = "1.9.5"
5+
val mockito = "1.10.19"
66
val scala = "2.11.8"
7+
val crossScala = List(scala, "2.12.0-M4")
78
val scalaTest = "2.2.6"
89
val slf4j = "1.7.21"
910
}

project/plugins.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.0.0")
22

33
addSbtPlugin("com.typesafe.sbt" % "sbt-scalariform" % "1.3.0")
44

5-
addSbtPlugin("com.github.gseitz" % "sbt-release" % "0.8.3")
5+
addSbtPlugin("com.github.gseitz" % "sbt-release" % "0.8.5")
66

77
addSbtPlugin("com.typesafe.sbt" % "sbt-osgi" % "0.7.0")
88

0 commit comments

Comments
 (0)