From 9889e6127ac9e8e5d8bdca6c4afaad920588752b Mon Sep 17 00:00:00 2001 From: Ilia Kirianovskii Date: Sun, 12 Oct 2025 17:02:41 +0200 Subject: [PATCH] [bazel] Update build files (IJI-3028) GitOrigin-RevId: 0d4e47845f6239260092fb35f2729b9af33d4d5c --- platform/eel/BUILD.bazel | 6 ++++ .../BUILD.bazel | 6 ++++ .../devkit-kotlin-fir-tests/BUILD.bazel | 6 ++++ plugins/javaFX/community/BUILD.bazel | 10 ++++-- plugins/kotlin/performance-tests/BUILD.bazel | 18 ++++++++-- plugins/restructuredtext/BUILD.bazel | 12 ++++++- python/BUILD.bazel | 34 ++++++++++++++++++- resources-en/BUILD.bazel | 3 +- 8 files changed, 88 insertions(+), 7 deletions(-) diff --git a/platform/eel/BUILD.bazel b/platform/eel/BUILD.bazel index 49b646c22a81..48a8ca311cba 100644 --- a/platform/eel/BUILD.bazel +++ b/platform/eel/BUILD.bazel @@ -15,6 +15,12 @@ jvm_library( ### auto-generated section `build intellij.platform.eel` end ### auto-generated section `build intellij.platform.eel.codegen` start +jvm_library( + name = "eel-codegen", + visibility = ["//visibility:public"], + srcs = glob([], allow_empty = True) +) + jvm_library( name = "eel-codegen_test_lib", module_name = "intellij.platform.eel.codegen", diff --git a/plugins/compose/intellij.compose.ide.plugin.k2/BUILD.bazel b/plugins/compose/intellij.compose.ide.plugin.k2/BUILD.bazel index f769fddb16f8..b49a25754ac0 100644 --- a/plugins/compose/intellij.compose.ide.plugin.k2/BUILD.bazel +++ b/plugins/compose/intellij.compose.ide.plugin.k2/BUILD.bazel @@ -46,6 +46,12 @@ create_kotlinc_options( x_context_parameters = True ) +jvm_library( + name = "ide-plugin-k2-tests", + visibility = ["//visibility:public"], + srcs = glob([], allow_empty = True) +) + jvm_library( name = "ide-plugin-k2-tests_test_lib", visibility = ["//visibility:public"], diff --git a/plugins/devkit/devkit-kotlin-fir-tests/BUILD.bazel b/plugins/devkit/devkit-kotlin-fir-tests/BUILD.bazel index 809c2ef45bf7..44b48e0b22cc 100644 --- a/plugins/devkit/devkit-kotlin-fir-tests/BUILD.bazel +++ b/plugins/devkit/devkit-kotlin-fir-tests/BUILD.bazel @@ -1,6 +1,12 @@ ### auto-generated section `build intellij.devkit.kotlin.fir.tests` start load("@rules_jvm//:jvm.bzl", "jvm_library") +jvm_library( + name = "kotlin-fir-tests", + visibility = ["//visibility:public"], + srcs = glob([], allow_empty = True) +) + jvm_library( name = "kotlin-fir-tests_test_lib", module_name = "intellij.devkit.kotlin.fir.tests", diff --git a/plugins/javaFX/community/BUILD.bazel b/plugins/javaFX/community/BUILD.bazel index a5d2ec57ba4f..5d3ebbd16bbc 100644 --- a/plugins/javaFX/community/BUILD.bazel +++ b/plugins/javaFX/community/BUILD.bazel @@ -11,7 +11,12 @@ jvm_library( name = "community", visibility = ["//visibility:public"], srcs = glob([], allow_empty = True), - resources = [":community_resources"] + resources = [":community_resources"], + exports = ["//plugins/javaFX"], + runtime_deps = [ + "//plugins/javaFX", + "//platform/core-ui", + ] ) jvm_library( @@ -51,7 +56,8 @@ jvm_library( exports = [ "//plugins/javaFX", "//plugins/javaFX:javaFX_test_lib", - ] + ], + runtime_deps = [":community"] ) ### auto-generated section `build intellij.javaFX.community` end diff --git a/plugins/kotlin/performance-tests/BUILD.bazel b/plugins/kotlin/performance-tests/BUILD.bazel index 5c9ac851cc77..adde42b8494b 100644 --- a/plugins/kotlin/performance-tests/BUILD.bazel +++ b/plugins/kotlin/performance-tests/BUILD.bazel @@ -11,7 +11,20 @@ jvm_library( name = "performance-tests", visibility = ["//visibility:public"], srcs = glob([], allow_empty = True), - resources = [":performance-tests_resources"] + resources = [":performance-tests_resources"], + runtime_deps = [ + "@lib//:kotlin-stdlib", + "@lib//:kotlinc-kotlin-scripting-compiler-impl", + "//platform/usageView", + "//plugins/kotlin/base/platforms", + "//plugins/kotlin/base/facet", + "//plugins/kotlin/base/analysis", + "//plugins/kotlin/base/fe10/analysis", + "//plugins/kotlin/base/fe10/code-insight", + "//plugins/kotlin/preferences", + "//plugins/kotlin/compiler-plugins/lombok/gradle", + "//plugins/kotlin/completion/impl-k1:kotlin-completion-impl-k1", + ] ) jvm_library( @@ -87,7 +100,8 @@ jvm_library( "//plugins/kotlin/base/scripting/scripting.k1", "//plugins/kotlin/base/scripting/scripting.k1:scripting.k1_test_lib", "//plugins/kotlin/base/scripting/scripting.shared", - ] + ], + runtime_deps = [":performance-tests"] ) ### auto-generated section `build kotlin.performance-tests` end diff --git a/plugins/restructuredtext/BUILD.bazel b/plugins/restructuredtext/BUILD.bazel index 1c356ff28419..65be0773701a 100644 --- a/plugins/restructuredtext/BUILD.bazel +++ b/plugins/restructuredtext/BUILD.bazel @@ -66,6 +66,16 @@ jvm_library( module_name = "intellij.restructuredtext", visibility = ["//visibility:public"], srcs = glob([], allow_empty = True), - resources = [":restructuredtext_test_resources"] + resources = [":restructuredtext_test_resources"], + runtime_deps = [ + ":restructuredtext", + "//platform/lang-impl", + "//platform/execution-impl", + "//platform/testFramework", + "//platform/testFramework:testFramework_test_lib", + "//platform/core-ui", + "//spellchecker", + "//spellchecker:spellchecker_test_lib", + ] ) ### auto-generated section `build intellij.restructuredtext` end \ No newline at end of file diff --git a/python/BUILD.bazel b/python/BUILD.bazel index 75e6b4f4298d..80a4b51b87db 100644 --- a/python/BUILD.bazel +++ b/python/BUILD.bazel @@ -372,7 +372,39 @@ jvm_library( module_name = "intellij.python.community.impl", visibility = ["//visibility:public"], srcs = glob([], allow_empty = True), - resources = [":python-community-impl_test_resources"] + resources = [":python-community-impl_test_resources"], + exports = [ + "//python/openapi:community", + "//python/openapi:community_test_lib", + "//platform/ide-core-impl", + "//RegExpSupport:regexp", + "//RegExpSupport:regexp_test_lib", + "//platform/testRunner", + "//platform/testRunner:testRunner_test_lib", + "//python/python-psi-impl:psi-impl", + ], + runtime_deps = [ + ":python-community-impl", + "//platform/util/concurrency:concurrency_test_lib", + "//python/openapi:community_test_lib", + "//RegExpSupport:regexp_test_lib", + "//platform/testRunner:testRunner_test_lib", + "//platform/smRunner:smRunner_test_lib", + "//spellchecker:spellchecker_test_lib", + "//platform/xdebugger-impl:debugger-impl_test_lib", + "@lib//ant/lib:ant-antlr-provided", + "//python/python-sdk:sdk_test_lib", + "//platform/statistics:statistics_test_lib", + "//platform/backend/observation:observation_test_lib", + "//python/python-venv:community-impl-venv_test_lib", + "//python/python-exec-service:community-execService_test_lib", + "//python/services/system-python:system-python_test_lib", + "//python/services/internal-impl:python-community-services-internal-impl_test_lib", + "@lib//:io-github-z4kn4fein-semver-jvm-provided", + "//python/python-pyproject:pyproject_test_lib", + "//python/python-exec-service/execService.python:execService.python_test_lib", + "//python/interpreters:interpreters_test_lib", + ] ) ### auto-generated section `build intellij.python.community.impl` end diff --git a/resources-en/BUILD.bazel b/resources-en/BUILD.bazel index 145622f87929..ef915290f85d 100644 --- a/resources-en/BUILD.bazel +++ b/resources-en/BUILD.bazel @@ -19,6 +19,7 @@ jvm_library( module_name = "intellij.java.resources.en", visibility = ["//visibility:public"], srcs = glob([], allow_empty = True), - resources = [":java-resources-en_test_resources"] + resources = [":java-resources-en_test_resources"], + runtime_deps = ["//platform/backend"] ) ### auto-generated section `build intellij.java.resources.en` end \ No newline at end of file