JvmDefault. Add deprecation warning for '-Xjvm-default=enable|compatibility' options

#KT-46329
This commit is contained in:
Mikhael Bogdanov
2021-12-02 16:01:06 +01:00
committed by Alexander Udalov
parent 42a465efe2
commit 8f60f73207
9 changed files with 42 additions and 1 deletions
@@ -161,6 +161,10 @@ fun Project.configureKotlinCompilationOptions() {
// TODO: fix remaining warnings and remove this property.
val tasksWithWarnings = listOf(
":kotlin-gradle-plugin:compileCommonKotlin",
// Temporarily disable -Werror for the following modules because of deprecation warning for `-Xjvm-default=compatibility`.
// These modules should be removed after they are migrated to `-Xjvm-default=all/all-compatibility`.
":compiler:frontend:compileKotlin",
":kotlin-scripting-intellij:compileKotlin",
)
val projectsWithEnabledContextReceivers: List<String> by rootProject.extra