From a692cd29d30c49cdc1b37e2b83fba7c1772553f8 Mon Sep 17 00:00:00 2001 From: ragnar Date: Mon, 11 Mar 2024 00:36:11 +0100 Subject: [PATCH] be precise in required java versions --- build.sbt | 2 ++ project/Settings.scala | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/build.sbt b/build.sbt index 51954a6b4..bbdb21912 100644 --- a/build.sbt +++ b/build.sbt @@ -41,6 +41,7 @@ lazy val reactivesAggregate = lazy val reactives = crossProject(JVMPlatform, JSPlatform, NativePlatform).in(file("Modules/Reactives")) .settings( scala3defaults, + java(9), // scaladoc autoAPIMappings := true, Compile / doc / scalacOptions += "-groups", @@ -80,6 +81,7 @@ lazy val rdts = crossProject(JVMPlatform, JSPlatform, NativePlatform).crossType( .in(file("Modules/RDTs")) .settings( scala3defaults, + java(8), LocalSetting.publishSonatype, Dependencies.munit, Dependencies.munitCheck, diff --git a/project/Settings.scala b/project/Settings.scala index 80d01a966..96756331a 100644 --- a/project/Settings.scala +++ b/project/Settings.scala @@ -31,11 +31,11 @@ object Settings { "-deprecation", "-source", "3.4", - "-java-output-version", - "11" ) ) + def java(n: Int) = scalacOptions ++= List("-java-output-version", n.toString) + def unusedWarnings(conf: TaskKey[?]*) = conf.map { c => c / scalacOptions ++= List( "-Wunused:imports",