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-sbt.git
The following commit(s) were added to refs/heads/main by this push:
new 05f2e8c Replace -target with --release in javacOptions
05f2e8c is described below
commit 05f2e8cc6e6fa8bb84090d8f515fd5db3f666af9
Author: Steve Lawrence <[email protected]>
AuthorDate: Fri Feb 27 14:15:49 2026 -0500
Replace -target with --release in javacOptions
Closes #161
---
build.sbt | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/build.sbt b/build.sbt
index e1b3298..e98e818 100644
--- a/build.sbt
+++ b/build.sbt
@@ -90,9 +90,8 @@ lazy val utils = (projectMatrix in file("utils"))
.settings(
javacOptions ++= {
scalaBinaryVersion.value match {
- case "2.12" => Seq("-target", "8")
- case "2.13" => Seq("-target", "8")
- case "3" => Seq("-target", "17")
+ case "2.12" | "2.13" => Seq("--release", "8")
+ case "3" => Seq("--release", "17")
}
},
scalacOptions ++= {