diff --git a/fleet/andel/BUILD.bazel b/fleet/andel/BUILD.bazel index bad75765c8d1..23aa1d25c454 100644 --- a/fleet/andel/BUILD.bazel +++ b/fleet/andel/BUILD.bazel @@ -4,7 +4,9 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") create_kotlinc_options( name = "custom_andel", - opt_in = ["kotlin.concurrent.atomics.ExperimentalAtomicApi"] + opt_in = ["kotlin.concurrent.atomics.ExperimentalAtomicApi"], + x_consistent_data_class_copy_visibility = True, + x_lambdas = "class" ) jvm_library( diff --git a/fleet/fastutil/BUILD.bazel b/fleet/fastutil/BUILD.bazel index 18facb3c54f1..fb1480d475f8 100644 --- a/fleet/fastutil/BUILD.bazel +++ b/fleet/fastutil/BUILD.bazel @@ -7,7 +7,10 @@ create_kotlinc_options( opt_in = [ "kotlinx.coroutines.ExperimentalCoroutinesApi", "kotlin.ExperimentalStdlibApi", - ] + ], + x_consistent_data_class_copy_visibility = True, + x_jvm_default = "disable", + x_lambdas = "class" ) jvm_library( diff --git a/fleet/kernel/BUILD.bazel b/fleet/kernel/BUILD.bazel index 2f9db462dca7..a9d1201bfe1e 100644 --- a/fleet/kernel/BUILD.bazel +++ b/fleet/kernel/BUILD.bazel @@ -8,7 +8,10 @@ create_kotlinc_options( "kotlinx.coroutines.ExperimentalCoroutinesApi", "kotlin.ExperimentalStdlibApi", "kotlin.concurrent.atomics.ExperimentalAtomicApi", - ] + ], + x_consistent_data_class_copy_visibility = True, + x_jvm_default = "disable", + x_lambdas = "class" ) jvm_library( diff --git a/fleet/lsp.protocol/BUILD.bazel b/fleet/lsp.protocol/BUILD.bazel index af7d47771632..95163124117d 100644 --- a/fleet/lsp.protocol/BUILD.bazel +++ b/fleet/lsp.protocol/BUILD.bazel @@ -4,11 +4,13 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") create_kotlinc_options( name = "custom_lsp.protocol", - context_parameters = True, opt_in = [ "kotlinx.coroutines.ExperimentalCoroutinesApi", "kotlinx.serialization.ExperimentalSerializationApi", - ] + ], + x_consistent_data_class_copy_visibility = True, + x_context_parameters = True, + x_lambdas = "class" ) jvm_library( diff --git a/fleet/multiplatform.shims/BUILD.bazel b/fleet/multiplatform.shims/BUILD.bazel index 335b157bf574..55ff3d7829dd 100644 --- a/fleet/multiplatform.shims/BUILD.bazel +++ b/fleet/multiplatform.shims/BUILD.bazel @@ -1,6 +1,14 @@ ### auto-generated section `build fleet.multiplatform.shims` start +load("//build:compiler-options.bzl", "create_kotlinc_options") load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_provided_library") +create_kotlinc_options( + name = "custom_multiplatform.shims", + x_consistent_data_class_copy_visibility = True, + x_jvm_default = "disable", + x_lambdas = "class" +) + jvm_provided_library( name = "multiplatform_provided", lib = "//fleet/util/multiplatform" @@ -11,6 +19,7 @@ jvm_library( module_name = "fleet.multiplatform.shims", visibility = ["//visibility:public"], srcs = glob(["srcCommonMain/**/*.kt", "srcCommonMain/**/*.java", "srcJvmMain/**/*.kt", "srcJvmMain/**/*.java"], allow_empty = True, exclude = ["**/module-info.java"]), + kotlinc_opts = ":custom_multiplatform.shims", deps = [ "@lib//:kotlin-stdlib", "@lib//:kotlinx-coroutines-core", diff --git a/fleet/reporting/api/BUILD.bazel b/fleet/reporting/api/BUILD.bazel index c007ee153053..dce45f60940e 100644 --- a/fleet/reporting/api/BUILD.bazel +++ b/fleet/reporting/api/BUILD.bazel @@ -1,11 +1,20 @@ ### auto-generated section `build fleet.reporting.api` start +load("//build:compiler-options.bzl", "create_kotlinc_options") load("@rules_jvm//:jvm.bzl", "jvm_library") +create_kotlinc_options( + name = "custom_api", + x_consistent_data_class_copy_visibility = True, + x_jvm_default = "disable", + x_lambdas = "class" +) + jvm_library( name = "api", module_name = "fleet.reporting.api", visibility = ["//visibility:public"], srcs = glob(["srcCommonMain/**/*.kt", "srcCommonMain/**/*.java", "srcJvmMain/**/*.kt", "srcJvmMain/**/*.java"], allow_empty = True, exclude = ["**/module-info.java"]), + kotlinc_opts = ":custom_api", deps = [ "@lib//:kotlin-stdlib", "@lib//:kotlinx-coroutines-core", diff --git a/fleet/reporting/shared/BUILD.bazel b/fleet/reporting/shared/BUILD.bazel index 4d42d44246bc..d28455682a01 100644 --- a/fleet/reporting/shared/BUILD.bazel +++ b/fleet/reporting/shared/BUILD.bazel @@ -4,7 +4,10 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") create_kotlinc_options( name = "custom_shared", - opt_in = ["kotlinx.coroutines.ExperimentalCoroutinesApi"] + opt_in = ["kotlinx.coroutines.ExperimentalCoroutinesApi"], + x_consistent_data_class_copy_visibility = True, + x_jvm_default = "disable", + x_lambdas = "class" ) jvm_library( diff --git a/fleet/rhizomedb/BUILD.bazel b/fleet/rhizomedb/BUILD.bazel index bd90eaa19a0d..eb6792bdf358 100644 --- a/fleet/rhizomedb/BUILD.bazel +++ b/fleet/rhizomedb/BUILD.bazel @@ -4,11 +4,14 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") create_kotlinc_options( name = "custom_rhizomedb", - allow_kotlin_package = True, opt_in = [ "kotlin.ExperimentalStdlibApi", "kotlin.concurrent.atomics.ExperimentalAtomicApi", - ] + ], + x_allow_kotlin_package = True, + x_consistent_data_class_copy_visibility = True, + x_jvm_default = "disable", + x_lambdas = "class" ) jvm_library( diff --git a/fleet/rpc.server/BUILD.bazel b/fleet/rpc.server/BUILD.bazel index 9085a352f0db..eef19e9f0ec6 100644 --- a/fleet/rpc.server/BUILD.bazel +++ b/fleet/rpc.server/BUILD.bazel @@ -1,11 +1,20 @@ ### auto-generated section `build fleet.rpc.server` start +load("//build:compiler-options.bzl", "create_kotlinc_options") load("@rules_jvm//:jvm.bzl", "jvm_library") +create_kotlinc_options( + name = "custom_rpc.server", + x_consistent_data_class_copy_visibility = True, + x_jvm_default = "disable", + x_lambdas = "class" +) + jvm_library( name = "rpc.server", module_name = "fleet.rpc.server", visibility = ["//visibility:public"], srcs = glob(["srcCommonMain/**/*.kt", "srcCommonMain/**/*.java", "srcJvmMain/**/*.kt", "srcJvmMain/**/*.java"], allow_empty = True, exclude = ["**/module-info.java"]), + kotlinc_opts = ":custom_rpc.server", deps = [ "@lib//:kotlin-stdlib", "@lib//:kotlinx-coroutines-core", diff --git a/fleet/rpc/BUILD.bazel b/fleet/rpc/BUILD.bazel index 591071ff69d2..1705d75f494b 100644 --- a/fleet/rpc/BUILD.bazel +++ b/fleet/rpc/BUILD.bazel @@ -8,7 +8,10 @@ create_kotlinc_options( "kotlinx.coroutines.ExperimentalCoroutinesApi", "kotlin.ExperimentalStdlibApi", "kotlin.concurrent.atomics.ExperimentalAtomicApi", - ] + ], + x_consistent_data_class_copy_visibility = True, + x_jvm_default = "disable", + x_lambdas = "class" ) jvm_library( diff --git a/fleet/util/core/BUILD.bazel b/fleet/util/core/BUILD.bazel index 37e467ff7b94..292bf1530411 100644 --- a/fleet/util/core/BUILD.bazel +++ b/fleet/util/core/BUILD.bazel @@ -4,7 +4,9 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_provided_library", "jvm_resourc create_kotlinc_options( name = "custom_core", - opt_in = ["kotlin.concurrent.atomics.ExperimentalAtomicApi"] + opt_in = ["kotlin.concurrent.atomics.ExperimentalAtomicApi"], + x_consistent_data_class_copy_visibility = True, + x_lambdas = "class" ) jvm_resources( diff --git a/fleet/util/logging/api/BUILD.bazel b/fleet/util/logging/api/BUILD.bazel index 6695bac8d08b..9ccb00d3b6de 100644 --- a/fleet/util/logging/api/BUILD.bazel +++ b/fleet/util/logging/api/BUILD.bazel @@ -1,6 +1,14 @@ ### auto-generated section `build fleet.util.logging.api` start +load("//build:compiler-options.bzl", "create_kotlinc_options") load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_provided_library") +create_kotlinc_options( + name = "custom_api", + x_consistent_data_class_copy_visibility = True, + x_jvm_default = "disable", + x_lambdas = "class" +) + jvm_provided_library( name = "multiplatform_provided", lib = "//fleet/util/multiplatform" @@ -11,6 +19,7 @@ jvm_library( module_name = "fleet.util.logging.api", visibility = ["//visibility:public"], srcs = glob(["srcCommonMain/**/*.kt", "srcCommonMain/**/*.java", "srcJvmMain/**/*.kt", "srcJvmMain/**/*.java"], allow_empty = True, exclude = ["**/module-info.java"]), + kotlinc_opts = ":custom_api", deps = [ "@lib//:kotlin-stdlib", "@lib//:kotlinx-coroutines-core", diff --git a/fleet/util/logging/slf4j/BUILD.bazel b/fleet/util/logging/slf4j/BUILD.bazel index ad6e24a33d6e..6f76034fc0ea 100644 --- a/fleet/util/logging/slf4j/BUILD.bazel +++ b/fleet/util/logging/slf4j/BUILD.bazel @@ -1,6 +1,14 @@ ### auto-generated section `build fleet.util.logging.slf4j` start +load("//build:compiler-options.bzl", "create_kotlinc_options") load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") +create_kotlinc_options( + name = "custom_slf4j", + x_consistent_data_class_copy_visibility = True, + x_jvm_default = "disable", + x_lambdas = "class" +) + jvm_resources( name = "slf4j_resources", files = glob(["resources/**/*"]), @@ -18,6 +26,7 @@ jvm_library( module_name = "fleet.util.logging.slf4j", visibility = ["//visibility:public"], srcs = glob(["srcJvmMain/**/*.kt", "srcJvmMain/**/*.java"], allow_empty = True, exclude = ["**/module-info.java"]), + kotlinc_opts = ":custom_slf4j", deps = [ "@lib//:kotlin-stdlib", "@lib//:slf4j-api", diff --git a/fleet/util/multiplatform/BUILD.bazel b/fleet/util/multiplatform/BUILD.bazel index 0245825f00d2..906ab14c4bd4 100644 --- a/fleet/util/multiplatform/BUILD.bazel +++ b/fleet/util/multiplatform/BUILD.bazel @@ -1,11 +1,20 @@ ### auto-generated section `build fleet.util.multiplatform` start +load("//build:compiler-options.bzl", "create_kotlinc_options") load("@rules_jvm//:jvm.bzl", "jvm_library") +create_kotlinc_options( + name = "custom_multiplatform", + x_consistent_data_class_copy_visibility = True, + x_jvm_default = "disable", + x_lambdas = "class" +) + jvm_library( name = "multiplatform", module_name = "fleet.util.multiplatform", visibility = ["//visibility:public"], srcs = glob(["srcCommonMain/**/*.kt", "srcCommonMain/**/*.java"], allow_empty = True, exclude = ["**/module-info.java"]), + kotlinc_opts = ":custom_multiplatform", exported_compiler_plugins = ["@lib//:expects-plugin"], deps = ["@lib//:kotlin-stdlib"] ) diff --git a/java/java-analysis-api/BUILD.bazel b/java/java-analysis-api/BUILD.bazel index 5a7963f3e9b8..c37d8b824e51 100644 --- a/java/java-analysis-api/BUILD.bazel +++ b/java/java-analysis-api/BUILD.bazel @@ -1,6 +1,12 @@ ### auto-generated section `build intellij.java.analysis` start +load("//build:compiler-options.bzl", "create_kotlinc_options") load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") +create_kotlinc_options( + name = "custom_analysis", + x_explicit_api_mode = "strict" +) + jvm_resources( name = "analysis_resources", files = glob(["resources/**/*"]), @@ -12,6 +18,7 @@ jvm_library( module_name = "intellij.java.analysis", visibility = ["//visibility:public"], srcs = glob(["src/**/*.kt", "src/**/*.java"], allow_empty = True), + kotlinc_opts = ":custom_analysis", deps = [ "//platform/analysis-api:analysis", "//java/java-psi-api:psi", diff --git a/java/java-analysis-impl/BUILD.bazel b/java/java-analysis-impl/BUILD.bazel index 4f2689c7e93c..90ec49fb283d 100644 --- a/java/java-analysis-impl/BUILD.bazel +++ b/java/java-analysis-impl/BUILD.bazel @@ -1,6 +1,12 @@ ### auto-generated section `build intellij.java.analysis.impl` start +load("//build:compiler-options.bzl", "create_kotlinc_options") load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") +create_kotlinc_options( + name = "custom_analysis-impl", + x_explicit_api_mode = "strict" +) + jvm_resources( name = "analysis-impl_resources", files = glob(["resources/**/*"]), @@ -12,6 +18,7 @@ jvm_library( module_name = "intellij.java.analysis.impl", visibility = ["//visibility:public"], srcs = glob(["src/**/*.kt", "src/**/*.java"], allow_empty = True), + kotlinc_opts = ":custom_analysis-impl", deps = [ "//java/java-indexing-api:indexing", "//platform/analysis-api:analysis", diff --git a/java/java-impl/BUILD.bazel b/java/java-impl/BUILD.bazel index 312fdc8626b6..f26f4b7f8387 100644 --- a/java/java-impl/BUILD.bazel +++ b/java/java-impl/BUILD.bazel @@ -1,6 +1,12 @@ ### auto-generated section `build intellij.java.impl` start +load("//build:compiler-options.bzl", "create_kotlinc_options") load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") +create_kotlinc_options( + name = "custom_impl", + x_explicit_api_mode = "strict" +) + jvm_resources( name = "impl_resources", files = glob(["resources/**/*"]), @@ -12,6 +18,7 @@ jvm_library( module_name = "intellij.java.impl", visibility = ["//visibility:public"], srcs = glob(["src/**/*.kt", "src/**/*.java", "src/**/*.form", "gen/**/*.kt", "gen/**/*.java"], allow_empty = True), + kotlinc_opts = ":custom_impl", deps = [ "//platform/analysis-api:analysis", "//platform/code-style-api:codeStyle", diff --git a/java/java-syntax/BUILD.bazel b/java/java-syntax/BUILD.bazel index 0dc009083fe5..700fcec110e6 100644 --- a/java/java-syntax/BUILD.bazel +++ b/java/java-syntax/BUILD.bazel @@ -4,11 +4,13 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_syntax", - jvm_target = 8, + jvm_target = "8", opt_in = [ "org.jetbrains.kotlin.utils.addToStdlib.UnsafeCastFunction", "org.jetbrains.kotlin.analysis.api.KaIdeApi", - ] + ], + x_no_call_assertions = True, + x_no_param_assertions = True ) jvm_resources( diff --git a/platform/backend/workspace/BUILD.bazel b/platform/backend/workspace/BUILD.bazel index 79ae88a88709..7a1f9c1757c5 100644 --- a/platform/backend/workspace/BUILD.bazel +++ b/platform/backend/workspace/BUILD.bazel @@ -4,7 +4,8 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") create_kotlinc_options( name = "custom_workspace", - opt_in = ["org.jetbrains.kotlin.utils.addToStdlib.UnsafeCastFunction"] + opt_in = ["org.jetbrains.kotlin.utils.addToStdlib.UnsafeCastFunction"], + x_explicit_api_mode = "strict" ) jvm_library( diff --git a/platform/jewel/decorated-window/BUILD.bazel b/platform/jewel/decorated-window/BUILD.bazel index 6c05aa85172e..74b229aca971 100644 --- a/platform/jewel/decorated-window/BUILD.bazel +++ b/platform/jewel/decorated-window/BUILD.bazel @@ -4,13 +4,14 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_decorated-window", - context_receivers = True, opt_in = [ "androidx.compose.ui.ExperimentalComposeUiApi", "androidx.compose.foundation.ExperimentalFoundationApi", "org.jetbrains.jewel.foundation.ExperimentalJewelApi", "org.jetbrains.jewel.foundation.InternalJewelApi", - ] + ], + x_context_receivers = True, + x_explicit_api_mode = "strict" ) jvm_resources( diff --git a/platform/jewel/foundation/BUILD.bazel b/platform/jewel/foundation/BUILD.bazel index 230a12127c28..9ae92cdc0582 100644 --- a/platform/jewel/foundation/BUILD.bazel +++ b/platform/jewel/foundation/BUILD.bazel @@ -4,13 +4,14 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_foundation", - context_receivers = True, opt_in = [ "androidx.compose.ui.ExperimentalComposeUiApi", "androidx.compose.foundation.ExperimentalFoundationApi", "org.jetbrains.jewel.foundation.ExperimentalJewelApi", "org.jetbrains.jewel.foundation.InternalJewelApi", - ] + ], + x_context_receivers = True, + x_explicit_api_mode = "strict" ) jvm_resources( diff --git a/platform/jewel/ide-laf-bridge/BUILD.bazel b/platform/jewel/ide-laf-bridge/BUILD.bazel index bc604585af4d..095b76f4f6c7 100644 --- a/platform/jewel/ide-laf-bridge/BUILD.bazel +++ b/platform/jewel/ide-laf-bridge/BUILD.bazel @@ -4,13 +4,14 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_ide-laf-bridge", - context_receivers = True, opt_in = [ "androidx.compose.ui.ExperimentalComposeUiApi", "androidx.compose.foundation.ExperimentalFoundationApi", "org.jetbrains.jewel.foundation.ExperimentalJewelApi", "org.jetbrains.jewel.foundation.InternalJewelApi", - ] + ], + x_context_receivers = True, + x_explicit_api_mode = "strict" ) jvm_resources( diff --git a/platform/jewel/int-ui/int-ui-decorated-window/BUILD.bazel b/platform/jewel/int-ui/int-ui-decorated-window/BUILD.bazel index 9e5a5ec26ca2..30409a06b9aa 100644 --- a/platform/jewel/int-ui/int-ui-decorated-window/BUILD.bazel +++ b/platform/jewel/int-ui/int-ui-decorated-window/BUILD.bazel @@ -4,13 +4,14 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_jewel-intUi-decoratedWindow", - context_receivers = True, opt_in = [ "androidx.compose.ui.ExperimentalComposeUiApi", "androidx.compose.foundation.ExperimentalFoundationApi", "org.jetbrains.jewel.foundation.ExperimentalJewelApi", "org.jetbrains.jewel.foundation.InternalJewelApi", - ] + ], + x_context_receivers = True, + x_explicit_api_mode = "strict" ) jvm_resources( diff --git a/platform/jewel/int-ui/int-ui-standalone/BUILD.bazel b/platform/jewel/int-ui/int-ui-standalone/BUILD.bazel index 8f8d684854f2..e5184db233cc 100644 --- a/platform/jewel/int-ui/int-ui-standalone/BUILD.bazel +++ b/platform/jewel/int-ui/int-ui-standalone/BUILD.bazel @@ -4,13 +4,14 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_jewel-intUi-standalone", - context_receivers = True, opt_in = [ "androidx.compose.ui.ExperimentalComposeUiApi", "androidx.compose.foundation.ExperimentalFoundationApi", "org.jetbrains.jewel.foundation.ExperimentalJewelApi", "org.jetbrains.jewel.foundation.InternalJewelApi", - ] + ], + x_context_receivers = True, + x_explicit_api_mode = "strict" ) jvm_resources( diff --git a/platform/jewel/markdown/core/BUILD.bazel b/platform/jewel/markdown/core/BUILD.bazel index 15120b92eec3..3babbaf4c5d2 100644 --- a/platform/jewel/markdown/core/BUILD.bazel +++ b/platform/jewel/markdown/core/BUILD.bazel @@ -4,13 +4,14 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_core", - context_receivers = True, opt_in = [ "androidx.compose.ui.ExperimentalComposeUiApi", "androidx.compose.foundation.ExperimentalFoundationApi", "org.jetbrains.jewel.foundation.ExperimentalJewelApi", "org.jetbrains.jewel.foundation.InternalJewelApi", - ] + ], + x_context_receivers = True, + x_explicit_api_mode = "strict" ) jvm_resources( diff --git a/platform/jewel/markdown/extensions/autolink/BUILD.bazel b/platform/jewel/markdown/extensions/autolink/BUILD.bazel index db6586eab0e5..837c4ba14c7f 100644 --- a/platform/jewel/markdown/extensions/autolink/BUILD.bazel +++ b/platform/jewel/markdown/extensions/autolink/BUILD.bazel @@ -4,13 +4,14 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_autolink", - context_receivers = True, opt_in = [ "androidx.compose.ui.ExperimentalComposeUiApi", "androidx.compose.foundation.ExperimentalFoundationApi", "org.jetbrains.jewel.foundation.ExperimentalJewelApi", "org.jetbrains.jewel.foundation.InternalJewelApi", - ] + ], + x_context_receivers = True, + x_explicit_api_mode = "strict" ) jvm_resources( diff --git a/platform/jewel/markdown/extensions/gfm-alerts/BUILD.bazel b/platform/jewel/markdown/extensions/gfm-alerts/BUILD.bazel index 0e04e71c3623..0fc8b56984ea 100644 --- a/platform/jewel/markdown/extensions/gfm-alerts/BUILD.bazel +++ b/platform/jewel/markdown/extensions/gfm-alerts/BUILD.bazel @@ -4,13 +4,14 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_gfm-alerts", - context_receivers = True, opt_in = [ "androidx.compose.ui.ExperimentalComposeUiApi", "androidx.compose.foundation.ExperimentalFoundationApi", "org.jetbrains.jewel.foundation.ExperimentalJewelApi", "org.jetbrains.jewel.foundation.InternalJewelApi", - ] + ], + x_context_receivers = True, + x_explicit_api_mode = "strict" ) jvm_resources( diff --git a/platform/jewel/markdown/extensions/gfm-strikethrough/BUILD.bazel b/platform/jewel/markdown/extensions/gfm-strikethrough/BUILD.bazel index 666553889c72..936f119ea816 100644 --- a/platform/jewel/markdown/extensions/gfm-strikethrough/BUILD.bazel +++ b/platform/jewel/markdown/extensions/gfm-strikethrough/BUILD.bazel @@ -4,13 +4,14 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_gfm-strikethrough", - context_receivers = True, opt_in = [ "androidx.compose.ui.ExperimentalComposeUiApi", "androidx.compose.foundation.ExperimentalFoundationApi", "org.jetbrains.jewel.foundation.ExperimentalJewelApi", "org.jetbrains.jewel.foundation.InternalJewelApi", - ] + ], + x_context_receivers = True, + x_explicit_api_mode = "strict" ) jvm_resources( diff --git a/platform/jewel/markdown/extensions/gfm-tables/BUILD.bazel b/platform/jewel/markdown/extensions/gfm-tables/BUILD.bazel index 543a1dd4bb29..1a44008129a0 100644 --- a/platform/jewel/markdown/extensions/gfm-tables/BUILD.bazel +++ b/platform/jewel/markdown/extensions/gfm-tables/BUILD.bazel @@ -4,13 +4,14 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_gfm-tables", - context_receivers = True, opt_in = [ "androidx.compose.ui.ExperimentalComposeUiApi", "androidx.compose.foundation.ExperimentalFoundationApi", "org.jetbrains.jewel.foundation.ExperimentalJewelApi", "org.jetbrains.jewel.foundation.InternalJewelApi", - ] + ], + x_context_receivers = True, + x_explicit_api_mode = "strict" ) jvm_resources( diff --git a/platform/jewel/markdown/extensions/images/BUILD.bazel b/platform/jewel/markdown/extensions/images/BUILD.bazel index 451eeef54d04..3773d28adaab 100644 --- a/platform/jewel/markdown/extensions/images/BUILD.bazel +++ b/platform/jewel/markdown/extensions/images/BUILD.bazel @@ -4,13 +4,14 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_images", - context_receivers = True, opt_in = [ "androidx.compose.ui.ExperimentalComposeUiApi", "androidx.compose.foundation.ExperimentalFoundationApi", "org.jetbrains.jewel.foundation.ExperimentalJewelApi", "org.jetbrains.jewel.foundation.InternalJewelApi", - ] + ], + x_context_receivers = True, + x_explicit_api_mode = "strict" ) jvm_resources( diff --git a/platform/jewel/markdown/ide-laf-bridge-styling/BUILD.bazel b/platform/jewel/markdown/ide-laf-bridge-styling/BUILD.bazel index 540680c2165b..30d194fd55c0 100644 --- a/platform/jewel/markdown/ide-laf-bridge-styling/BUILD.bazel +++ b/platform/jewel/markdown/ide-laf-bridge-styling/BUILD.bazel @@ -4,13 +4,14 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_ide-laf-bridge-styling", - context_receivers = True, opt_in = [ "androidx.compose.ui.ExperimentalComposeUiApi", "androidx.compose.foundation.ExperimentalFoundationApi", "org.jetbrains.jewel.foundation.ExperimentalJewelApi", "org.jetbrains.jewel.foundation.InternalJewelApi", - ] + ], + x_context_receivers = True, + x_explicit_api_mode = "strict" ) jvm_resources( diff --git a/platform/jewel/markdown/int-ui-standalone-styling/BUILD.bazel b/platform/jewel/markdown/int-ui-standalone-styling/BUILD.bazel index 11123dae7ab3..87e8f20658ab 100644 --- a/platform/jewel/markdown/int-ui-standalone-styling/BUILD.bazel +++ b/platform/jewel/markdown/int-ui-standalone-styling/BUILD.bazel @@ -4,13 +4,14 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_int-ui-standalone-styling", - context_receivers = True, opt_in = [ "androidx.compose.ui.ExperimentalComposeUiApi", "androidx.compose.foundation.ExperimentalFoundationApi", "org.jetbrains.jewel.foundation.ExperimentalJewelApi", "org.jetbrains.jewel.foundation.InternalJewelApi", - ] + ], + x_context_receivers = True, + x_explicit_api_mode = "strict" ) jvm_resources( diff --git a/platform/jewel/samples/ide-plugin/BUILD.bazel b/platform/jewel/samples/ide-plugin/BUILD.bazel index 29ed276d06cf..2468bad995bd 100644 --- a/platform/jewel/samples/ide-plugin/BUILD.bazel +++ b/platform/jewel/samples/ide-plugin/BUILD.bazel @@ -4,13 +4,13 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_ide-plugin", - context_receivers = True, opt_in = [ "androidx.compose.ui.ExperimentalComposeUiApi", "androidx.compose.foundation.ExperimentalFoundationApi", "org.jetbrains.jewel.foundation.ExperimentalJewelApi", "org.jetbrains.jewel.foundation.InternalJewelApi", - ] + ], + x_context_receivers = True ) jvm_resources( diff --git a/platform/jewel/samples/showcase/BUILD.bazel b/platform/jewel/samples/showcase/BUILD.bazel index c5fb6dcc883d..7de7db73bb35 100644 --- a/platform/jewel/samples/showcase/BUILD.bazel +++ b/platform/jewel/samples/showcase/BUILD.bazel @@ -4,13 +4,14 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_showcase", - context_receivers = True, opt_in = [ "androidx.compose.ui.ExperimentalComposeUiApi", "androidx.compose.foundation.ExperimentalFoundationApi", "org.jetbrains.jewel.foundation.ExperimentalJewelApi", "org.jetbrains.jewel.foundation.InternalJewelApi", - ] + ], + x_context_receivers = True, + x_explicit_api_mode = "strict" ) jvm_resources( diff --git a/platform/jewel/samples/standalone/BUILD.bazel b/platform/jewel/samples/standalone/BUILD.bazel index a27389467ad1..0077c1a988ae 100644 --- a/platform/jewel/samples/standalone/BUILD.bazel +++ b/platform/jewel/samples/standalone/BUILD.bazel @@ -4,13 +4,14 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_standalone", - context_receivers = True, opt_in = [ "androidx.compose.ui.ExperimentalComposeUiApi", "androidx.compose.foundation.ExperimentalFoundationApi", "org.jetbrains.jewel.foundation.ExperimentalJewelApi", "org.jetbrains.jewel.foundation.InternalJewelApi", - ] + ], + x_context_receivers = True, + x_explicit_api_mode = "strict" ) jvm_resources( diff --git a/platform/jewel/ui-tests/BUILD.bazel b/platform/jewel/ui-tests/BUILD.bazel index 8f5fc0539521..fd4fd083fd2b 100644 --- a/platform/jewel/ui-tests/BUILD.bazel +++ b/platform/jewel/ui-tests/BUILD.bazel @@ -4,13 +4,13 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_ui-tests", - context_receivers = True, opt_in = [ "androidx.compose.ui.ExperimentalComposeUiApi", "androidx.compose.foundation.ExperimentalFoundationApi", "org.jetbrains.jewel.foundation.ExperimentalJewelApi", "org.jetbrains.jewel.foundation.InternalJewelApi", - ] + ], + x_context_receivers = True ) jvm_resources( diff --git a/platform/jewel/ui/BUILD.bazel b/platform/jewel/ui/BUILD.bazel index 61ec06101f02..e7c137fed74f 100644 --- a/platform/jewel/ui/BUILD.bazel +++ b/platform/jewel/ui/BUILD.bazel @@ -4,13 +4,14 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_ui", - context_receivers = True, opt_in = [ "androidx.compose.ui.ExperimentalComposeUiApi", "androidx.compose.foundation.ExperimentalFoundationApi", "org.jetbrains.jewel.foundation.ExperimentalJewelApi", "org.jetbrains.jewel.foundation.InternalJewelApi", - ] + ], + x_context_receivers = True, + x_explicit_api_mode = "strict" ) jvm_resources( diff --git a/platform/runtime/product/BUILD.bazel b/platform/runtime/product/BUILD.bazel index da70f0e3a764..936bc8147379 100644 --- a/platform/runtime/product/BUILD.bazel +++ b/platform/runtime/product/BUILD.bazel @@ -4,7 +4,7 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") create_kotlinc_options( name = "custom_product", - jvm_target = 11, + jvm_target = "11", opt_in = ["org.jetbrains.kotlin.utils.addToStdlib.UnsafeCastFunction"] ) diff --git a/platform/syntax/syntax-api/BUILD.bazel b/platform/syntax/syntax-api/BUILD.bazel index 894172309ae6..71901ab44865 100644 --- a/platform/syntax/syntax-api/BUILD.bazel +++ b/platform/syntax/syntax-api/BUILD.bazel @@ -1,6 +1,14 @@ ### auto-generated section `build intellij.platform.syntax` start +load("//build:compiler-options.bzl", "create_kotlinc_options") load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_provided_library") +create_kotlinc_options( + name = "custom_syntax", + jvm_target = "8", + x_no_call_assertions = True, + x_no_param_assertions = True +) + jvm_provided_library( name = "multiplatformSupport_provided", lib = "//platform/syntax/syntax-multiplatformSupport:multiplatformSupport" @@ -11,7 +19,7 @@ jvm_library( module_name = "intellij.platform.syntax", visibility = ["//visibility:public"], srcs = glob(["src/**/*.kt", "src/**/*.java", "srcJvm/**/*.kt", "srcJvm/**/*.java"], allow_empty = True), - kotlinc_opts = "@community//:k8", + kotlinc_opts = ":custom_syntax", deps = [ "@lib//:kotlin-stdlib", "@lib//:jetbrains-annotations", @@ -24,7 +32,7 @@ jvm_library( name = "syntax_test_lib", visibility = ["//visibility:public"], srcs = glob(["testJvm/**/*.kt", "testJvm/**/*.java"], allow_empty = True), - kotlinc_opts = "@community//:k8", + kotlinc_opts = ":custom_syntax", associates = [":syntax"], deps = [ "@lib//:kotlin-stdlib", diff --git a/platform/syntax/syntax-extensions/BUILD.bazel b/platform/syntax/syntax-extensions/BUILD.bazel index b51adcc1c0cf..54c8838bee00 100644 --- a/platform/syntax/syntax-extensions/BUILD.bazel +++ b/platform/syntax/syntax-extensions/BUILD.bazel @@ -1,6 +1,14 @@ ### auto-generated section `build intellij.platform.syntax.extensions` start +load("//build:compiler-options.bzl", "create_kotlinc_options") load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_provided_library") +create_kotlinc_options( + name = "custom_extensions", + jvm_target = "8", + x_no_call_assertions = True, + x_no_param_assertions = True +) + jvm_provided_library( name = "multiplatformSupport_provided", lib = "//platform/syntax/syntax-multiplatformSupport:multiplatformSupport" @@ -11,7 +19,7 @@ jvm_library( module_name = "intellij.platform.syntax.extensions", visibility = ["//visibility:public"], srcs = glob(["src/**/*.kt", "src/**/*.java", "srcJvmMain/**/*.kt", "srcJvmMain/**/*.java"], allow_empty = True), - kotlinc_opts = "@community//:k8", + kotlinc_opts = ":custom_extensions", deps = [ "@lib//:kotlin-stdlib", "@lib//:jetbrains-annotations", @@ -24,7 +32,7 @@ jvm_library( name = "extensions_test_lib", visibility = ["//visibility:public"], srcs = glob(["testJvm/**/*.kt", "testJvm/**/*.java"], allow_empty = True), - kotlinc_opts = "@community//:k8", + kotlinc_opts = ":custom_extensions", associates = [":extensions"], deps = [ "@lib//:kotlin-stdlib", diff --git a/platform/syntax/syntax-i18n/BUILD.bazel b/platform/syntax/syntax-i18n/BUILD.bazel index c8d6787ff730..eddff7ce5229 100644 --- a/platform/syntax/syntax-i18n/BUILD.bazel +++ b/platform/syntax/syntax-i18n/BUILD.bazel @@ -1,6 +1,14 @@ ### auto-generated section `build intellij.platform.syntax.i18n` start +load("//build:compiler-options.bzl", "create_kotlinc_options") load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_provided_library") +create_kotlinc_options( + name = "custom_i18n", + jvm_target = "8", + x_no_call_assertions = True, + x_no_param_assertions = True +) + jvm_provided_library( name = "multiplatformSupport_provided", lib = "//platform/syntax/syntax-multiplatformSupport:multiplatformSupport" @@ -11,7 +19,7 @@ jvm_library( module_name = "intellij.platform.syntax.i18n", visibility = ["//visibility:public"], srcs = glob(["src/**/*.kt", "src/**/*.java", "srcJvmMain/**/*.kt", "srcJvmMain/**/*.java"], allow_empty = True), - kotlinc_opts = "@community//:k8", + kotlinc_opts = ":custom_i18n", deps = [ "@lib//:kotlin-stdlib", "@lib//:jetbrains-annotations", @@ -23,7 +31,7 @@ jvm_library( name = "i18n_test_lib", visibility = ["//visibility:public"], srcs = glob(["testJvm/**/*.kt", "testJvm/**/*.java"], allow_empty = True), - kotlinc_opts = "@community//:k8", + kotlinc_opts = ":custom_i18n", associates = [":i18n"], deps = [ "@lib//:kotlin-stdlib", diff --git a/platform/syntax/syntax-psi/BUILD.bazel b/platform/syntax/syntax-psi/BUILD.bazel index b7a69096836c..64185bf3b37c 100644 --- a/platform/syntax/syntax-psi/BUILD.bazel +++ b/platform/syntax/syntax-psi/BUILD.bazel @@ -1,6 +1,14 @@ ### auto-generated section `build intellij.platform.syntax.psi` start +load("//build:compiler-options.bzl", "create_kotlinc_options") load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") +create_kotlinc_options( + name = "custom_psi", + jvm_target = "8", + x_no_call_assertions = True, + x_no_param_assertions = True +) + jvm_resources( name = "psi_resources", files = glob(["resources/**/*"]), @@ -12,7 +20,7 @@ jvm_library( module_name = "intellij.platform.syntax.psi", visibility = ["//visibility:public"], srcs = glob(["src/**/*.kt", "src/**/*.java"], allow_empty = True), - kotlinc_opts = "@community//:k8", + kotlinc_opts = ":custom_psi", deps = [ "//platform/util", "//platform/util-rt", diff --git a/platform/syntax/syntax-util/BUILD.bazel b/platform/syntax/syntax-util/BUILD.bazel index c48f365e8427..e956a16242ed 100644 --- a/platform/syntax/syntax-util/BUILD.bazel +++ b/platform/syntax/syntax-util/BUILD.bazel @@ -1,6 +1,14 @@ ### auto-generated section `build intellij.platform.syntax.util` start +load("//build:compiler-options.bzl", "create_kotlinc_options") load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") +create_kotlinc_options( + name = "custom_util", + jvm_target = "8", + x_no_call_assertions = True, + x_no_param_assertions = True +) + jvm_resources( name = "util_resources", files = glob(["resources/**/*"]), @@ -12,7 +20,7 @@ jvm_library( module_name = "intellij.platform.syntax.util", visibility = ["//visibility:public"], srcs = glob(["src/**/*.kt", "src/**/*.java"], allow_empty = True), - kotlinc_opts = "@community//:k8", + kotlinc_opts = ":custom_util", deps = [ "@lib//:kotlin-stdlib", "//platform/syntax/syntax-api:syntax", diff --git a/platform/util/progress/BUILD.bazel b/platform/util/progress/BUILD.bazel index d7d3b37237a3..3050d5076396 100644 --- a/platform/util/progress/BUILD.bazel +++ b/platform/util/progress/BUILD.bazel @@ -4,7 +4,7 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") create_kotlinc_options( name = "custom_progress", - jvm_target = 8, + jvm_target = "8", opt_in = ["org.jetbrains.kotlin.utils.addToStdlib.UnsafeCastFunction"] ) diff --git a/platform/workspace/jps/BUILD.bazel b/platform/workspace/jps/BUILD.bazel index c533150168db..3b2879b01554 100644 --- a/platform/workspace/jps/BUILD.bazel +++ b/platform/workspace/jps/BUILD.bazel @@ -4,7 +4,7 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_jps", - jvm_target = 11, + jvm_target = "11", opt_in = ["org.jetbrains.kotlin.utils.addToStdlib.UnsafeCastFunction"] ) diff --git a/platform/workspace/storage/BUILD.bazel b/platform/workspace/storage/BUILD.bazel index 8ceeae69462a..520936f75c11 100644 --- a/platform/workspace/storage/BUILD.bazel +++ b/platform/workspace/storage/BUILD.bazel @@ -4,11 +4,12 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_storage", - jvm_target = 11, + jvm_target = "11", opt_in = [ "com.intellij.platform.workspace.storage.WorkspaceEntityInternalApi", "com.intellij.platform.workspace.storage.instrumentation.EntityStorageInstrumentationApi", - ] + ], + x_explicit_api_mode = "strict" ) jvm_resources( diff --git a/plugins/ByteCodeViewer/BUILD.bazel b/plugins/ByteCodeViewer/BUILD.bazel index c716d9abe2b7..b78e11c6ff75 100644 --- a/plugins/ByteCodeViewer/BUILD.bazel +++ b/plugins/ByteCodeViewer/BUILD.bazel @@ -1,6 +1,12 @@ ### auto-generated section `build intellij.java.byteCodeViewer` start +load("//build:compiler-options.bzl", "create_kotlinc_options") load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") +create_kotlinc_options( + name = "custom_java-byteCodeViewer", + x_explicit_api_mode = "strict" +) + jvm_resources( name = "java-byteCodeViewer_resources", files = glob(["resources/**/*"]), @@ -12,6 +18,7 @@ jvm_library( module_name = "intellij.java.byteCodeViewer", visibility = ["//visibility:public"], srcs = glob(["src/**/*.kt", "src/**/*.java"], allow_empty = True), + kotlinc_opts = ":custom_java-byteCodeViewer", deps = [ "@lib//:asm", "//platform/analysis-api:analysis", @@ -37,6 +44,7 @@ jvm_library( name = "java-byteCodeViewer_test_lib", visibility = ["//visibility:public"], srcs = glob(["test/**/*.kt", "test/**/*.java"], allow_empty = True), + kotlinc_opts = ":custom_java-byteCodeViewer", associates = [":java-byteCodeViewer"], deps = [ "@lib//:asm", diff --git a/plugins/compose/intellij.compose.ide.plugin.gradleTooling/BUILD.bazel b/plugins/compose/intellij.compose.ide.plugin.gradleTooling/BUILD.bazel index 755ac2e318a5..8b3740764f24 100644 --- a/plugins/compose/intellij.compose.ide.plugin.gradleTooling/BUILD.bazel +++ b/plugins/compose/intellij.compose.ide.plugin.gradleTooling/BUILD.bazel @@ -1,6 +1,13 @@ ### auto-generated section `build intellij.compose.ide.plugin.gradleTooling.rt` start +load("//build:compiler-options.bzl", "create_kotlinc_options") load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") +create_kotlinc_options( + name = "custom_ide-plugin-gradleTooling-rt", + jvm_target = "8", + x_sam_conversions = "class" +) + jvm_resources( name = "ide-plugin-gradleTooling-rt_resources", files = glob(["resources/**/*"]), @@ -12,7 +19,7 @@ jvm_library( module_name = "intellij.compose.ide.plugin.gradleTooling.rt", visibility = ["//visibility:public"], srcs = glob(["src/**/*.kt", "src/**/*.java"], allow_empty = True), - kotlinc_opts = "@community//:k8", + kotlinc_opts = ":custom_ide-plugin-gradleTooling-rt", deps = [ "@lib//:kotlin-stdlib", "//plugins/gradle/tooling-extension-api:toolingExtension", diff --git a/plugins/compose/intellij.compose.ide.plugin.k1/BUILD.bazel b/plugins/compose/intellij.compose.ide.plugin.k1/BUILD.bazel index be1ce4142c23..55a389f7c7d0 100644 --- a/plugins/compose/intellij.compose.ide.plugin.k1/BUILD.bazel +++ b/plugins/compose/intellij.compose.ide.plugin.k1/BUILD.bazel @@ -4,7 +4,7 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_ide-plugin-k1", - context_receivers = True + x_context_receivers = True ) jvm_resources( diff --git a/plugins/compose/intellij.compose.ide.plugin.k2/BUILD.bazel b/plugins/compose/intellij.compose.ide.plugin.k2/BUILD.bazel index 3cee09627fa2..60a7a2044346 100644 --- a/plugins/compose/intellij.compose.ide.plugin.k2/BUILD.bazel +++ b/plugins/compose/intellij.compose.ide.plugin.k2/BUILD.bazel @@ -4,7 +4,7 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_ide-plugin-k2", - context_receivers = True + x_context_receivers = True ) jvm_resources( @@ -43,7 +43,7 @@ jvm_library( ### auto-generated section `build intellij.compose.ide.plugin.k2.tests` start create_kotlinc_options( name = "custom_ide-plugin-k2-tests", - context_receivers = True + x_context_receivers = True ) jvm_library( diff --git a/plugins/compose/intellij.compose.ide.plugin.shared/BUILD.bazel b/plugins/compose/intellij.compose.ide.plugin.shared/BUILD.bazel index 872c2c879e69..67aafb9d1c9a 100644 --- a/plugins/compose/intellij.compose.ide.plugin.shared/BUILD.bazel +++ b/plugins/compose/intellij.compose.ide.plugin.shared/BUILD.bazel @@ -4,7 +4,7 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_ide-plugin-shared", - context_receivers = True + x_context_receivers = True ) jvm_resources( diff --git a/plugins/devkit/intellij.kotlin.devkit/BUILD.bazel b/plugins/devkit/intellij.kotlin.devkit/BUILD.bazel index 48f35aaa9df3..f019692a7785 100644 --- a/plugins/devkit/intellij.kotlin.devkit/BUILD.bazel +++ b/plugins/devkit/intellij.kotlin.devkit/BUILD.bazel @@ -4,11 +4,11 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_kotlin-devkit", - context_receivers = True, opt_in = [ "org.jetbrains.kotlin.utils.addToStdlib.UnsafeCastFunction", "org.jetbrains.kotlin.analysis.api.permissions.KaAllowProhibitedAnalyzeFromWriteAction", - ] + ], + x_context_receivers = True ) jvm_resources( diff --git a/plugins/devkit/runtimeModuleRepository/jps/BUILD.bazel b/plugins/devkit/runtimeModuleRepository/jps/BUILD.bazel index b44a0fab7816..14fd828c7a35 100644 --- a/plugins/devkit/runtimeModuleRepository/jps/BUILD.bazel +++ b/plugins/devkit/runtimeModuleRepository/jps/BUILD.bazel @@ -4,7 +4,7 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_jps", - jvm_target = 11, + jvm_target = "11", opt_in = ["org.jetbrains.kotlin.utils.addToStdlib.UnsafeCastFunction"] ) diff --git a/plugins/gradle/native/tooling/BUILD.bazel b/plugins/gradle/native/tooling/BUILD.bazel index 00e19944a9a4..2b5581b3ce8f 100644 --- a/plugins/gradle/native/tooling/BUILD.bazel +++ b/plugins/gradle/native/tooling/BUILD.bazel @@ -4,7 +4,7 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_tooling", - jvm_target = 8, + jvm_target = "8", opt_in = ["org.jetbrains.kotlin.utils.addToStdlib.UnsafeCastFunction"] ) diff --git a/plugins/gradle/tooling-extension-impl/BUILD.bazel b/plugins/gradle/tooling-extension-impl/BUILD.bazel index 1967dbd4fb27..aaee7482e6e2 100644 --- a/plugins/gradle/tooling-extension-impl/BUILD.bazel +++ b/plugins/gradle/tooling-extension-impl/BUILD.bazel @@ -4,7 +4,7 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_toolingExtension-impl", - jvm_target = 8, + jvm_target = "8", opt_in = ["org.jetbrains.kotlin.utils.addToStdlib.UnsafeCastFunction"] ) diff --git a/plugins/kotlin/base/analysis-api/analysis-api-k2-tests/BUILD.bazel b/plugins/kotlin/base/analysis-api/analysis-api-k2-tests/BUILD.bazel index c680729e6914..e5769fa1c6a5 100644 --- a/plugins/kotlin/base/analysis-api/analysis-api-k2-tests/BUILD.bazel +++ b/plugins/kotlin/base/analysis-api/analysis-api-k2-tests/BUILD.bazel @@ -4,7 +4,7 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") create_kotlinc_options( name = "custom_kotlin-base-analysis-analysis-api-k2-tests", - context_receivers = True + x_context_receivers = True ) jvm_library( diff --git a/plugins/kotlin/base/analysis-api/analysis-api-utils/BUILD.bazel b/plugins/kotlin/base/analysis-api/analysis-api-utils/BUILD.bazel index de02269b2410..a8a683244856 100644 --- a/plugins/kotlin/base/analysis-api/analysis-api-utils/BUILD.bazel +++ b/plugins/kotlin/base/analysis-api/analysis-api-utils/BUILD.bazel @@ -4,11 +4,11 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") create_kotlinc_options( name = "custom_kotlin-base-analysis-api-utils", - context_receivers = True, opt_in = [ "org.jetbrains.kotlin.analysis.api.permissions.KaAllowProhibitedAnalyzeFromWriteAction", "org.jetbrains.kotlin.analysis.api.KaIdeApi", - ] + ], + x_context_receivers = True ) jvm_library( diff --git a/plugins/kotlin/base/analysis/BUILD.bazel b/plugins/kotlin/base/analysis/BUILD.bazel index 7b40bd1c7c53..6af6289dd947 100644 --- a/plugins/kotlin/base/analysis/BUILD.bazel +++ b/plugins/kotlin/base/analysis/BUILD.bazel @@ -4,11 +4,11 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_analysis", - context_receivers = True, opt_in = [ "org.jetbrains.kotlin.utils.addToStdlib.UnsafeCastFunction", "org.jetbrains.kotlin.analysis.api.KaIdeApi", - ] + ], + x_context_receivers = True ) jvm_resources( diff --git a/plugins/kotlin/base/code-insight/BUILD.bazel b/plugins/kotlin/base/code-insight/BUILD.bazel index 9d200d0f5dc7..c8b80c1fe6f1 100644 --- a/plugins/kotlin/base/code-insight/BUILD.bazel +++ b/plugins/kotlin/base/code-insight/BUILD.bazel @@ -4,12 +4,12 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_code-insight", - context_receivers = True, opt_in = [ "org.jetbrains.kotlin.utils.addToStdlib.UnsafeCastFunction", "org.jetbrains.kotlin.analysis.api.KaIdeApi", "org.jetbrains.kotlin.analysis.api.permissions.KaAllowProhibitedAnalyzeFromWriteAction", - ] + ], + x_context_receivers = True ) jvm_resources( diff --git a/plugins/kotlin/base/fe10/project-structure/BUILD.bazel b/plugins/kotlin/base/fe10/project-structure/BUILD.bazel index 219713190758..0d9577d92b6c 100644 --- a/plugins/kotlin/base/fe10/project-structure/BUILD.bazel +++ b/plugins/kotlin/base/fe10/project-structure/BUILD.bazel @@ -4,8 +4,8 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_project-structure", - context_receivers = True, - opt_in = ["org.jetbrains.kotlin.idea.base.util.K1ModeProjectStructureApi"] + opt_in = ["org.jetbrains.kotlin.idea.base.util.K1ModeProjectStructureApi"], + x_context_receivers = True ) jvm_resources( diff --git a/plugins/kotlin/base/fir/analysis-api-platform/BUILD.bazel b/plugins/kotlin/base/fir/analysis-api-platform/BUILD.bazel index 89aa47b8e713..0fe49eeb8e7f 100644 --- a/plugins/kotlin/base/fir/analysis-api-platform/BUILD.bazel +++ b/plugins/kotlin/base/fir/analysis-api-platform/BUILD.bazel @@ -4,11 +4,11 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_analysis-api-platform", - context_receivers = True, opt_in = [ "org.jetbrains.kotlin.analysis.api.permissions.KaAllowProhibitedAnalyzeFromWriteAction", "org.jetbrains.kotlin.analysis.api.KaPlatformInterface", - ] + ], + x_context_receivers = True ) jvm_resources( diff --git a/plugins/kotlin/base/fir/code-insight/BUILD.bazel b/plugins/kotlin/base/fir/code-insight/BUILD.bazel index 545ebb8187d3..8be1ed7c37b8 100644 --- a/plugins/kotlin/base/fir/code-insight/BUILD.bazel +++ b/plugins/kotlin/base/fir/code-insight/BUILD.bazel @@ -4,13 +4,13 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_code-insight", - context_receivers = True, opt_in = [ "org.jetbrains.kotlin.utils.addToStdlib.UnsafeCastFunction", "org.jetbrains.kotlin.analysis.api.permissions.KaAllowProhibitedAnalyzeFromWriteAction", "org.jetbrains.kotlin.analysis.api.KaIdeApi", "org.jetbrains.kotlin.analysis.api.KaNonPublicApi", - ] + ], + x_context_receivers = True ) jvm_resources( diff --git a/plugins/kotlin/base/fir/project-structure/BUILD.bazel b/plugins/kotlin/base/fir/project-structure/BUILD.bazel index 637489e4df65..57266dabe6db 100644 --- a/plugins/kotlin/base/fir/project-structure/BUILD.bazel +++ b/plugins/kotlin/base/fir/project-structure/BUILD.bazel @@ -4,12 +4,12 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_project-structure", - context_receivers = True, opt_in = [ "org.jetbrains.kotlin.analysis.api.KaPlatformInterface", "org.jetbrains.kotlin.analysis.api.KaExperimentalApi", "org.jetbrains.kotlin.analysis.api.KaImplementationDetail", - ] + ], + x_context_receivers = True ) jvm_resources( diff --git a/plugins/kotlin/base/kotlin.base.serialization/BUILD.bazel b/plugins/kotlin/base/kotlin.base.serialization/BUILD.bazel index 3faef4001213..aed487ba357a 100644 --- a/plugins/kotlin/base/kotlin.base.serialization/BUILD.bazel +++ b/plugins/kotlin/base/kotlin.base.serialization/BUILD.bazel @@ -4,11 +4,11 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") create_kotlinc_options( name = "custom_kotlin-base-serialization", - context_receivers = True, opt_in = [ "org.jetbrains.kotlin.analysis.api.permissions.KaAllowProhibitedAnalyzeFromWriteAction", "org.jetbrains.kotlin.analysis.api.KaIdeApi", - ] + ], + x_context_receivers = True ) jvm_library( diff --git a/plugins/kotlin/base/resources/BUILD.bazel b/plugins/kotlin/base/resources/BUILD.bazel index d6ec2b3602d6..97b1320cd961 100644 --- a/plugins/kotlin/base/resources/BUILD.bazel +++ b/plugins/kotlin/base/resources/BUILD.bazel @@ -4,8 +4,8 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_kotlin-base-resources", - context_receivers = True, - opt_in = ["org.jetbrains.kotlin.utils.addToStdlib.UnsafeCastFunction"] + opt_in = ["org.jetbrains.kotlin.utils.addToStdlib.UnsafeCastFunction"], + x_context_receivers = True ) jvm_resources( diff --git a/plugins/kotlin/code-insight/api/BUILD.bazel b/plugins/kotlin/code-insight/api/BUILD.bazel index e061a1b358ee..def56e251f77 100644 --- a/plugins/kotlin/code-insight/api/BUILD.bazel +++ b/plugins/kotlin/code-insight/api/BUILD.bazel @@ -4,11 +4,11 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") create_kotlinc_options( name = "custom_api", - context_receivers = True, opt_in = [ "org.jetbrains.kotlin.utils.addToStdlib.UnsafeCastFunction", "org.jetbrains.kotlin.analysis.api.permissions.KaAllowProhibitedAnalyzeFromWriteAction", - ] + ], + x_context_receivers = True ) jvm_library( diff --git a/plugins/kotlin/code-insight/fixes-k2/BUILD.bazel b/plugins/kotlin/code-insight/fixes-k2/BUILD.bazel index 6b23485d6dd8..218e6911f393 100644 --- a/plugins/kotlin/code-insight/fixes-k2/BUILD.bazel +++ b/plugins/kotlin/code-insight/fixes-k2/BUILD.bazel @@ -4,12 +4,12 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_kotlin-code-insight-fixes-k2", - context_receivers = True, opt_in = [ "org.jetbrains.kotlin.utils.addToStdlib.UnsafeCastFunction", "org.jetbrains.kotlin.analysis.api.KaIdeApi", "org.jetbrains.kotlin.analysis.api.permissions.KaAllowProhibitedAnalyzeFromWriteAction", - ] + ], + x_context_receivers = True ) jvm_resources( diff --git a/plugins/kotlin/code-insight/impl-base/BUILD.bazel b/plugins/kotlin/code-insight/impl-base/BUILD.bazel index b0df865e36e3..ce824457692a 100644 --- a/plugins/kotlin/code-insight/impl-base/BUILD.bazel +++ b/plugins/kotlin/code-insight/impl-base/BUILD.bazel @@ -4,12 +4,12 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_impl-base", - context_receivers = True, opt_in = [ "org.jetbrains.kotlin.utils.addToStdlib.UnsafeCastFunction", "org.jetbrains.kotlin.analysis.api.permissions.KaAllowProhibitedAnalyzeFromWriteAction", "org.jetbrains.kotlin.analysis.api.KaIdeApi", - ] + ], + x_context_receivers = True ) jvm_resources( diff --git a/plugins/kotlin/code-insight/inspections-k2/BUILD.bazel b/plugins/kotlin/code-insight/inspections-k2/BUILD.bazel index 766c3410cc41..acbbc8fcb858 100644 --- a/plugins/kotlin/code-insight/inspections-k2/BUILD.bazel +++ b/plugins/kotlin/code-insight/inspections-k2/BUILD.bazel @@ -4,12 +4,12 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_kotlin-code-insight-inspections-k2", - context_receivers = True, opt_in = [ "org.jetbrains.kotlin.analysis.api.permissions.KaAllowProhibitedAnalyzeFromWriteAction", "org.jetbrains.kotlin.utils.addToStdlib.UnsafeCastFunction", "org.jetbrains.kotlin.analysis.api.KaIdeApi", - ] + ], + x_context_receivers = True ) jvm_resources( diff --git a/plugins/kotlin/code-insight/inspections-shared/BUILD.bazel b/plugins/kotlin/code-insight/inspections-shared/BUILD.bazel index 220d9cf9034f..e68d925bda47 100644 --- a/plugins/kotlin/code-insight/inspections-shared/BUILD.bazel +++ b/plugins/kotlin/code-insight/inspections-shared/BUILD.bazel @@ -4,12 +4,12 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_kotlin-code-insight-inspections-shared", - context_receivers = True, opt_in = [ "org.jetbrains.kotlin.utils.addToStdlib.UnsafeCastFunction", "org.jetbrains.kotlin.analysis.api.KaIdeApi", "org.jetbrains.kotlin.analysis.api.permissions.KaAllowProhibitedAnalyzeFromWriteAction", - ] + ], + x_context_receivers = True ) jvm_resources( diff --git a/plugins/kotlin/code-insight/intentions-k2/BUILD.bazel b/plugins/kotlin/code-insight/intentions-k2/BUILD.bazel index 59a69f3024fe..f2c6d34db923 100644 --- a/plugins/kotlin/code-insight/intentions-k2/BUILD.bazel +++ b/plugins/kotlin/code-insight/intentions-k2/BUILD.bazel @@ -4,12 +4,12 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_kotlin-code-insight-intentions-k2", - context_receivers = True, opt_in = [ "org.jetbrains.kotlin.analysis.api.permissions.KaAllowProhibitedAnalyzeFromWriteAction", "org.jetbrains.kotlin.utils.addToStdlib.UnsafeCastFunction", "org.jetbrains.kotlin.analysis.api.KaIdeApi", - ] + ], + x_context_receivers = True ) jvm_resources( diff --git a/plugins/kotlin/code-insight/intentions-shared/BUILD.bazel b/plugins/kotlin/code-insight/intentions-shared/BUILD.bazel index 1b966530953f..6bb07355bcc6 100644 --- a/plugins/kotlin/code-insight/intentions-shared/BUILD.bazel +++ b/plugins/kotlin/code-insight/intentions-shared/BUILD.bazel @@ -4,8 +4,8 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_kotlin-code-insight-intentions-shared", - context_receivers = True, - opt_in = ["org.jetbrains.kotlin.utils.addToStdlib.UnsafeCastFunction"] + opt_in = ["org.jetbrains.kotlin.utils.addToStdlib.UnsafeCastFunction"], + x_context_receivers = True ) jvm_resources( diff --git a/plugins/kotlin/code-insight/kotlin.code-insight.k2/BUILD.bazel b/plugins/kotlin/code-insight/kotlin.code-insight.k2/BUILD.bazel index f1c257794a7b..d1d2c49c74c6 100644 --- a/plugins/kotlin/code-insight/kotlin.code-insight.k2/BUILD.bazel +++ b/plugins/kotlin/code-insight/kotlin.code-insight.k2/BUILD.bazel @@ -4,11 +4,11 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_kotlin-code-insight-k2", - context_receivers = True, opt_in = [ "org.jetbrains.kotlin.analysis.api.permissions.KaAllowProhibitedAnalyzeFromWriteAction", "org.jetbrains.kotlin.analysis.api.KaIdeApi", - ] + ], + x_context_receivers = True ) jvm_resources( diff --git a/plugins/kotlin/code-insight/line-markers/BUILD.bazel b/plugins/kotlin/code-insight/line-markers/BUILD.bazel index b00bca2a2916..68c3f3ef945c 100644 --- a/plugins/kotlin/code-insight/line-markers/BUILD.bazel +++ b/plugins/kotlin/code-insight/line-markers/BUILD.bazel @@ -4,8 +4,8 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_kotlin-code-insight-line-markers-k2", - context_receivers = True, - opt_in = ["org.jetbrains.kotlin.utils.addToStdlib.UnsafeCastFunction"] + opt_in = ["org.jetbrains.kotlin.utils.addToStdlib.UnsafeCastFunction"], + x_context_receivers = True ) jvm_resources( diff --git a/plugins/kotlin/code-insight/live-templates-k2/BUILD.bazel b/plugins/kotlin/code-insight/live-templates-k2/BUILD.bazel index b97cb4ec4f5e..1f347d214b2b 100644 --- a/plugins/kotlin/code-insight/live-templates-k2/BUILD.bazel +++ b/plugins/kotlin/code-insight/live-templates-k2/BUILD.bazel @@ -4,8 +4,8 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_kotlin-code-insight-live-templates-k2", - context_receivers = True, - opt_in = ["org.jetbrains.kotlin.analysis.api.permissions.KaAllowProhibitedAnalyzeFromWriteAction"] + opt_in = ["org.jetbrains.kotlin.analysis.api.permissions.KaAllowProhibitedAnalyzeFromWriteAction"], + x_context_receivers = True ) jvm_resources( diff --git a/plugins/kotlin/code-insight/live-templates-shared/BUILD.bazel b/plugins/kotlin/code-insight/live-templates-shared/BUILD.bazel index 9274a63de1d5..ec512e9b5f7b 100644 --- a/plugins/kotlin/code-insight/live-templates-shared/BUILD.bazel +++ b/plugins/kotlin/code-insight/live-templates-shared/BUILD.bazel @@ -4,11 +4,11 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_kotlin-code-insight-live-templates-shared", - context_receivers = True, opt_in = [ "org.jetbrains.kotlin.utils.addToStdlib.UnsafeCastFunction", "org.jetbrains.kotlin.analysis.api.permissions.KaAllowProhibitedAnalyzeFromWriteAction", - ] + ], + x_context_receivers = True ) jvm_resources( diff --git a/plugins/kotlin/code-insight/override-implement-k2/BUILD.bazel b/plugins/kotlin/code-insight/override-implement-k2/BUILD.bazel index b500867ad6c5..f4c34a419dac 100644 --- a/plugins/kotlin/code-insight/override-implement-k2/BUILD.bazel +++ b/plugins/kotlin/code-insight/override-implement-k2/BUILD.bazel @@ -4,11 +4,11 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") create_kotlinc_options( name = "custom_kotlin-code-insight-override-implement-k2", - context_receivers = True, opt_in = [ "org.jetbrains.kotlin.analysis.api.permissions.KaAllowProhibitedAnalyzeFromWriteAction", "org.jetbrains.kotlin.analysis.api.KaIdeApi", - ] + ], + x_context_receivers = True ) jvm_library( diff --git a/plugins/kotlin/code-insight/postfix-templates/BUILD.bazel b/plugins/kotlin/code-insight/postfix-templates/BUILD.bazel index f639ee9a1b5e..17d72c8eba72 100644 --- a/plugins/kotlin/code-insight/postfix-templates/BUILD.bazel +++ b/plugins/kotlin/code-insight/postfix-templates/BUILD.bazel @@ -4,8 +4,8 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_kotlin-code-insight-postfix-templates-k2", - context_receivers = True, - opt_in = ["org.jetbrains.kotlin.analysis.api.permissions.KaAllowProhibitedAnalyzeFromWriteAction"] + opt_in = ["org.jetbrains.kotlin.analysis.api.permissions.KaAllowProhibitedAnalyzeFromWriteAction"], + x_context_receivers = True ) jvm_resources( diff --git a/plugins/kotlin/code-insight/structural-search-k2/BUILD.bazel b/plugins/kotlin/code-insight/structural-search-k2/BUILD.bazel index 1b764263a391..e28746d22751 100644 --- a/plugins/kotlin/code-insight/structural-search-k2/BUILD.bazel +++ b/plugins/kotlin/code-insight/structural-search-k2/BUILD.bazel @@ -4,8 +4,8 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_kotlin-code-insight-structural-search-k2", - context_receivers = True, - opt_in = ["org.jetbrains.kotlin.analysis.api.KaIdeApi"] + opt_in = ["org.jetbrains.kotlin.analysis.api.KaIdeApi"], + x_context_receivers = True ) jvm_resources( diff --git a/plugins/kotlin/code-insight/utils/BUILD.bazel b/plugins/kotlin/code-insight/utils/BUILD.bazel index 69e32633b2ce..3f1568117d87 100644 --- a/plugins/kotlin/code-insight/utils/BUILD.bazel +++ b/plugins/kotlin/code-insight/utils/BUILD.bazel @@ -4,8 +4,8 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") create_kotlinc_options( name = "custom_utils", - context_receivers = True, - opt_in = ["org.jetbrains.kotlin.analysis.api.permissions.KaAllowProhibitedAnalyzeFromWriteAction"] + opt_in = ["org.jetbrains.kotlin.analysis.api.permissions.KaAllowProhibitedAnalyzeFromWriteAction"], + x_context_receivers = True ) jvm_library( diff --git a/plugins/kotlin/compiler-plugins/assignment/common/BUILD.bazel b/plugins/kotlin/compiler-plugins/assignment/common/BUILD.bazel index 6fff2e2d267b..3940389386c3 100644 --- a/plugins/kotlin/compiler-plugins/assignment/common/BUILD.bazel +++ b/plugins/kotlin/compiler-plugins/assignment/common/BUILD.bazel @@ -4,7 +4,7 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_kotlin-compiler-plugins-assignment-common-k2", - context_receivers = True + x_context_receivers = True ) jvm_resources( diff --git a/plugins/kotlin/compiler-plugins/kotlinx-serialization/k2/BUILD.bazel b/plugins/kotlin/compiler-plugins/kotlinx-serialization/k2/BUILD.bazel index 943bbdc7db49..0b0739c0fcb6 100644 --- a/plugins/kotlin/compiler-plugins/kotlinx-serialization/k2/BUILD.bazel +++ b/plugins/kotlin/compiler-plugins/kotlinx-serialization/k2/BUILD.bazel @@ -4,7 +4,7 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_k2", - context_receivers = True + x_context_receivers = True ) jvm_resources( diff --git a/plugins/kotlin/compiler-plugins/parcelize/common/BUILD.bazel b/plugins/kotlin/compiler-plugins/parcelize/common/BUILD.bazel index 6280e82d28f3..20ebca92a878 100644 --- a/plugins/kotlin/compiler-plugins/parcelize/common/BUILD.bazel +++ b/plugins/kotlin/compiler-plugins/parcelize/common/BUILD.bazel @@ -4,7 +4,7 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_common", - context_receivers = True + x_context_receivers = True ) jvm_resources( diff --git a/plugins/kotlin/compiler-plugins/parcelize/k1/BUILD.bazel b/plugins/kotlin/compiler-plugins/parcelize/k1/BUILD.bazel index 9d7050aa1824..e686fbcae1ea 100644 --- a/plugins/kotlin/compiler-plugins/parcelize/k1/BUILD.bazel +++ b/plugins/kotlin/compiler-plugins/parcelize/k1/BUILD.bazel @@ -4,8 +4,8 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_k1", - context_receivers = True, - opt_in = ["org.jetbrains.kotlin.idea.base.util.K1ModeProjectStructureApi"] + opt_in = ["org.jetbrains.kotlin.idea.base.util.K1ModeProjectStructureApi"], + x_context_receivers = True ) jvm_resources( diff --git a/plugins/kotlin/compiler-plugins/parcelize/k2/BUILD.bazel b/plugins/kotlin/compiler-plugins/parcelize/k2/BUILD.bazel index d2dc9779ebb5..125a4ba71d01 100644 --- a/plugins/kotlin/compiler-plugins/parcelize/k2/BUILD.bazel +++ b/plugins/kotlin/compiler-plugins/parcelize/k2/BUILD.bazel @@ -4,7 +4,7 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_k2", - context_receivers = True + x_context_receivers = True ) jvm_resources( diff --git a/plugins/kotlin/completion/api/BUILD.bazel b/plugins/kotlin/completion/api/BUILD.bazel index 76ca3deca594..9fb3a21bc97d 100644 --- a/plugins/kotlin/completion/api/BUILD.bazel +++ b/plugins/kotlin/completion/api/BUILD.bazel @@ -4,11 +4,11 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") create_kotlinc_options( name = "custom_api", - context_receivers = True, opt_in = [ "org.jetbrains.kotlin.analysis.api.permissions.KaAllowProhibitedAnalyzeFromWriteAction", "org.jetbrains.kotlin.analysis.api.KaIdeApi", - ] + ], + x_context_receivers = True ) jvm_library( diff --git a/plugins/kotlin/completion/impl-k1/BUILD.bazel b/plugins/kotlin/completion/impl-k1/BUILD.bazel index 09477fb0423d..1f2b3ea6188f 100644 --- a/plugins/kotlin/completion/impl-k1/BUILD.bazel +++ b/plugins/kotlin/completion/impl-k1/BUILD.bazel @@ -4,11 +4,11 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") create_kotlinc_options( name = "custom_kotlin-completion-impl-k1", - context_receivers = True, opt_in = [ "org.jetbrains.kotlin.utils.addToStdlib.UnsafeCastFunction", "org.jetbrains.kotlin.idea.base.util.K1ModeProjectStructureApi", - ] + ], + x_context_receivers = True ) jvm_library( diff --git a/plugins/kotlin/completion/impl-k2/BUILD.bazel b/plugins/kotlin/completion/impl-k2/BUILD.bazel index f5def0f2fd7b..fea1da02c201 100644 --- a/plugins/kotlin/completion/impl-k2/BUILD.bazel +++ b/plugins/kotlin/completion/impl-k2/BUILD.bazel @@ -4,11 +4,11 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_kotlin-completion-impl-k2", - context_receivers = True, opt_in = [ "org.jetbrains.kotlin.analysis.api.permissions.KaAllowProhibitedAnalyzeFromWriteAction", "org.jetbrains.kotlin.analysis.api.KaIdeApi", - ] + ], + x_context_receivers = True ) jvm_resources( diff --git a/plugins/kotlin/completion/impl-shared/BUILD.bazel b/plugins/kotlin/completion/impl-shared/BUILD.bazel index 7ea55dea1d21..7389e6cb3631 100644 --- a/plugins/kotlin/completion/impl-shared/BUILD.bazel +++ b/plugins/kotlin/completion/impl-shared/BUILD.bazel @@ -4,8 +4,8 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") create_kotlinc_options( name = "custom_kotlin-completion-impl-shared", - context_receivers = True, - opt_in = ["org.jetbrains.kotlin.utils.addToStdlib.UnsafeCastFunction"] + opt_in = ["org.jetbrains.kotlin.utils.addToStdlib.UnsafeCastFunction"], + x_context_receivers = True ) jvm_library( diff --git a/plugins/kotlin/fir/BUILD.bazel b/plugins/kotlin/fir/BUILD.bazel index 53a7a1a51325..bfb9edae4afc 100644 --- a/plugins/kotlin/fir/BUILD.bazel +++ b/plugins/kotlin/fir/BUILD.bazel @@ -4,11 +4,11 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") create_kotlinc_options( name = "custom_fir", - context_receivers = True, opt_in = [ "org.jetbrains.kotlin.utils.addToStdlib.UnsafeCastFunction", "org.jetbrains.kotlin.analysis.api.KaPlatformInterface", - ] + ], + x_context_receivers = True ) jvm_library( diff --git a/plugins/kotlin/fir/tests/BUILD.bazel b/plugins/kotlin/fir/tests/BUILD.bazel index ade038e4345e..718db239c39b 100644 --- a/plugins/kotlin/fir/tests/BUILD.bazel +++ b/plugins/kotlin/fir/tests/BUILD.bazel @@ -4,12 +4,12 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") create_kotlinc_options( name = "custom_tests", - context_receivers = True, opt_in = [ "org.jetbrains.kotlin.utils.addToStdlib.UnsafeCastFunction", "org.jetbrains.kotlin.analysis.api.KaIdeApi", "org.jetbrains.kotlin.analysis.api.permissions.KaAllowProhibitedAnalyzeFromWriteAction", - ] + ], + x_context_receivers = True ) jvm_library( diff --git a/plugins/kotlin/gradle/scripting/kotlin.gradle.scripting.k2/BUILD.bazel b/plugins/kotlin/gradle/scripting/kotlin.gradle.scripting.k2/BUILD.bazel index d48794f7906f..6810b34410d8 100644 --- a/plugins/kotlin/gradle/scripting/kotlin.gradle.scripting.k2/BUILD.bazel +++ b/plugins/kotlin/gradle/scripting/kotlin.gradle.scripting.k2/BUILD.bazel @@ -4,11 +4,11 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_kotlin-gradle-scripting-k2", - context_receivers = True, opt_in = [ "org.jetbrains.kotlin.analysis.api.permissions.KaAllowProhibitedAnalyzeFromWriteAction", "org.jetbrains.kotlin.analysis.api.KaIdeApi", - ] + ], + x_context_receivers = True ) jvm_resources( diff --git a/plugins/kotlin/highlighting/highlighting-k2/BUILD.bazel b/plugins/kotlin/highlighting/highlighting-k2/BUILD.bazel index 60ffdc781185..1d4f097961e8 100644 --- a/plugins/kotlin/highlighting/highlighting-k2/BUILD.bazel +++ b/plugins/kotlin/highlighting/highlighting-k2/BUILD.bazel @@ -4,11 +4,11 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_kotlin-highlighting-k2", - context_receivers = True, opt_in = [ "org.jetbrains.kotlin.analysis.api.KaIdeApi", "org.jetbrains.kotlin.analysis.api.KaNonPublicApi", - ] + ], + x_context_receivers = True ) jvm_resources( diff --git a/plugins/kotlin/idea/BUILD.bazel b/plugins/kotlin/idea/BUILD.bazel index 16c90e50557c..5679d30b93a2 100644 --- a/plugins/kotlin/idea/BUILD.bazel +++ b/plugins/kotlin/idea/BUILD.bazel @@ -4,12 +4,12 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_idea", - context_receivers = True, opt_in = [ "org.jetbrains.kotlin.utils.addToStdlib.UnsafeCastFunction", "org.jetbrains.kotlin.analysis.api.permissions.KaAllowProhibitedAnalyzeFromWriteAction", "org.jetbrains.kotlin.idea.base.util.K1ModeProjectStructureApi", - ] + ], + x_context_receivers = True ) jvm_resources( diff --git a/plugins/kotlin/injection/base/BUILD.bazel b/plugins/kotlin/injection/base/BUILD.bazel index f9d30473e02d..288cf7bb9334 100644 --- a/plugins/kotlin/injection/base/BUILD.bazel +++ b/plugins/kotlin/injection/base/BUILD.bazel @@ -4,8 +4,8 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_provided_library", "jvm_resourc create_kotlinc_options( name = "custom_kotlin-base-injection", - context_receivers = True, - opt_in = ["org.jetbrains.kotlin.analysis.api.permissions.KaAllowProhibitedAnalyzeFromWriteAction"] + opt_in = ["org.jetbrains.kotlin.analysis.api.permissions.KaAllowProhibitedAnalyzeFromWriteAction"], + x_context_receivers = True ) jvm_resources( diff --git a/plugins/kotlin/injection/base/tests/BUILD.bazel b/plugins/kotlin/injection/base/tests/BUILD.bazel index 2128b4b813a7..f1683603f2da 100644 --- a/plugins/kotlin/injection/base/tests/BUILD.bazel +++ b/plugins/kotlin/injection/base/tests/BUILD.bazel @@ -4,7 +4,7 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") create_kotlinc_options( name = "custom_tests", - context_receivers = True + x_context_receivers = True ) jvm_library( diff --git a/plugins/kotlin/injection/k1/BUILD.bazel b/plugins/kotlin/injection/k1/BUILD.bazel index 3e692702a0ae..a57640140b50 100644 --- a/plugins/kotlin/injection/k1/BUILD.bazel +++ b/plugins/kotlin/injection/k1/BUILD.bazel @@ -4,7 +4,7 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_k1", - context_receivers = True + x_context_receivers = True ) jvm_resources( diff --git a/plugins/kotlin/injection/k1/tests/BUILD.bazel b/plugins/kotlin/injection/k1/tests/BUILD.bazel index 0c74b170de42..0f3400ce644d 100644 --- a/plugins/kotlin/injection/k1/tests/BUILD.bazel +++ b/plugins/kotlin/injection/k1/tests/BUILD.bazel @@ -4,7 +4,7 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") create_kotlinc_options( name = "custom_tests", - context_receivers = True + x_context_receivers = True ) jvm_library( diff --git a/plugins/kotlin/injection/k2/BUILD.bazel b/plugins/kotlin/injection/k2/BUILD.bazel index 25ccc9261bc3..8c2fb6b1ded1 100644 --- a/plugins/kotlin/injection/k2/BUILD.bazel +++ b/plugins/kotlin/injection/k2/BUILD.bazel @@ -4,8 +4,8 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_k2", - context_receivers = True, - opt_in = ["org.jetbrains.kotlin.analysis.api.permissions.KaAllowProhibitedAnalyzeFromWriteAction"] + opt_in = ["org.jetbrains.kotlin.analysis.api.permissions.KaAllowProhibitedAnalyzeFromWriteAction"], + x_context_receivers = True ) jvm_resources( diff --git a/plugins/kotlin/injection/k2/tests/BUILD.bazel b/plugins/kotlin/injection/k2/tests/BUILD.bazel index 3d4c129cdf2a..cbcd311e08fc 100644 --- a/plugins/kotlin/injection/k2/tests/BUILD.bazel +++ b/plugins/kotlin/injection/k2/tests/BUILD.bazel @@ -4,7 +4,7 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") create_kotlinc_options( name = "custom_tests", - context_receivers = True + x_context_receivers = True ) jvm_library( diff --git a/plugins/kotlin/j2k/k1.new.post-processing/BUILD.bazel b/plugins/kotlin/j2k/k1.new.post-processing/BUILD.bazel index ab228edba3d8..9bea961fe9a0 100644 --- a/plugins/kotlin/j2k/k1.new.post-processing/BUILD.bazel +++ b/plugins/kotlin/j2k/k1.new.post-processing/BUILD.bazel @@ -4,11 +4,11 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_k1.new.post-processing", - context_receivers = True, opt_in = [ "org.jetbrains.kotlin.utils.addToStdlib.UnsafeCastFunction", "org.jetbrains.kotlin.analysis.api.permissions.KaAllowProhibitedAnalyzeFromWriteAction", - ] + ], + x_context_receivers = True ) jvm_resources( diff --git a/plugins/kotlin/j2k/k1.new/BUILD.bazel b/plugins/kotlin/j2k/k1.new/BUILD.bazel index 32ef2b7b657e..2f1159d1161b 100644 --- a/plugins/kotlin/j2k/k1.new/BUILD.bazel +++ b/plugins/kotlin/j2k/k1.new/BUILD.bazel @@ -4,8 +4,8 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") create_kotlinc_options( name = "custom_k1.new", - context_receivers = True, - opt_in = ["org.jetbrains.kotlin.utils.addToStdlib.UnsafeCastFunction"] + opt_in = ["org.jetbrains.kotlin.utils.addToStdlib.UnsafeCastFunction"], + x_context_receivers = True ) jvm_library( diff --git a/plugins/kotlin/j2k/k1.new/tests/BUILD.bazel b/plugins/kotlin/j2k/k1.new/tests/BUILD.bazel index c09aa227479e..2b535d546776 100644 --- a/plugins/kotlin/j2k/k1.new/tests/BUILD.bazel +++ b/plugins/kotlin/j2k/k1.new/tests/BUILD.bazel @@ -4,7 +4,7 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") create_kotlinc_options( name = "custom_tests", - context_receivers = True + x_context_receivers = True ) jvm_library( diff --git a/plugins/kotlin/j2k/k1.old.post-processing/BUILD.bazel b/plugins/kotlin/j2k/k1.old.post-processing/BUILD.bazel index aa960e77a8c7..6e2ee9dc250d 100644 --- a/plugins/kotlin/j2k/k1.old.post-processing/BUILD.bazel +++ b/plugins/kotlin/j2k/k1.old.post-processing/BUILD.bazel @@ -4,12 +4,12 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_k1.old.post-processing", - context_receivers = True, opt_in = [ "org.jetbrains.kotlin.utils.addToStdlib.UnsafeCastFunction", "org.jetbrains.kotlin.analysis.api.KaIdeApi", "org.jetbrains.kotlin.analysis.api.KaNonPublicApi", - ] + ], + x_context_receivers = True ) jvm_resources( diff --git a/plugins/kotlin/j2k/k1.old/BUILD.bazel b/plugins/kotlin/j2k/k1.old/BUILD.bazel index af5e7165adbf..4db158ab77ca 100644 --- a/plugins/kotlin/j2k/k1.old/BUILD.bazel +++ b/plugins/kotlin/j2k/k1.old/BUILD.bazel @@ -4,7 +4,7 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_k1.old", - context_receivers = True + x_context_receivers = True ) jvm_resources( diff --git a/plugins/kotlin/j2k/k2/BUILD.bazel b/plugins/kotlin/j2k/k2/BUILD.bazel index a155646d8cd2..2d25343cdc35 100644 --- a/plugins/kotlin/j2k/k2/BUILD.bazel +++ b/plugins/kotlin/j2k/k2/BUILD.bazel @@ -4,11 +4,11 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_k2", - context_receivers = True, opt_in = [ "org.jetbrains.kotlin.utils.addToStdlib.UnsafeCastFunction", "org.jetbrains.kotlin.analysis.api.KaIdeApi", - ] + ], + x_context_receivers = True ) jvm_resources( diff --git a/plugins/kotlin/j2k/k2/tests/BUILD.bazel b/plugins/kotlin/j2k/k2/tests/BUILD.bazel index 76a3131a73b4..056583a579b6 100644 --- a/plugins/kotlin/j2k/k2/tests/BUILD.bazel +++ b/plugins/kotlin/j2k/k2/tests/BUILD.bazel @@ -4,8 +4,8 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") create_kotlinc_options( name = "custom_tests", - context_receivers = True, - opt_in = ["org.jetbrains.kotlin.utils.addToStdlib.UnsafeCastFunction"] + opt_in = ["org.jetbrains.kotlin.utils.addToStdlib.UnsafeCastFunction"], + x_context_receivers = True ) jvm_library( diff --git a/plugins/kotlin/j2k/shared/BUILD.bazel b/plugins/kotlin/j2k/shared/BUILD.bazel index 995f917cd093..aa44f249f303 100644 --- a/plugins/kotlin/j2k/shared/BUILD.bazel +++ b/plugins/kotlin/j2k/shared/BUILD.bazel @@ -4,11 +4,11 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_shared", - context_receivers = True, opt_in = [ "org.jetbrains.kotlin.utils.addToStdlib.UnsafeCastFunction", "org.jetbrains.kotlin.analysis.api.KaIdeApi", - ] + ], + x_context_receivers = True ) jvm_resources( diff --git a/plugins/kotlin/j2k/shared/tests/BUILD.bazel b/plugins/kotlin/j2k/shared/tests/BUILD.bazel index e982473bdbab..65c712b69caa 100644 --- a/plugins/kotlin/j2k/shared/tests/BUILD.bazel +++ b/plugins/kotlin/j2k/shared/tests/BUILD.bazel @@ -4,7 +4,7 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") create_kotlinc_options( name = "custom_tests", - context_receivers = True + x_context_receivers = True ) jvm_library( diff --git a/plugins/kotlin/jvm-debugger/core-fe10/BUILD.bazel b/plugins/kotlin/jvm-debugger/core-fe10/BUILD.bazel index 630a86b08ce0..6133dfa62916 100644 --- a/plugins/kotlin/jvm-debugger/core-fe10/BUILD.bazel +++ b/plugins/kotlin/jvm-debugger/core-fe10/BUILD.bazel @@ -4,8 +4,8 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") create_kotlinc_options( name = "custom_core-fe10", - context_receivers = True, - opt_in = ["org.jetbrains.kotlin.utils.addToStdlib.UnsafeCastFunction"] + opt_in = ["org.jetbrains.kotlin.utils.addToStdlib.UnsafeCastFunction"], + x_context_receivers = True ) jvm_library( diff --git a/plugins/kotlin/jvm-debugger/core/BUILD.bazel b/plugins/kotlin/jvm-debugger/core/BUILD.bazel index 026faac63331..8d46c0b1f192 100644 --- a/plugins/kotlin/jvm-debugger/core/BUILD.bazel +++ b/plugins/kotlin/jvm-debugger/core/BUILD.bazel @@ -4,8 +4,8 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_core", - context_receivers = True, - opt_in = ["org.jetbrains.kotlin.utils.addToStdlib.UnsafeCastFunction"] + opt_in = ["org.jetbrains.kotlin.utils.addToStdlib.UnsafeCastFunction"], + x_context_receivers = True ) jvm_resources( diff --git a/plugins/kotlin/jvm-debugger/coroutines/BUILD.bazel b/plugins/kotlin/jvm-debugger/coroutines/BUILD.bazel index 02f768bc3065..99872b8ee877 100644 --- a/plugins/kotlin/jvm-debugger/coroutines/BUILD.bazel +++ b/plugins/kotlin/jvm-debugger/coroutines/BUILD.bazel @@ -4,8 +4,8 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_coroutines", - context_receivers = True, - opt_in = ["org.jetbrains.kotlin.utils.addToStdlib.UnsafeCastFunction"] + opt_in = ["org.jetbrains.kotlin.utils.addToStdlib.UnsafeCastFunction"], + x_context_receivers = True ) jvm_resources( diff --git a/plugins/kotlin/kotlin.searching/BUILD.bazel b/plugins/kotlin/kotlin.searching/BUILD.bazel index 0e952963638a..12995091e070 100644 --- a/plugins/kotlin/kotlin.searching/BUILD.bazel +++ b/plugins/kotlin/kotlin.searching/BUILD.bazel @@ -4,8 +4,8 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_searching-k2", - context_receivers = True, - opt_in = ["org.jetbrains.kotlin.analysis.api.KaIdeApi"] + opt_in = ["org.jetbrains.kotlin.analysis.api.KaIdeApi"], + x_context_receivers = True ) jvm_resources( diff --git a/plugins/kotlin/refactorings/kotlin.refactorings.common/BUILD.bazel b/plugins/kotlin/refactorings/kotlin.refactorings.common/BUILD.bazel index 0cca36a10fe5..d4e8d40a041f 100644 --- a/plugins/kotlin/refactorings/kotlin.refactorings.common/BUILD.bazel +++ b/plugins/kotlin/refactorings/kotlin.refactorings.common/BUILD.bazel @@ -4,11 +4,11 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") create_kotlinc_options( name = "custom_kotlin-refactorings-common", - context_receivers = True, opt_in = [ "org.jetbrains.kotlin.utils.addToStdlib.UnsafeCastFunction", "org.jetbrains.kotlin.analysis.api.permissions.KaAllowProhibitedAnalyzeFromWriteAction", - ] + ], + x_context_receivers = True ) jvm_library( diff --git a/plugins/kotlin/refactorings/kotlin.refactorings.k2/BUILD.bazel b/plugins/kotlin/refactorings/kotlin.refactorings.k2/BUILD.bazel index cdfeb654f9c0..651f07b55ef7 100644 --- a/plugins/kotlin/refactorings/kotlin.refactorings.k2/BUILD.bazel +++ b/plugins/kotlin/refactorings/kotlin.refactorings.k2/BUILD.bazel @@ -4,13 +4,13 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_kotlin-refactorings-k2", - context_receivers = True, opt_in = [ "org.jetbrains.kotlin.utils.addToStdlib.UnsafeCastFunction", "org.jetbrains.kotlin.analysis.api.permissions.KaAllowProhibitedAnalyzeFromWriteAction", "org.jetbrains.kotlin.analysis.api.KaIdeApi", "org.jetbrains.kotlin.analysis.api.KaNonPublicApi", - ] + ], + x_context_receivers = True ) jvm_resources( diff --git a/plugins/kotlin/refactorings/kotlin.refactorings.move.k2/BUILD.bazel b/plugins/kotlin/refactorings/kotlin.refactorings.move.k2/BUILD.bazel index 45e44b520217..f2f0b0e10cf6 100644 --- a/plugins/kotlin/refactorings/kotlin.refactorings.move.k2/BUILD.bazel +++ b/plugins/kotlin/refactorings/kotlin.refactorings.move.k2/BUILD.bazel @@ -4,11 +4,11 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_kotlin-refactorings-move-k2", - context_receivers = True, opt_in = [ "org.jetbrains.kotlin.analysis.api.permissions.KaAllowProhibitedAnalyzeFromWriteAction", "org.jetbrains.kotlin.analysis.api.KaIdeApi", - ] + ], + x_context_receivers = True ) jvm_resources( diff --git a/plugins/kotlin/refactorings/kotlin.refactorings.tests.k2/BUILD.bazel b/plugins/kotlin/refactorings/kotlin.refactorings.tests.k2/BUILD.bazel index 092daf3478e3..52db9c93e5e8 100644 --- a/plugins/kotlin/refactorings/kotlin.refactorings.tests.k2/BUILD.bazel +++ b/plugins/kotlin/refactorings/kotlin.refactorings.tests.k2/BUILD.bazel @@ -4,8 +4,8 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") create_kotlinc_options( name = "custom_kotlin-refactorings-tests-k2", - context_receivers = True, - opt_in = ["org.jetbrains.kotlin.analysis.api.permissions.KaAllowProhibitedAnalyzeFromWriteAction"] + opt_in = ["org.jetbrains.kotlin.analysis.api.permissions.KaAllowProhibitedAnalyzeFromWriteAction"], + x_context_receivers = True ) jvm_library( diff --git a/plugins/kotlin/refactorings/rename.k2/BUILD.bazel b/plugins/kotlin/refactorings/rename.k2/BUILD.bazel index bd89ce95c87a..b28ab82ec5e9 100644 --- a/plugins/kotlin/refactorings/rename.k2/BUILD.bazel +++ b/plugins/kotlin/refactorings/rename.k2/BUILD.bazel @@ -4,12 +4,12 @@ load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources") create_kotlinc_options( name = "custom_rename.k2", - context_receivers = True, opt_in = [ "org.jetbrains.kotlin.utils.addToStdlib.UnsafeCastFunction", "org.jetbrains.kotlin.analysis.api.permissions.KaAllowProhibitedAnalyzeFromWriteAction", "org.jetbrains.kotlin.analysis.api.KaIdeApi", - ] + ], + x_context_receivers = True ) jvm_resources( diff --git a/plugins/kotlin/scripting/BUILD.bazel b/plugins/kotlin/scripting/BUILD.bazel index 6cd992af4330..ebd19e42434b 100644 --- a/plugins/kotlin/scripting/BUILD.bazel +++ b/plugins/kotlin/scripting/BUILD.bazel @@ -4,7 +4,7 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") create_kotlinc_options( name = "custom_scripting", - allow_kotlin_package = True + x_allow_kotlin_package = True ) jvm_library( diff --git a/plugins/kotlin/uast/uast-kotlin-fir/BUILD.bazel b/plugins/kotlin/uast/uast-kotlin-fir/BUILD.bazel index 732ba23e82ae..dd83ffb35eba 100644 --- a/plugins/kotlin/uast/uast-kotlin-fir/BUILD.bazel +++ b/plugins/kotlin/uast/uast-kotlin-fir/BUILD.bazel @@ -4,12 +4,12 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") create_kotlinc_options( name = "custom_kotlin-uast-uast-kotlin-k2", - jvm_target = 11, - context_receivers = True, + jvm_target = "11", opt_in = [ "org.jetbrains.kotlin.analysis.api.KaIdeApi", "org.jetbrains.kotlin.analysis.api.permissions.KaAllowProhibitedAnalyzeFromWriteAction", - ] + ], + x_context_receivers = True ) jvm_library(