From accae4d0535954705291dfc7222f75c7559645a2 Mon Sep 17 00:00:00 2001 From: Jarek Sacha Date: Mon, 3 May 2021 20:07:00 -0400 Subject: [PATCH] Support running on Java 8 #14 --- build.sbt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build.sbt b/build.sbt index 32d4c9c..b668381 100644 --- a/build.sbt +++ b/build.sbt @@ -32,7 +32,9 @@ val commonSettings = Seq( "-deprecation", "-Xlint", "-feature", - "-explaintypes", + "-explaintypes", + "-release", "8", + "-target:8" ), Compile / doc / scalacOptions ++= Opts.doc.title("IJP Debayer2SX API"), Compile / doc / scalacOptions ++= Opts.doc.version(_version), @@ -45,7 +47,7 @@ val commonSettings = Seq( case Some(path) => Seq("-diagrams", "-diagrams-dot-path", path, "-diagrams-debug") case None => Seq.empty[String] }), - javacOptions ++= Seq("-deprecation", "-Xlint"), + Compile / compile / javacOptions ++= Seq("-deprecation", "-Xlint", "-source", "1.8", "-target", "1.8"), // libraryDependencies ++= Seq( "net.imagej" % "ij" % "1.53i",