File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -665,6 +665,7 @@ subprojects {
665665 }
666666
667667 if (versions. baseScala != ' 2.12' ) {
668+ scalaCompileOptions. additionalParameters + = [" -release:8" ]
668669 scalaCompileOptions. additionalParameters + = [" -opt-warnings" , " -Xlint:strict-unsealed-patmat" ]
669670 // Scala 2.13.2 introduces compiler warnings suppression, which is a pre-requisite for -Xfatal-warnings
670671 scalaCompileOptions. additionalParameters + = [" -Xfatal-warnings" ]
@@ -681,7 +682,7 @@ subprojects {
681682 }
682683
683684 // Scalac's `-release` requires Java 9 or higher
684- if (JavaVersion . current(). isJava9Compatible())
685+ if (( JavaVersion . current(). isJava9Compatible()) && (versions . baseScala == ' 2.12 ' ))
685686 scalaCompileOptions. additionalParameters + = [" -release" , minJavaVersion]
686687
687688 configure(scalaCompileOptions. forkOptions) {
You can’t perform that action at this time.
0 commit comments