From 25b1fbc541b7e157439d5ffa1e38647139a38db1 Mon Sep 17 00:00:00 2001 From: Dmitriy Novozhilov Date: Fri, 17 Feb 2023 10:10:21 +0200 Subject: [PATCH] [Build] Pin api and language level to 1.8 in :pill:pill-importer module ^KT-56687 --- plugins/pill/pill-importer/build.gradle.kts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/plugins/pill/pill-importer/build.gradle.kts b/plugins/pill/pill-importer/build.gradle.kts index 1b9f7452826..b6542cfc5fb 100644 --- a/plugins/pill/pill-importer/build.gradle.kts +++ b/plugins/pill/pill-importer/build.gradle.kts @@ -1,5 +1,7 @@ import java.lang.reflect.Modifier import java.net.URLClassLoader +import org.jetbrains.kotlin.gradle.dsl.KotlinVersion +import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask plugins { kotlin("jvm") @@ -49,3 +51,10 @@ val unpill by tasks.creating { dependsOn(jar) doLast { runPillTask("unpill") } } + +// 1.9 level breaks Kotlin Gradle plugins via changes in enums (KT-48872) +tasks.withType>().configureEach { + compilerOptions.apiVersion.value(KotlinVersion.KOTLIN_1_8).finalizeValueOnRead() + compilerOptions.languageVersion.value(KotlinVersion.KOTLIN_1_8).finalizeValueOnRead() +} +