Skip to content

Commit

Permalink
Merge pull request #53 from xuwei-k/java7
Browse files Browse the repository at this point in the history
target java7
  • Loading branch information
thesamet committed Nov 7, 2015
2 parents f01b90f + 1fad710 commit 03dedf2
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion build.sbt
Expand Up @@ -8,7 +8,19 @@ scalaVersion in ThisBuild := "2.11.7"

crossScalaVersions in ThisBuild := Seq("2.10.6", "2.11.7", "2.12.0-M1")

scalacOptions in ThisBuild += "-target:jvm-1.7"
scalacOptions in ThisBuild ++= {
CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, v)) if v <= 11 => List("-target:jvm-1.7")
case _ => Nil
}
}

javacOptions in ThisBuild ++= {
CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, v)) if v <= 11 => List("-target", "7", "-source", "7")
case _ => Nil
}
}

organization in ThisBuild := "com.trueaccord.scalapb"

Expand Down

0 comments on commit 03dedf2

Please sign in to comment.