Skip to content

Commit 3cf8a52

Browse files
authored
#522: Ensure building msgpack-java for Java 7 target (#523)
1 parent 72066f3 commit 3cf8a52

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build.sbt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ val buildSettings = Seq[Setting[_]](
1717
// JVM options for building
1818
scalacOptions ++= Seq("-encoding", "UTF-8", "-deprecation", "-unchecked", "-feature"),
1919
javaOptions in Test ++= Seq("-ea"),
20-
javacOptions in (Compile, compile) ++= Seq("-encoding", "UTF-8", "-Xlint:unchecked", "-Xlint:deprecation", "-source", "1.7", "-target", "1.7"),
20+
javacOptions ++= Seq("-source", "1.7", "-target", "1.7"),
21+
javacOptions in (Compile, compile) ++= Seq("-encoding", "UTF-8", "-Xlint:unchecked", "-Xlint:deprecation"),
2122
// Use lenient validation mode when generating Javadoc (for Java8)
2223
javacOptions in doc := {
2324
val opts = Seq("-source", "1.7")

0 commit comments

Comments
 (0)