mirror of
https://github.com/sbt/sbt.git
synced 2026-08-22 14:17:13 +02:00
Require Java 8 from now on
This commit is contained in:
+11
-26
@@ -31,32 +31,17 @@ object Settings {
|
||||
scalazBintrayRepository,
|
||||
sonatypeRepository("releases"),
|
||||
crossScalaVersions := Seq(scala212, scala211, scala210), // defined for all projects to trump sbt-doge
|
||||
scalacOptions ++= {
|
||||
val targetJvm = scalaBinaryVersion.value match {
|
||||
case "2.10" | "2.11" =>
|
||||
Seq("-target:jvm-1.6")
|
||||
case _ =>
|
||||
Seq()
|
||||
}
|
||||
|
||||
targetJvm ++ Seq(
|
||||
"-feature",
|
||||
"-deprecation",
|
||||
"-language:higherKinds",
|
||||
"-language:implicitConversions"
|
||||
)
|
||||
},
|
||||
javacOptions ++= {
|
||||
scalaBinaryVersion.value match {
|
||||
case "2.10" | "2.11" =>
|
||||
Seq(
|
||||
"-source", "1.6",
|
||||
"-target", "1.6"
|
||||
)
|
||||
case _ =>
|
||||
Seq()
|
||||
}
|
||||
},
|
||||
scalacOptions ++= Seq(
|
||||
"-target:jvm-1.8",
|
||||
"-feature",
|
||||
"-deprecation",
|
||||
"-language:higherKinds",
|
||||
"-language:implicitConversions"
|
||||
),
|
||||
javacOptions ++= Seq(
|
||||
"-source", "1.8",
|
||||
"-target", "1.8"
|
||||
),
|
||||
javacOptions.in(Keys.doc) := Seq()
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user