@@ -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 (" --release " , 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 (" --release " , 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 (" --release " , 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 (" --release " , 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 ,
@@ -1681,7 +1681,7 @@ object Build {
1681
1681
" -sourcepath" , (Compile / sourceDirectories).value.map(_.getCanonicalPath).distinct.mkString(File .pathSeparator),
1682
1682
),
1683
1683
// Make sure that the produced artifacts have the minimum JVM version in the bytecode
1684
- Compile / javacOptions ++= Seq (" --target " , Versions .minimumJVMVersion),
1684
+ Compile / javacOptions ++= Seq (" --release " , Versions .minimumJVMVersion),
1685
1685
Compile / scalacOptions ++= Seq (" --java-output-version" , Versions .minimumJVMVersion),
1686
1686
// Packaging configuration of the stdlib
1687
1687
Compile / packageBin / publishArtifact := true ,
@@ -1762,7 +1762,7 @@ object Build {
1762
1762
" -sourcepath" , (Compile / sourceDirectories).value.map(_.getCanonicalPath).distinct.mkString(File .pathSeparator),
1763
1763
),
1764
1764
// Make sure that the produced artifacts have the minimum JVM version in the bytecode
1765
- Compile / javacOptions ++= Seq (" --target " , Versions .minimumJVMVersion),
1765
+ Compile / javacOptions ++= Seq (" --release " , Versions .minimumJVMVersion),
1766
1766
Compile / scalacOptions ++= Seq (" --java-output-version" , Versions .minimumJVMVersion),
1767
1767
// Packaging configuration of the stdlib
1768
1768
Compile / packageBin / publishArtifact := true ,
@@ -2021,7 +2021,7 @@ object Build {
2021
2021
// NOTE: The only difference here is that we drop `-Werror` and semanticDB for now
2022
2022
Compile / scalacOptions := Seq (" -deprecation" , " -feature" , " -unchecked" , " -encoding" , " UTF8" , " -language:implicitConversions" ),
2023
2023
// Make sure that the produced artifacts have the minimum JVM version in the bytecode
2024
- Compile / javacOptions ++= Seq (" --target " , Versions .minimumJVMVersion),
2024
+ Compile / javacOptions ++= Seq (" --release " , Versions .minimumJVMVersion),
2025
2025
Compile / scalacOptions ++= Seq (" --java-output-version" , Versions .minimumJVMVersion),
2026
2026
// Add all the project's external dependencies
2027
2027
libraryDependencies ++= Seq (
@@ -2080,7 +2080,7 @@ object Build {
2080
2080
// NOTE: The only difference here is that we drop `-Werror` and semanticDB for now
2081
2081
Compile / scalacOptions := Seq (" -deprecation" , " -feature" , " -unchecked" , " -encoding" , " UTF8" , " -language:implicitConversions" ),
2082
2082
// Make sure that the produced artifacts have the minimum JVM version in the bytecode
2083
- Compile / javacOptions ++= Seq (" --target " , Versions .minimumJVMVersion),
2083
+ Compile / javacOptions ++= Seq (" --release " , Versions .minimumJVMVersion),
2084
2084
Compile / scalacOptions ++= Seq (" --java-output-version" , Versions .minimumJVMVersion),
2085
2085
// Add all the project's external dependencies
2086
2086
libraryDependencies ++= Seq (
@@ -2161,7 +2161,7 @@ object Build {
2161
2161
// TODO: Enable these flags when the new stdlib is explicitelly null checked
2162
2162
// Compile / scalacOptions ++= Seq("-Yexplicit-nulls", "-Wsafe-init"),
2163
2163
// Make sure that the produced artifacts have the minimum JVM version in the bytecode
2164
- Compile / javacOptions ++= Seq (" --target " , Versions .minimumJVMVersion),
2164
+ Compile / javacOptions ++= Seq (" --release " , Versions .minimumJVMVersion),
2165
2165
Compile / scalacOptions ++= Seq (" --java-output-version" , Versions .minimumJVMVersion),
2166
2166
// Packaging configuration of the stdlib
2167
2167
Compile / packageBin / publishArtifact := true ,
@@ -2282,7 +2282,7 @@ object Build {
2282
2282
// TODO: Enable these flags when the new stdlib is explicitelly null checked
2283
2283
// Compile / scalacOptions ++= Seq("-Yexplicit-nulls", "-Wsafe-init"),
2284
2284
// Make sure that the produced artifacts have the minimum JVM version in the bytecode
2285
- Compile / javacOptions ++= Seq (" --target " , Versions .minimumJVMVersion),
2285
+ Compile / javacOptions ++= Seq (" --release " , Versions .minimumJVMVersion),
2286
2286
Compile / scalacOptions ++= Seq (" --java-output-version" , Versions .minimumJVMVersion),
2287
2287
// Packaging configuration of the stdlib
2288
2288
Compile / packageBin / publishArtifact := true ,
0 commit comments