Skip to content

Commit 249c06a

Browse files
committed
misc little updates to the build definition
1 parent 07ccb1b commit 249c06a

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

build.sbt

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ organization := "com.typesafe"
66

77
version := "1.1.0"
88

9-
lazy val scala210Version = "2.10.5"
9+
lazy val scala210Version = "2.10.6"
1010
lazy val scala211Version = "2.11.8"
1111
lazy val scala212Version = "2.12.1"
1212

@@ -22,17 +22,20 @@ publishTo := Some(typesafeIvyReleases)
2222

2323
publishMavenStyle := false
2424

25-
scalacOptions <<= (scalaVersion) map { sv =>
26-
Seq("-unchecked", "-deprecation") ++
27-
{ if (sv.startsWith("2.9")) Seq.empty else Seq("-feature") }
28-
}
25+
scalacOptions ++= Seq("-unchecked", "-deprecation", "-feature")
2926

30-
javacOptions in (Compile, doc) := Seq("-target", "1.6", "-source", "1.6")
27+
javacOptions in (Compile, doc) ++=
28+
(CrossVersion.partialVersion(scalaVersion.value) match {
29+
case Some ((2, n)) if n <= 11 =>
30+
Seq("-target", "1.6", "-source", "1.6")
31+
case _ =>
32+
Seq()
33+
})
3134

3235
licenses += ("Apache-2.0", url("https://www.apache.org/licenses/LICENSE-2.0.html"))
3336

3437
libraryDependencies ++= Seq(
35-
"org.scalatest" %% "scalatest" % "3.0.0" % Test
38+
"org.scalatest" %% "scalatest" % "3.0.1" % Test
3639
)
3740

3841
initialCommands in console := {

0 commit comments

Comments
 (0)