Skip to content

Commit

Permalink
Consider a -source and -target version for javac
Browse files Browse the repository at this point in the history
This avoids building e.g. IgnoreSuite targeting the latest class file
version supported by the JDK used at build time.

scalameta#868
  • Loading branch information
cushon committed Jan 15, 2025
1 parent 0674f83 commit 2c104bb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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)) =>
Expand Down

0 comments on commit 2c104bb

Please sign in to comment.