Skip to content

Commit 8b9fe22

Browse files
Adjustments after review
1 parent af750a7 commit 8b9fe22

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/src/main/scala/org/typelevel/scalacoptions/ScalacOptions.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,11 @@ private[scalacoptions] trait ScalacOptions {
7878
* The release flag is supported only on JDK 9 and above, since it relies on the functionality
7979
* provided in [[http://openjdk.java.net/jeps/247 JEP-247: Compile for Older Platform Versions]].
8080
*/
81-
@deprecated("Use javaOutputVersion instead", "3.1.2")
8281
def release(version: String) =
8382
ScalacOption(
8483
"-release",
8584
List(version),
86-
version => JavaMajorVersion.javaMajorVersion >= 9 && version >= V2_12_5
85+
version => JavaMajorVersion.javaMajorVersion >= 9 && version >= V2_12_5 && version < V3_1_2
8786
)
8887

8988
/** Enable features that will be available in a future version of Scala, for purposes of early

0 commit comments

Comments
 (0)