Skip to content

Commit 499cdd8

Browse files
committed
chore: set the version of the java source too
1 parent ff5cf9d commit 499cdd8

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

project/Build.scala

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1406,7 +1406,7 @@ object Build {
14061406
// NOTE: The only difference here is that we drop `-Werror` and semanticDB for now
14071407
Compile / scalacOptions := Seq("-deprecation", "-feature", "-unchecked", "-encoding", "UTF8", "-language:implicitConversions"),
14081408
// Make sure that the produced artifacts have the minimum JVM version in the bytecode
1409-
Compile / javacOptions ++= Seq("--target", Versions.minimumJVMVersion),
1409+
Compile / javacOptions ++= Seq("--source", Versions.minimumJVMVersion, "--target", Versions.minimumJVMVersion),
14101410
Compile / scalacOptions ++= Seq("--java-output-version", Versions.minimumJVMVersion),
14111411
// Add all the project's external dependencies
14121412
libraryDependencies ++= Seq(
@@ -1486,7 +1486,7 @@ object Build {
14861486
// NOTE: The only difference here is that we drop `-Werror` and semanticDB for now
14871487
Compile / scalacOptions := Seq("-deprecation", "-feature", "-unchecked", "-encoding", "UTF8", "-language:implicitConversions"),
14881488
// Make sure that the produced artifacts have the minimum JVM version in the bytecode
1489-
Compile / javacOptions ++= Seq("--target", Versions.minimumJVMVersion),
1489+
Compile / javacOptions ++= Seq("--source", Versions.minimumJVMVersion, "--target", Versions.minimumJVMVersion),
14901490
Compile / scalacOptions ++= Seq("--java-output-version", Versions.minimumJVMVersion),
14911491
// Add all the project's external dependencies
14921492
libraryDependencies ++= Seq(
@@ -1556,7 +1556,7 @@ object Build {
15561556
// NOTE: The only difference here is that we drop `-Werror` and semanticDB for now
15571557
Compile / scalacOptions := Seq("-deprecation", "-feature", "-unchecked", "-encoding", "UTF8", "-language:implicitConversions"),
15581558
// Make sure that the produced artifacts have the minimum JVM version in the bytecode
1559-
Compile / javacOptions ++= Seq("--target", Versions.minimumJVMVersion),
1559+
Compile / javacOptions ++= Seq("--source", Versions.minimumJVMVersion, "--target", Versions.minimumJVMVersion),
15601560
Compile / scalacOptions ++= Seq("--java-output-version", Versions.minimumJVMVersion),
15611561
// Packaging configuration of `scala3-staging`
15621562
Compile / packageBin / publishArtifact := true,
@@ -1613,7 +1613,7 @@ object Build {
16131613
// NOTE: The only difference here is that we drop `-Werror` and semanticDB for now
16141614
Compile / scalacOptions := Seq("-deprecation", "-feature", "-unchecked", "-encoding", "UTF8", "-language:implicitConversions"),
16151615
// Make sure that the produced artifacts have the minimum JVM version in the bytecode
1616-
Compile / javacOptions ++= Seq("--target", Versions.minimumJVMVersion),
1616+
Compile / javacOptions ++= Seq("--source", Versions.minimumJVMVersion, "--target", Versions.minimumJVMVersion),
16171617
Compile / scalacOptions ++= Seq("--java-output-version", Versions.minimumJVMVersion),
16181618
// Packaging configuration of `scala3-staging`
16191619
Compile / packageBin / publishArtifact := true,
@@ -1676,7 +1676,7 @@ object Build {
16761676
"-sourcepath", (Compile / sourceDirectories).value.map(_.getCanonicalPath).distinct.mkString(File.pathSeparator),
16771677
),
16781678
// Make sure that the produced artifacts have the minimum JVM version in the bytecode
1679-
Compile / javacOptions ++= Seq("--target", Versions.minimumJVMVersion),
1679+
Compile / javacOptions ++= Seq("--source", Versions.minimumJVMVersion, "--target", Versions.minimumJVMVersion),
16801680
Compile / scalacOptions ++= Seq("--java-output-version", Versions.minimumJVMVersion),
16811681
// Packaging configuration of the stdlib
16821682
Compile / packageBin / publishArtifact := true,
@@ -1752,7 +1752,7 @@ object Build {
17521752
"-sourcepath", (Compile / sourceDirectories).value.map(_.getCanonicalPath).distinct.mkString(File.pathSeparator),
17531753
),
17541754
// Make sure that the produced artifacts have the minimum JVM version in the bytecode
1755-
Compile / javacOptions ++= Seq("--target", Versions.minimumJVMVersion),
1755+
Compile / javacOptions ++= Seq("--source", Versions.minimumJVMVersion, "--target", Versions.minimumJVMVersion),
17561756
Compile / scalacOptions ++= Seq("--java-output-version", Versions.minimumJVMVersion),
17571757
// Packaging configuration of the stdlib
17581758
Compile / packageBin / publishArtifact := true,
@@ -2006,7 +2006,7 @@ object Build {
20062006
// NOTE: The only difference here is that we drop `-Werror` and semanticDB for now
20072007
Compile / scalacOptions := Seq("-deprecation", "-feature", "-unchecked", "-encoding", "UTF8", "-language:implicitConversions"),
20082008
// Make sure that the produced artifacts have the minimum JVM version in the bytecode
2009-
Compile / javacOptions ++= Seq("--target", Versions.minimumJVMVersion),
2009+
Compile / javacOptions ++= Seq("--source", Versions.minimumJVMVersion, "--target", Versions.minimumJVMVersion),
20102010
Compile / scalacOptions ++= Seq("--java-output-version", Versions.minimumJVMVersion),
20112011
// Add all the project's external dependencies
20122012
libraryDependencies ++= Seq(
@@ -2065,7 +2065,7 @@ object Build {
20652065
// NOTE: The only difference here is that we drop `-Werror` and semanticDB for now
20662066
Compile / scalacOptions := Seq("-deprecation", "-feature", "-unchecked", "-encoding", "UTF8", "-language:implicitConversions"),
20672067
// Make sure that the produced artifacts have the minimum JVM version in the bytecode
2068-
Compile / javacOptions ++= Seq("--target", Versions.minimumJVMVersion),
2068+
Compile / javacOptions ++= Seq("--source", Versions.minimumJVMVersion, "--target", Versions.minimumJVMVersion),
20692069
Compile / scalacOptions ++= Seq("--java-output-version", Versions.minimumJVMVersion),
20702070
// Add all the project's external dependencies
20712071
libraryDependencies ++= Seq(
@@ -2146,7 +2146,7 @@ object Build {
21462146
// TODO: Enable these flags when the new stdlib is explicitelly null checked
21472147
//Compile / scalacOptions ++= Seq("-Yexplicit-nulls", "-Wsafe-init"),
21482148
// Make sure that the produced artifacts have the minimum JVM version in the bytecode
2149-
Compile / javacOptions ++= Seq("--target", Versions.minimumJVMVersion),
2149+
Compile / javacOptions ++= Seq("--source", Versions.minimumJVMVersion, "--target", Versions.minimumJVMVersion),
21502150
Compile / scalacOptions ++= Seq("--java-output-version", Versions.minimumJVMVersion),
21512151
// Packaging configuration of the stdlib
21522152
Compile / packageBin / publishArtifact := true,
@@ -2267,7 +2267,7 @@ object Build {
22672267
// TODO: Enable these flags when the new stdlib is explicitelly null checked
22682268
//Compile / scalacOptions ++= Seq("-Yexplicit-nulls", "-Wsafe-init"),
22692269
// Make sure that the produced artifacts have the minimum JVM version in the bytecode
2270-
Compile / javacOptions ++= Seq("--target", Versions.minimumJVMVersion),
2270+
Compile / javacOptions ++= Seq("--source", Versions.minimumJVMVersion, "--target", Versions.minimumJVMVersion),
22712271
Compile / scalacOptions ++= Seq("--java-output-version", Versions.minimumJVMVersion),
22722272
// Packaging configuration of the stdlib
22732273
Compile / packageBin / publishArtifact := true,

0 commit comments

Comments
 (0)