Skip to content

Commit ac10de6

Browse files
committed
Compile Scala using Java 8 toolchain
1 parent 4de7cd6 commit ac10de6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

buildSrc/src/main/kotlin/project-convention-scala.gradle.kts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,8 @@ tasks.withType(ScalaCompile::class) {
77
// See: https://github.com/gradle/gradle/issues/23193
88
// See: https://github.com/gradle/gradle/pull/23198
99
// See: https://github.com/gradle/gradle/pull/23751
10-
scalaCompileOptions.additionalParameters = mutableListOf("-Wunused", "-release", "8", "-target:8")
10+
scalaCompileOptions.additionalParameters = mutableListOf("-Wunused")
11+
javaLauncher.set(javaToolchains.launcherFor {
12+
languageVersion.set(JavaLanguageVersion.of(8))
13+
})
1114
}

0 commit comments

Comments
 (0)