Set targetCompatibility in the build.gradle.kts file

This commit is contained in:
Username404 2021-06-02 12:11:43 +02:00
parent 24df3a12cc
commit acaa6b9618
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 1 additions and 0 deletions

View File

@ -192,6 +192,7 @@ allprojects {
javaCompiler.set(compiler)
// The following lines are required for Jabel:
sourceCompatibility = sourceJavaVer
targetCompatibility = javaVer
forkOptions.jvmArgs!!.addAll(listOf(
"--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED",
"--add-opens=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED"