Skip to content

Commit

Permalink
build: separate scalac options by scala version
Browse files Browse the repository at this point in the history
  • Loading branch information
drbild committed Aug 17, 2017
1 parent 5cff38a commit f11b9d6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion project/Common.scala
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ object Common {
val commonSettings: Seq[Setting[_]] = Seq(
scalaVersion := V.scala,

scalacOptions ++= Seq("-target:jvm-1.7"),
scalacOptions ++= Seq(
"-deprecation",
"-encoding", "UTF-8",
Expand All @@ -32,6 +31,10 @@ object Common {
"-Ywarn-dead-code",
"-Ywarn-numeric-widen",
"-Ywarn-unused-import"),
scalacOptions ++= (CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, 11)) => Seq("-target:jvm-1.7")
case _ => Nil
}),

updateOptions := updateOptions.value.withCachedResolution(true),
resolvers ++= Dependencies.resolvers,
Expand Down

0 comments on commit f11b9d6

Please sign in to comment.