mirror of https://github.com/sbt/sbt.git
Keep targetting Java 7 with scala 2.10 and 2.11
This commit is contained in:
parent
fb9be8430d
commit
ac4ce5f4f5
19
build.sbt
19
build.sbt
|
|
@ -74,6 +74,25 @@ lazy val scalaVersionAgnosticCommonSettings = Seq(
|
|||
"Scalaz Bintray Repo" at "http://dl.bintray.com/scalaz/releases",
|
||||
Resolver.sonatypeRepo("releases")
|
||||
),
|
||||
scalacOptions ++= {
|
||||
scalaBinaryVersion.value match {
|
||||
case "2.10" | "2.11" =>
|
||||
Seq("-target:jvm-1.7")
|
||||
case _ =>
|
||||
Seq()
|
||||
}
|
||||
},
|
||||
javacOptions ++= {
|
||||
scalaBinaryVersion.value match {
|
||||
case "2.10" | "2.11" =>
|
||||
Seq(
|
||||
"-source", "1.7",
|
||||
"-target", "1.7"
|
||||
)
|
||||
case _ =>
|
||||
Seq()
|
||||
}
|
||||
},
|
||||
javacOptions in Keys.doc := Seq()
|
||||
) ++ releaseSettings
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue