Skip to content

Commit

Permalink
be precise in required java versions
Browse files Browse the repository at this point in the history
  • Loading branch information
rmgk committed Mar 10, 2024
1 parent f91a7b4 commit a692cd2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions project/Settings.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit a692cd2

Please sign in to comment.