From 2c104bbca744cb94800435f6324291f8bdbd8284 Mon Sep 17 00:00:00 2001 From: Liam Miller-Cushon Date: Tue, 14 Jan 2025 18:47:18 -0800 Subject: [PATCH] Consider a -source and -target version for javac This avoids building e.g. IgnoreSuite targeting the latest class file version supported by the JDK used at build time. https://github.com/scalameta/munit/issues/868 --- build.sbt | 1 + 1 file changed, 1 insertion(+) diff --git a/build.sbt b/build.sbt index 905239b4..567d6ea9 100644 --- a/build.sbt +++ b/build.sbt @@ -92,6 +92,7 @@ val sharedNativeConfigure: Project => Project = _.disablePlugins(ScalafixPlugin, MimaPlugin) val sharedSettings = List( + javacOptions ++= Seq("-source", "1.8", "-target", "1.8"), scalacOptions ++= { CrossVersion.partialVersion(scalaVersion.value) match { case Some((2, 11)) =>