File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
plugins/package-managers/gradle-plugin Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 1818 */
1919
2020import org.jetbrains.kotlin.gradle.dsl.JvmTarget
21+ import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
2122import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
2223
2324plugins {
@@ -54,6 +55,11 @@ tasks.named<JavaCompile>("compileJava") {
5455tasks.named<KotlinCompile >(" compileKotlin" ) {
5556 compilerOptions {
5657 jvmTarget = gradleToolingApiLowestSupportedJavaVersion
58+
59+ // See https://docs.gradle.org/current/userguide/compatibility.html#kotlin.
60+ freeCompilerArgs = listOf (" -Xsuppress-version-warnings" )
61+ languageVersion = @Suppress(" DEPRECATION" ) KotlinVersion .KOTLIN_1_7
62+ apiVersion = @Suppress(" DEPRECATION" ) KotlinVersion .KOTLIN_1_7
5763 }
5864}
5965
You can’t perform that action at this time.
0 commit comments