You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by sl...@apache.org on 2021/11/18 20:36:04 UTC
[daffodil] branch main updated: Ensure Daffodil compiles with Java 8 compatibility
This is an automated email from the ASF dual-hosted git repository.
slawrence pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/daffodil.git
The following commit(s) were added to refs/heads/main by this push:
new 0e99d50 Ensure Daffodil compiles with Java 8 compatibility
0e99d50 is described below
commit 0e99d503a6e3519db1503f96b238bc2bffbfdfc1
Author: Steve Lawrence <sl...@apache.org>
AuthorDate: Mon Nov 15 15:52:25 2021 -0500
Ensure Daffodil compiles with Java 8 compatibility
DAFFODIL-2579
---
build.sbt | 3 +++
1 file changed, 3 insertions(+)
diff --git a/build.sbt b/build.sbt
index 3191d4e..e998557 100644
--- a/build.sbt
+++ b/build.sbt
@@ -156,6 +156,7 @@ lazy val commonSettings = Seq(
scalaVersion := "2.12.15",
crossScalaVersions := Seq("2.12.15"),
scalacOptions ++= Seq(
+ "-target:jvm-1.8",
"-feature",
"-deprecation",
"-language:experimental.macros",
@@ -169,6 +170,8 @@ lazy val commonSettings = Seq(
// Workaround issue that some options are valid for javac, not javadoc.
// These javacOptions are for code compilation only. (Issue sbt/sbt#355)
Compile / compile / javacOptions ++= Seq(
+ "-source", "8",
+ "-target", "8",
"-Werror",
"-Xlint:deprecation"
),