From 711e744d7580caf71f12dbf1c0728243f2633276 Mon Sep 17 00:00:00 2001 From: Jentsch Date: Sun, 19 Mar 2017 14:00:10 +0100 Subject: [PATCH] Let compiler explain warnings --- build.sbt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/build.sbt b/build.sbt index 80679446c..c0f3165ea 100644 --- a/build.sbt +++ b/build.sbt @@ -308,8 +308,8 @@ lazy val cli = project def zipEntries(zipStream: ZipInputStream): Iterator[(ZipEntry, Array[Byte])] = new Iterator[(ZipEntry, Array[Byte])] { - var nextEntry = Option.empty[ZipEntry] - def update() = + private var nextEntry = Option.empty[ZipEntry] + private def update() = nextEntry = Option(zipStream.getNextEntry) update() @@ -623,12 +623,14 @@ lazy val scalaVersionAgnosticCommonSettings = Seq( Resolver.sonatypeRepo("releases") ), scalacOptions ++= { - scalaBinaryVersion.value match { + val targetJvm = scalaBinaryVersion.value match { case "2.10" | "2.11" => Seq("-target:jvm-1.6") case _ => Seq() } + + targetJvm ++ Seq("-feature", "-deprecation") }, javacOptions ++= { scalaBinaryVersion.value match {