From e280e173bf2d0254ea0b4b76caf3bbf7aa75a70b Mon Sep 17 00:00:00 2001 From: Seth Tisue Date: Tue, 30 Aug 2016 14:15:38 -0700 Subject: sbt build: fix "unchecked" warnings when compiling Java code --- build.sbt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build.sbt') diff --git a/build.sbt b/build.sbt index b2a27bcc6f..4a8f349a59 100644 --- a/build.sbt +++ b/build.sbt @@ -133,7 +133,7 @@ lazy val commonSettings = clearSourceAndResourceDirectories ++ publishSettings + // we always assume that Java classes are standalone and do not have any dependency // on Scala classes compileOrder := CompileOrder.JavaThenScala, - javacOptions in Compile ++= Seq("-g", "-source", "1.8", "-target", "1.8"), + javacOptions in Compile ++= Seq("-g", "-source", "1.8", "-target", "1.8", "-Xlint:unchecked"), // we don't want any unmanaged jars; as a reminder: unmanaged jar is a jar stored // directly on the file system and it's not resolved through Ivy // Ant's build stored unmanaged jars in `lib/` directory -- cgit v1.2.3