Skip to content

Commit

Permalink
Ensure that all classes are compiled with Java 11 bytecode
Browse files Browse the repository at this point in the history
  • Loading branch information
JD557 committed Feb 19, 2024
1 parent a95bb3b commit 9294349
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ ThisBuild / organization := "com.velocidi"

ThisBuild / crossScalaVersions := Seq("2.12.18", "2.13.12")
ThisBuild / scalaVersion := "2.13.12"
val javaVersion = "11"

// Workaround for incompatible scala-xml versions taken from https://github.com/scala/bug/issues/12632. scala-xml 1.x
// and scala-xml 2.x are "mostly" binary compatible.
Expand Down Expand Up @@ -118,6 +119,7 @@ lazy val commonSettings = Seq(
"-feature",
"-unchecked",
"-deprecation",
"-release", javaVersion,
"-Xfatal-warnings",
"-Ywarn-dead-code")

Expand All @@ -135,6 +137,10 @@ lazy val commonSettings = Seq(
}
},

javacOptions ++= List(
"--release", javaVersion
),

autoAPIMappings := true,

publishTo := sonatypePublishToBundle.value,
Expand Down

0 comments on commit 9294349

Please sign in to comment.