@@ -1406,7 +1406,7 @@ object Build {
1406
1406
// NOTE: The only difference here is that we drop `-Werror` and semanticDB for now
1407
1407
Compile / scalacOptions := Seq (" -deprecation" , " -feature" , " -unchecked" , " -encoding" , " UTF8" , " -language:implicitConversions" ),
1408
1408
// 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),
1410
1410
Compile / scalacOptions ++= Seq (" --java-output-version" , Versions .minimumJVMVersion),
1411
1411
// Add all the project's external dependencies
1412
1412
libraryDependencies ++= Seq (
@@ -1486,7 +1486,7 @@ object Build {
1486
1486
// NOTE: The only difference here is that we drop `-Werror` and semanticDB for now
1487
1487
Compile / scalacOptions := Seq (" -deprecation" , " -feature" , " -unchecked" , " -encoding" , " UTF8" , " -language:implicitConversions" ),
1488
1488
// 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),
1490
1490
Compile / scalacOptions ++= Seq (" --java-output-version" , Versions .minimumJVMVersion),
1491
1491
// Add all the project's external dependencies
1492
1492
libraryDependencies ++= Seq (
@@ -1556,7 +1556,7 @@ object Build {
1556
1556
// NOTE: The only difference here is that we drop `-Werror` and semanticDB for now
1557
1557
Compile / scalacOptions := Seq (" -deprecation" , " -feature" , " -unchecked" , " -encoding" , " UTF8" , " -language:implicitConversions" ),
1558
1558
// 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),
1560
1560
Compile / scalacOptions ++= Seq (" --java-output-version" , Versions .minimumJVMVersion),
1561
1561
// Packaging configuration of `scala3-staging`
1562
1562
Compile / packageBin / publishArtifact := true ,
@@ -1613,7 +1613,7 @@ object Build {
1613
1613
// NOTE: The only difference here is that we drop `-Werror` and semanticDB for now
1614
1614
Compile / scalacOptions := Seq (" -deprecation" , " -feature" , " -unchecked" , " -encoding" , " UTF8" , " -language:implicitConversions" ),
1615
1615
// 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),
1617
1617
Compile / scalacOptions ++= Seq (" --java-output-version" , Versions .minimumJVMVersion),
1618
1618
// Packaging configuration of `scala3-staging`
1619
1619
Compile / packageBin / publishArtifact := true ,
@@ -1676,7 +1676,7 @@ object Build {
1676
1676
" -sourcepath" , (Compile / sourceDirectories).value.map(_.getCanonicalPath).distinct.mkString(File .pathSeparator),
1677
1677
),
1678
1678
// 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),
1680
1680
Compile / scalacOptions ++= Seq (" --java-output-version" , Versions .minimumJVMVersion),
1681
1681
// Packaging configuration of the stdlib
1682
1682
Compile / packageBin / publishArtifact := true ,
@@ -1752,7 +1752,7 @@ object Build {
1752
1752
" -sourcepath" , (Compile / sourceDirectories).value.map(_.getCanonicalPath).distinct.mkString(File .pathSeparator),
1753
1753
),
1754
1754
// 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),
1756
1756
Compile / scalacOptions ++= Seq (" --java-output-version" , Versions .minimumJVMVersion),
1757
1757
// Packaging configuration of the stdlib
1758
1758
Compile / packageBin / publishArtifact := true ,
@@ -2006,7 +2006,7 @@ object Build {
2006
2006
// NOTE: The only difference here is that we drop `-Werror` and semanticDB for now
2007
2007
Compile / scalacOptions := Seq (" -deprecation" , " -feature" , " -unchecked" , " -encoding" , " UTF8" , " -language:implicitConversions" ),
2008
2008
// 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),
2010
2010
Compile / scalacOptions ++= Seq (" --java-output-version" , Versions .minimumJVMVersion),
2011
2011
// Add all the project's external dependencies
2012
2012
libraryDependencies ++= Seq (
@@ -2065,7 +2065,7 @@ object Build {
2065
2065
// NOTE: The only difference here is that we drop `-Werror` and semanticDB for now
2066
2066
Compile / scalacOptions := Seq (" -deprecation" , " -feature" , " -unchecked" , " -encoding" , " UTF8" , " -language:implicitConversions" ),
2067
2067
// 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),
2069
2069
Compile / scalacOptions ++= Seq (" --java-output-version" , Versions .minimumJVMVersion),
2070
2070
// Add all the project's external dependencies
2071
2071
libraryDependencies ++= Seq (
@@ -2146,7 +2146,7 @@ object Build {
2146
2146
// TODO: Enable these flags when the new stdlib is explicitelly null checked
2147
2147
// Compile / scalacOptions ++= Seq("-Yexplicit-nulls", "-Wsafe-init"),
2148
2148
// 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),
2150
2150
Compile / scalacOptions ++= Seq (" --java-output-version" , Versions .minimumJVMVersion),
2151
2151
// Packaging configuration of the stdlib
2152
2152
Compile / packageBin / publishArtifact := true ,
@@ -2267,7 +2267,7 @@ object Build {
2267
2267
// TODO: Enable these flags when the new stdlib is explicitelly null checked
2268
2268
// Compile / scalacOptions ++= Seq("-Yexplicit-nulls", "-Wsafe-init"),
2269
2269
// 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),
2271
2271
Compile / scalacOptions ++= Seq (" --java-output-version" , Versions .minimumJVMVersion),
2272
2272
// Packaging configuration of the stdlib
2273
2273
Compile / packageBin / publishArtifact := true ,
0 commit comments