From 50ae106df8cafa8cb7043f96fc9cb431d64502bf Mon Sep 17 00:00:00 2001 From: "Taro L. Saito" Date: Tue, 2 Jun 2020 16:51:04 -0700 Subject: [PATCH] #522: Ensure building msgpack-java for Java 7 target --- build.sbt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.sbt b/build.sbt index 2ea074f17..3329fbfd6 100644 --- a/build.sbt +++ b/build.sbt @@ -17,7 +17,8 @@ val buildSettings = Seq[Setting[_]]( // JVM options for building scalacOptions ++= Seq("-encoding", "UTF-8", "-deprecation", "-unchecked", "-feature"), javaOptions in Test ++= Seq("-ea"), - javacOptions in (Compile, compile) ++= Seq("-encoding", "UTF-8", "-Xlint:unchecked", "-Xlint:deprecation", "-source", "1.7", "-target", "1.7"), + javacOptions ++= Seq("-source", "1.7", "-target", "1.7"), + javacOptions in (Compile, compile) ++= Seq("-encoding", "UTF-8", "-Xlint:unchecked", "-Xlint:deprecation"), // Use lenient validation mode when generating Javadoc (for Java8) javacOptions in doc := { val opts = Seq("-source", "1.7")