From e59cb57dd75fcc350fbe2b5d10faaad81461d5f3 Mon Sep 17 00:00:00 2001 From: Ilia Kirianovskii Date: Wed, 17 Dec 2025 21:54:30 +0100 Subject: [PATCH] [build] Update build files (IJI-3390) GitOrigin-RevId: 90d583428c40da59564a6804ff0b951871ca2966 --- BUILD.bazel | 186 +-------------- build/tests/BUILD.bazel | 3 +- fleet/codecache/test/BUILD.bazel | 3 +- fleet/util/codepoints/test/BUILD.bazel | 3 +- java/compiler/BUILD.bazel | 15 +- java/idea-ui/BUILD.bazel | 12 +- java/java-frontback-tests/BUILD.bazel | 18 +- java/java-terminal/BUILD.bazel | 6 +- java/java-tests/BUILD.bazel | 48 +++- jps/jps-builders/BUILD.bazel | 10 +- jps/model-impl/BUILD.bazel | 9 +- jps/model-serialization/BUILD.bazel | 9 +- json/backend/tests/BUILD.bazel | 9 +- jvm/jvm-analysis-java-tests/BUILD.bazel | 3 +- jvm/jvm-analysis-kotlin-tests-k1/BUILD.bazel | 5 +- jvm/jvm-analysis-kotlin-tests-k2/BUILD.bazel | 5 +- .../BUILD.bazel | 13 +- .../build-scripts/codeOptimizer/BUILD.bazel | 3 +- platform/build-scripts/tests/BUILD.bazel | 3 +- platform/built-in-server/BUILD.bazel | 24 +- platform/configuration-store-impl/BUILD.bazel | 6 +- platform/core-nio-fs/BUILD.bazel | 9 +- platform/diff-impl/tests/BUILD.bazel | 15 +- platform/eel/BUILD.bazel | 22 +- platform/execution-impl/BUILD.bazel | 6 +- .../dependency-updater/BUILD.bazel | 3 +- platform/external-system-impl/BUILD.bazel | 13 +- platform/indexing-tests/BUILD.bazel | 9 +- platform/instanceContainer/BUILD.bazel | 3 +- .../int-ui-standalone-tests/BUILD.bazel | 9 +- platform/jewel/ui-tests/BUILD.bazel | 4 +- platform/lang-impl/BUILD.bazel | 46 +++- platform/lang-impl/testEntities/BUILD.bazel | 9 +- .../BUILD.bazel | 25 +- .../BUILD.bazel | 17 +- .../main/intellij.platform.main/BUILD.bazel | 19 +- .../BUILD.bazel | 7 +- platform/object-serializer/BUILD.bazel | 11 +- platform/platform-tests/BUILD.bazel | 38 ++- .../platform-tests/benchmarks/BUILD.bazel | 11 +- .../platform-tests/durability/BUILD.bazel | 12 +- platform/polySymbols/BUILD.bazel | 28 ++- .../target-integration-tests/BUILD.bazel | 15 +- platform/runtime/product/tests/BUILD.bazel | 6 +- platform/runtime/repository/tests/BUILD.bazel | 6 +- platform/statistics/envTests/BUILD.bazel | 11 +- platform/structuralsearch/BUILD.bazel | 9 +- platform/syntax/syntax-psi-tests/BUILD.bazel | 3 +- platform/util/BUILD.bazel | 9 +- platform/util/coroutines/BUILD.bazel | 3 +- .../benchmark/BUILD.bazel | 3 +- platform/util/progress/BUILD.bazel | 3 +- platform/vcs-tests/BUILD.bazel | 26 +- platform/workspace/jps/tests/BUILD.bazel | 13 +- .../storage/testEntities/BUILD.bazel | 6 +- platform/workspace/storage/tests/BUILD.bazel | 11 +- plugins/IntelliLang/tests/BUILD.bazel | 3 +- plugins/ant/jps-plugin/BUILD.bazel | 9 +- .../completion-ml-ranking-models/BUILD.bazel | 3 +- plugins/completion-ml-ranking/BUILD.bazel | 6 +- .../BUILD.bazel | 3 +- .../BUILD.bazel | 3 +- .../BUILD.bazel | 3 +- .../BUILD.bazel | 3 +- plugins/configuration-script/BUILD.bazel | 9 +- plugins/dev/BUILD.bazel | 14 +- plugins/devkit/BUILD.bazel | 22 +- plugins/devkit/devkit-java-tests/BUILD.bazel | 17 +- .../devkit-kotlin-fir-tests/BUILD.bazel | 19 +- .../devkit/devkit-kotlin-tests/BUILD.bazel | 8 +- plugins/devkit/devkit-tests/BUILD.bazel | 17 +- .../tests/BUILD.bazel | 15 +- plugins/devkit/jps-plugin/BUILD.bazel | 9 +- plugins/editorconfig/BUILD.bazel | 7 +- plugins/evaluation-plugin/BUILD.bazel | 3 +- plugins/gradle/BUILD.bazel | 15 +- .../gradle-declarative-sync/BUILD.bazel | 6 +- plugins/gradle/java/BUILD.bazel | 11 +- plugins/gradle/native/tooling/BUILD.bazel | 3 +- .../gradle/tooling-extension-impl/BUILD.bazel | 3 +- plugins/grazie/src/test/BUILD.bazel | 19 +- plugins/grazie/src/tests.pro/BUILD.bazel | 19 +- plugins/groovy/groovy-uast-tests/BUILD.bazel | 3 +- plugins/groovy/jps-plugin/BUILD.bazel | 10 +- plugins/htmltools/BUILD.bazel | 10 +- plugins/junit/groovy-tests/BUILD.bazel | 3 +- plugins/junit/java-tests/BUILD.bazel | 6 +- plugins/junit/kotlin-tests-k1/BUILD.bazel | 5 +- plugins/junit/kotlin-tests-k2/BUILD.bazel | 5 +- plugins/junit/kotlin-tests-shared/BUILD.bazel | 11 +- plugins/junit5_rt_tests/BUILD.bazel | 9 +- plugins/junit6_rt_tests/BUILD.bazel | 6 +- plugins/kotlin/BUILD.bazel | 222 +----------------- .../analysis-api-k2-tests/BUILD.bazel | 9 +- .../kotlin/base/analysis/tests/BUILD.bazel | 12 +- plugins/kotlin/base/facet/tests/BUILD.bazel | 28 ++- plugins/kotlin/base/indices/tests/BUILD.bazel | 9 +- plugins/kotlin/base/test/BUILD.bazel | 6 +- .../code-insight/fixes-k2/tests/BUILD.bazel | 3 +- .../inspections-k2/tests/BUILD.bazel | 6 +- .../inspections-shared/tests/k1/BUILD.bazel | 3 +- .../inspections-shared/tests/k2/BUILD.bazel | 3 +- .../intentions-k2/tests/BUILD.bazel | 3 +- .../intentions-shared/tests/k1/BUILD.bazel | 3 +- .../intentions-shared/tests/k2/BUILD.bazel | 3 +- .../structural-search-k2/tests/BUILD.bazel | 6 +- .../allopen/tests-k1/BUILD.bazel | 25 +- .../compiler-plugin-support/tests/BUILD.bazel | 11 +- .../kotlinx-serialization/tests/BUILD.bazel | 16 +- .../compiler-plugins/noarg/tests/BUILD.bazel | 25 +- .../parcelize/tests/BUILD.bazel | 3 +- .../parcelize/tests/k1/BUILD.bazel | 6 +- .../parcelize/tests/k2/BUILD.bazel | 3 +- .../tests.k2/BUILD.bazel | 10 +- .../tests/BUILD.bazel | 27 ++- .../kotlin/completion/tests-k1/BUILD.bazel | 22 +- .../completion/tests-shared/BUILD.bazel | 19 +- .../kotlin/copyright/fir-tests/BUILD.bazel | 11 +- plugins/kotlin/copyright/tests/BUILD.bazel | 18 +- plugins/kotlin/core/tests/BUILD.bazel | 36 ++- plugins/kotlin/coverage/tests/BUILD.bazel | 26 +- .../kotlin/features-trainer/tests/BUILD.bazel | 18 +- plugins/kotlin/fir/tests/BUILD.bazel | 32 ++- .../code-insight-groovy/tests.k2/BUILD.bazel | 9 +- .../gradle-java/tests.shared/BUILD.bazel | 17 +- .../gradle/gradle-tooling/tests/BUILD.bazel | 17 +- .../kotlin/gradle/gradle/tests/BUILD.bazel | 48 +++- .../gradle/multiplatform-tests-k2/BUILD.bazel | 17 +- .../gradle/multiplatform-tests/BUILD.bazel | 21 +- .../intellij.kotlin.grazie.tests/BUILD.bazel | 3 +- .../highlighting-shared/tests/BUILD.bazel | 3 +- plugins/kotlin/i18n/tests/BUILD.bazel | 13 +- plugins/kotlin/idea/tests/BUILD.bazel | 78 ++++-- .../kotlin/injection/base/tests/BUILD.bazel | 6 +- plugins/kotlin/injection/k1/tests/BUILD.bazel | 3 +- plugins/kotlin/injection/k2/tests/BUILD.bazel | 3 +- .../intellij.kotlin.base.test/BUILD.bazel | 3 +- plugins/kotlin/j2k/k1.new/tests/BUILD.bazel | 14 +- plugins/kotlin/j2k/k2/tests/BUILD.bazel | 11 +- plugins/kotlin/j2k/shared/tests/BUILD.bazel | 10 +- .../jps/graphImplementationTests/BUILD.bazel | 9 +- plugins/kotlin/jvm-debugger/test/BUILD.bazel | 14 +- .../jvm-debugger/test/compose/BUILD.bazel | 6 +- .../kotlin/jvm-debugger/test/k2/BUILD.bazel | 13 +- .../jvm-debugger/test/parcelize/BUILD.bazel | 6 +- .../kotlin/kotlin.lombok.tests/BUILD.bazel | 3 +- .../kotlin.searching.test.k2/BUILD.bazel | 10 +- plugins/kotlin/maven/tests/BUILD.bazel | 56 +++-- .../kotlin/ml-completion/tests/BUILD.bazel | 10 +- plugins/kotlin/native/tests/BUILD.bazel | 14 +- plugins/kotlin/navigation/tests/BUILD.bazel | 3 +- .../performance-test-utils/BUILD.bazel | 15 +- .../kotlin/project-wizard/tests/BUILD.bazel | 28 ++- .../BUILD.bazel | 13 +- .../kotlin.refactorings.tests.k2/BUILD.bazel | 9 +- plugins/kotlin/scripting-support/BUILD.bazel | 10 +- plugins/kotlin/test-framework/BUILD.bazel | 19 +- plugins/kotlin/tests-common/BUILD.bazel | 25 +- plugins/kotlin/tests-compose/BUILD.bazel | 6 +- .../kotlin/tests-from-compiler/BUILD.bazel | 5 +- .../uast/uast-kotlin-base/tests/BUILD.bazel | 10 +- .../uast/uast-kotlin-fir/tests/BUILD.bazel | 27 ++- .../uast-kotlin-idea-base/tests/BUILD.bazel | 9 +- .../uast-kotlin-idea-fir/tests/BUILD.bazel | 10 +- .../uast/uast-kotlin-idea/tests/BUILD.bazel | 23 +- .../kotlin/uast/uast-kotlin/tests/BUILD.bazel | 19 +- .../util/test-generator-all/BUILD.bazel | 3 +- .../util/test-generator-api/BUILD.bazel | 3 +- .../util/test-generator-fe10/BUILD.bazel | 3 +- .../util/test-generator-fir/BUILD.bazel | 6 +- plugins/markdown/plugin/BUILD.bazel | 13 +- plugins/markdown/test/BUILD.bazel | 34 ++- plugins/maven-server-api/test/BUILD.bazel | 3 +- plugins/maven/src/test/BUILD.bazel | 9 +- plugins/mcp-server/tests/BUILD.bazel | 3 +- plugins/mcp-server/tests/plugin/BUILD.bazel | 3 +- plugins/properties/tests/BUILD.bazel | 6 +- plugins/settings-repository/BUILD.bazel | 18 +- plugins/sh/copyright/BUILD.bazel | 9 +- plugins/sh/core/BUILD.bazel | 14 +- plugins/sh/plugin/BUILD.bazel | 10 +- plugins/stats-collector/BUILD.bazel | 6 +- plugins/svn4idea/BUILD.bazel | 17 +- plugins/tasks/tasks-tests/BUILD.bazel | 19 +- plugins/terminal/tests/BUILD.bazel | 35 ++- plugins/testng_rt/tests/BUILD.bazel | 9 +- plugins/textmate/core/tests/BUILD.bazel | 3 +- plugins/textmate/tests/BUILD.bazel | 3 +- plugins/toml/tests/BUILD.bazel | 14 +- plugins/turboComplete/BUILD.bazel | 3 +- .../ui-designer/jps-plugin/tests/BUILD.bazel | 3 +- python/BUILD.bazel | 97 +++----- python/junit5Tests-framework/BUILD.bazel | 9 +- .../junit5Tests-framework/conda/BUILD.bazel | 3 +- resources-en/BUILD.bazel | 2 +- tools/devLauncher/tests/BUILD.bazel | 6 +- tools/intellij.lambda.sampleTests/BUILD.bazel | 9 +- .../BUILD.bazel | 3 +- .../plugin/BUILD.bazel | 3 +- .../BUILD.bazel | 39 ++- .../plugin/BUILD.bazel | 3 +- .../plugin/BUILD.bazel | 3 +- uast/uast-tests/BUILD.bazel | 22 +- xml/dom-tests/BUILD.bazel | 11 +- xml/tests/BUILD.bazel | 15 +- 205 files changed, 1896 insertions(+), 1000 deletions(-) diff --git a/BUILD.bazel b/BUILD.bazel index fea8547f39a0..c6d5ccdcf56e 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -296,160 +296,40 @@ jvm_library( visibility = ["//visibility:public"], srcs = glob([], allow_empty = True), runtime_deps = [ - "//platform/main/intellij.platform.monolith.main:monolith-main", - "//plugins/coverage", - "//plugins/ant", - "//platform/boot", - "//platform/bootstrap", - "//java/compiler/impl", - "//java/compiler/openapi:java-compiler", - "//java/debugger/impl", - "//java/debugger/openapi:java-debugger", - "//platform/diff-api:diff", - "//platform/diff-impl", - "//xml/dom-impl", - "//xml/dom-openapi:dom", - "//java/execution/impl", - "//java/execution/openapi:java-execution", - "//platform/extensions", - "//platform/forms_rt:java-guiForms-rt", - "//platform/icons", - "//java/idea-ui:ui", - "//java/java-impl:impl", - "//java/java-runtime:rt", - "//java/jsp-openapi:jsp", - "//java/jsp-spi", - "//platform/lang-api:lang", - "//platform/lang-impl", - "//platform/lvcs-api:lvcs", - "//platform/lvcs-impl", - "//java/compiler/instrumentation-util", - "//java/openapi:java", - "//platform/platform-api:ide", - "//platform/platform-impl:ide-impl", - "//platform/starter", - "//plugins/properties:properties-backend", - "//java/ide-resources", - "//java/ide-customization", - "//resources:java-resources", - "//resources-en:java-resources-en", - "//spellchecker", - "//java/jsp-base-openapi:jsp-base", - "//java/testFramework", - "//platform/testRunner", - "//platform/usageView", - "//platform/util", - "//platform/vcs-api:vcs", - "//platform/vcs-impl", - "//platform/vcs-impl/exec", - "//platform/vcs-impl/lang", - "//platform/vcs-impl/lang/actions", - "//platform/xdebugger-api:debugger", - "//platform/xdebugger-impl:debugger-impl", - "//xml/impl", - "//plugins/ide-startup/importSettings", - "//community-resources:customization", - "//java/plugin", + ":main", "//java/java-tests:tests_test_lib", "//plugins/junit/java-tests:java-tests_test_lib", "//jvm/jvm-analysis-java-tests:analysis-java-tests_test_lib", - "//plugins/copyright", - "//platform/testFramework", - "//plugins/ui-designer:java-guiForms-designer", - "//plugins/dev:dev-plugin-main", - "//plugins/devkit:devkit-plugin-main", - "//plugins/eclipse", - "//plugins/git4idea:vcs-git", - "//plugins/git4idea/shared", - "//plugins/git4idea/frontend", - "//plugins/git-features-trainer:vcs-git-featuresTrainer", - "//images", - "//plugins/groovy", - "//plugins/junit", - "//plugins/maven", - "//RegExpSupport:regexp", - "//plugins/svn4idea:vcs-svn", "//plugins/svn4idea:vcs-svn-tests_test_lib", - "//plugins/testng", - "//java/langInjection", - "//xml/langInjection", - "//plugins/xpath", - "//plugins/xslt-debugger", - "//plugins/xslt-debugger/engine:xslt-debugger-rt", - "//plugins/java-i18n", - "//plugins/tasks/tasks-api:tasks", - "//plugins/tasks/tasks-java:java", "//plugins/tasks/tasks-tests:tests_test_lib", - "//plugins/github/github-core:vcs-github", - "//plugins/hg4idea:vcs-hg", - "//xml/relaxng", - "//plugins/gradle/java", - "//platform/remote-servers/impl", - "//plugins/properties/properties-resource-bundle-editor:resource-bundle-editor", "//xml/dom-tests:dom-tests_test_lib", - "//plugins/javaFX/community", - "//plugins/javaFX/jps", "//plugins/IntelliLang/tests:tests_test_lib", - "//java/manifest", - "//plugins/yaml/backend", "//xml/tests:tests_test_lib", - "//plugins/tasks/tasks-core:core", "//jps/model-serialization:model-serialization-tests_test_lib", "//plugins/ui-designer/jps-plugin:java-guiForms-jps", - "//plugins/tasks/tasks-core/jira", - "//plugins/java-decompiler/plugin:java-decompiler", - "//platform/structuralsearch:structuralSearch", - "//java/structuralsearch-java:structuralSearch", "//platform/structuralsearch:structuralSearch-tests_test_lib", - "//plugins/groovy/structuralsearch-groovy:structuralSearch", - "//plugins/groovy/git", - "//json/backend", "//json/backend/tests:tests_test_lib", - "//java/typeMigration", "//platform/platform-tests:tests_test_lib", "//jps/model-impl:model-tests_test_lib", "//platform/diff-impl/tests:tests_test_lib", "//platform/built-in-server:builtInServer-tests_test_lib", "//platform/script-debugger/debugger-ui:scriptDebugger-ui", - "//plugins/terminal", - "//plugins/terminal/frontend", - "//plugins/terminal/backend", "//platform/build-scripts/icons:images-build", "//platform/build-scripts/icons:images-build_test_lib", - "//plugins/stats-collector", "//plugins/stats-collector:statsCollector-tests_test_lib", - "//plugins/completion-ml-ranking-models", "//plugins/completion-ml-ranking-models:completionMlRankingModels-tests_test_lib", - "//plugins/completion-ml-ranking", "//plugins/completion-ml-ranking:completionMlRanking-tests_test_lib", - "//plugins/stream-debugger-core:debugger-streams-core", - "//plugins/stream-debugger:java-debugger-streams", - "//libraries/jgoodies/common", "//plugins/testng_rt/tests:tests_test_lib", - "//plugins/editorconfig:editorconfig-plugin-main", "//platform/workspace/storage/tests:tests_test_lib", "//platform/workspace/jps/tests:tests_test_lib", - "//plugins/sh/plugin:plugin-main", - "//plugins/terminal/sh", - "//plugins/gradle-maven:gradle-java-maven", - "//plugins/markdown/core:markdown", - "//plugins/markdown/plugin:plugin-main", "//plugins/textmate/plugin", "//plugins/textmate/backend", - "//plugins/webp", "//plugins/space/jps-plugin:java-jps", - "//plugins/emojipicker", - "//plugins/gradle/gradle-dependency-updater:dependencyUpdater", - "//platform/settings-sync-core:settingsSync-core", - "//plugins/settings-sync/jba:settingsSync", - "//java/java-features-trainer:featuresTrainer", "//build/tasks", "//build/tasks:tasks_test_lib", "//plugins/junit5_rt_tests:junit-v5-rt-tests_test_lib", "//plugins/properties/tests:tests_test_lib", "//platform/execution-impl:execution-tests_test_lib", - "//plugins/ml-local-models/java", - "//plugins/kotlin:kotlin-plugin-community-main", "//plugins/commander", "//plugins/commander:commander_test_lib", "//plugins/configuration-script", @@ -467,34 +347,15 @@ jvm_library( "//plugins/restructuredtext", "//plugins/restructuredtext:restructuredtext_test_lib", "//plugins/markdown/test:tests_test_lib", - "//plugins/laf/macos", - "//plugins/laf/win10", - "//plugins/search-everywhere-ml", - "//plugins/marketplace-ml", - "//plugins/toml", - "//platform/tracing-ide", - "//notebooks/visualization", - "//plugins/keymaps/eclipse-keymap:keymap-eclipse", - "//plugins/keymaps/visual-studio-keymap:keymap-visualStudio", - "//plugins/keymaps/netbeans5.6-keymap:keymap-netbeans", - "//plugins/evaluation-plugin", - "//plugins/evaluation-plugin/languages/java", "//jps/jps-builders:build-tests_test_lib", "//plugins/devkit/jps-plugin:jps-tests_test_lib", "//plugins/groovy/jps-plugin:jps-tests_test_lib", "//plugins/ant/jps-plugin:jps-tests_test_lib", - "//platform/warmup", "//platform/testFramework/junit5", "//platform/testFramework/junit5:junit5_test_lib", "//plugins/devkit/intellij.devkit.workspaceModel/tests:tests_test_lib", - "//plugins/remote-control", - "//platform/polySymbols", - "//plugins/performanceTesting/core:performanceTesting", "//plugins/performanceTesting/scripts-ui:ui", "//plugins/performanceTesting/scripts-ui:ui_test_lib", - "//platform/smart-update", - "//plugins/gradle/intellij.gradle.analysis:analysis", - "//plugins/htmltools:html-tools", "//uast/uast-tests:tests_test_lib", "//platform/runtime/repository/tests:tests_test_lib", "//platform/runtime/product/tests:tests_test_lib", @@ -507,57 +368,25 @@ jvm_library( "//plugins/jsonpath", "//plugins/jsonpath:jsonpath_test_lib", "//plugins/ui-designer/jps-plugin/tests:tests_test_lib", - "//platform/new-ui-onboarding", - "//platform/new-users-onboarding", - "//plugins/kotlin/onboarding-promoter", - "//platform/execution-process-elevation", - "//plugins/gitlab/gitlab-yaml:vcs-gitlab-yaml", "//platform/util/coroutines:coroutines-tests_test_lib", "//platform/util/progress:progress-tests_test_lib", "//platform/testFramework/junit5.jimfs", "//platform/testFramework/junit5.jimfs:junit5.jimfs_test_lib", - "//plugins/yaml", "//platform/whatsNew", "//platform/whatsNew:whatsNew_test_lib", - "//platform/compose", - "//json", - "//java/java-terminal:terminal-tests", - "//java/java-terminal:terminal", "//platform/remoteDev-util", "//platform/remoteDev-util:remoteDev-util_test_lib", - "//jvm/jvm-analysis-impl:analysis-impl", - "//plugins/ByteCodeViewer:java-byteCodeViewer", - "//plugins/github/github-json:vcs-github-json", - "//plugins/github/github-tracker:vcs-github-tracker", - "//plugins/search-everywhere-ml/ranking/core", - "//plugins/search-everywhere-ml/ranking/java", - "//plugins/search-everywhere-ml/ranking/vcs", - "//plugins/search-everywhere-ml/ranking/yaml", - "//plugins/search-everywhere-ml/typos", "//platform/inspect", "//platform/inspect:inspect_test_lib", - "//plugins/grazie", "//wintools", "//wintools:wintools_test_lib", - "//plugins/compose:compose-ide-plugin", - "//plugins/compose/intellij.compose.ide.plugin.k1:ide-plugin-k1", - "//plugins/compose/intellij.compose.ide.plugin.k2:ide-plugin-k2", - "//plugins/compose/intellij.compose.ide.plugin.shared:ide-plugin-shared", - "//plugins/compose/intellij.compose.ide.plugin.resources:ide-plugin-resources", - "//plugins/compose/intellij.compose.ide.plugin.gradleTooling:ide-plugin-gradleTooling-rt", "//python/python-exec-service:community-execService", "//python/python-exec-service:community-execService_test_lib", - "//plugins/git-modal-commit:vcs-git-commit-modal", "//python/python-pyproject:pyproject", "//python/python-pyproject:pyproject_test_lib", "//platform/indexing-tests:indexing-tests_test_lib", "//platform/testFramework/monorepo", "//platform/testFramework/monorepo:monorepo_test_lib", - "//plugins/maven/maven-event-listener:server-eventListener", - "//plugins/maven/maven3-server-impl:server-m3-impl", - "//plugins/maven/maven36-server-impl:server-m36-impl", - "//plugins/maven/maven40-server-impl:server-m40", - "//plugins/mcp-server:mcpserver", "//plugins/textmate/tests:tests_test_lib", "//python/python-process-output:processOutput", "//tools/intellij.tools.ide.starter.junit5:ide-starter-junit5", @@ -565,7 +394,6 @@ jvm_library( "//plugins/terminal/tests:tests_test_lib", "//plugins/git4idea/terminal", "//plugins/git4idea/terminal:terminal_test_lib", - "//python/pluginCore:community-plugin", ] ) ### auto-generated section `build intellij.idea.community.main` end @@ -593,16 +421,6 @@ jvm_library( module_name = "intellij.idea.community.main.android", visibility = ["//visibility:public"], srcs = glob([], allow_empty = True), - runtime_deps = [ - "//android/android:core", - "//:main", - "//android/android-plugin:plugin", - "//android/layoutlib", - "//plugins/kotlin:kotlin-plugin-community-main", - "//android/compose-designer", - "//android/compose-ide-plugin", - "//android/design-plugin", - "//android/android-navigator:navigator", - ] + runtime_deps = [":main-android"] ) ### auto-generated section `build intellij.idea.community.main.android` end \ No newline at end of file diff --git a/build/tests/BUILD.bazel b/build/tests/BUILD.bazel index 326d397c4d38..4adbea37c385 100644 --- a/build/tests/BUILD.bazel +++ b/build/tests/BUILD.bazel @@ -21,7 +21,8 @@ jvm_library( "//platform/util", "//libraries/kotlinx/coroutines/core", "//platform/build-scripts/downloader", - ] + ], + runtime_deps = [":tests"] ) ### auto-generated section `build intellij.idea.community.build.tests` end diff --git a/fleet/codecache/test/BUILD.bazel b/fleet/codecache/test/BUILD.bazel index 865f4a87b328..308c9ae835bd 100644 --- a/fleet/codecache/test/BUILD.bazel +++ b/fleet/codecache/test/BUILD.bazel @@ -35,7 +35,8 @@ jvm_library( "//fleet/util/network", "//fleet/ktor/client/core", "@lib//:kotlinx-serialization-core", - ] + ], + runtime_deps = [":test"] ) ### auto-generated section `build fleet.codecache.test` end diff --git a/fleet/util/codepoints/test/BUILD.bazel b/fleet/util/codepoints/test/BUILD.bazel index 0dabfcbc1f03..da1bb4a83940 100644 --- a/fleet/util/codepoints/test/BUILD.bazel +++ b/fleet/util/codepoints/test/BUILD.bazel @@ -25,7 +25,8 @@ jvm_library( "//fleet/util/codepoints", "@lib//:kotlin-stdlib", "//fleet/junit", - ] + ], + runtime_deps = [":test"] ) ### auto-generated section `build fleet.util.codepoints.test` end diff --git a/java/compiler/BUILD.bazel b/java/compiler/BUILD.bazel index 581de1730e96..b5cf5b87dce6 100644 --- a/java/compiler/BUILD.bazel +++ b/java/compiler/BUILD.bazel @@ -4,7 +4,18 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "compiler-tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "//java/compiler/impl", + "//java/compiler/openapi:java-compiler", + "//java/testFramework", + "//java/openapi:java", + "//java/compiler/instrumentation-util", + "//java/idea-ui:ui", + "//spellchecker", + "//platform/core-ui", + "//platform/workspace/jps", + ] ) jvm_library( @@ -41,7 +52,7 @@ jvm_library( "@lib//:jet_check", "//java/testFramework/backend", ], - runtime_deps = ["//spellchecker"] + runtime_deps = [":compiler-tests"] ) ### auto-generated section `build intellij.java.compiler.tests` end diff --git a/java/idea-ui/BUILD.bazel b/java/idea-ui/BUILD.bazel index 6034f7e23c9f..9d1b9e28f8f9 100644 --- a/java/idea-ui/BUILD.bazel +++ b/java/idea-ui/BUILD.bazel @@ -75,7 +75,14 @@ jvm_library( jvm_library( name = "ui-tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "//java/idea-ui:ui", + "//platform/core-ui", + "//platform/ide-core-impl", + "@lib//:kotlin-test", + "//platform/forms_rt:java-guiForms-rt", + ] ) jvm_library( @@ -125,7 +132,8 @@ jvm_library( "//xml/xml-psi-impl:psi-impl", "//platform/execution", "//platform/forms_rt:java-guiForms-rt", - ] + ], + runtime_deps = [":ui-tests"] ) ### auto-generated section `build intellij.java.ui.tests` end diff --git a/java/java-frontback-tests/BUILD.bazel b/java/java-frontback-tests/BUILD.bazel index 7c8011e17771..bb4effa33e6b 100644 --- a/java/java-frontback-tests/BUILD.bazel +++ b/java/java-frontback-tests/BUILD.bazel @@ -4,7 +4,20 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "frontback-tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + exports = [ + "@lib//:easymock", + "@lib//:mockito", + "@lib//:assert_j", + "@lib//:kotlin-test", + "//platform/testFramework", + "//platform/testFramework/junit5", + "//platform/platform-tests:tests", + ], + runtime_deps = [ + "//platform/ide-core-impl", + "//java/java-frontback-psi-impl:frontback-psi-impl", + ] ) jvm_library( @@ -50,7 +63,8 @@ jvm_library( "//platform/testFramework/junit5", "//platform/testFramework/junit5:junit5_test_lib", "//platform/platform-tests:tests_test_lib", - ] + ], + runtime_deps = [":frontback-tests"] ) ### auto-generated section `build intellij.java.frontback.tests` end diff --git a/java/java-terminal/BUILD.bazel b/java/java-terminal/BUILD.bazel index 96f993a146ab..4c03432cabdf 100644 --- a/java/java-terminal/BUILD.bazel +++ b/java/java-terminal/BUILD.bazel @@ -32,7 +32,8 @@ jvm_library( jvm_library( name = "terminal-tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = ["@lib//:kotlin-stdlib"] ) jvm_library( @@ -52,7 +53,8 @@ jvm_library( "//plugins/terminal/completion", "//plugins/terminal/completion:completion_test_lib", "//plugins/terminal", - ] + ], + runtime_deps = [":terminal-tests"] ) ### auto-generated section `build intellij.java.terminal.tests` end diff --git a/java/java-tests/BUILD.bazel b/java/java-tests/BUILD.bazel index 7b71fb7fee9b..1fd2661f0997 100644 --- a/java/java-tests/BUILD.bazel +++ b/java/java-tests/BUILD.bazel @@ -10,7 +10,47 @@ resourcegroup( jvm_library( name = "tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + exports = [ + "//plugins/java-i18n", + "//plugins/coverage", + ], + runtime_deps = [ + "//platform/testFramework", + "//java/testFramework", + "//java/java-impl:impl", + "//java/java-impl-inspections:impl-inspections", + "//platform/platform-impl/concurrency", + "//java/idea-ui:ui", + "//platform/vcs-api:vcs", + "//platform/vcs-impl/shared", + "//platform/editor-ui-ex:editor-ex", + "//community-resources:customization", + "//java/execution/impl", + "//platform/diff-api:diff", + "//platform/usageView", + "//java/debugger/impl", + "//platform/platform-api:ide", + "//plugins/java-i18n", + "//java/compiler/impl", + "//java/compiler/instrumentation-util", + "//java/langInjection", + "//xml/langInjection", + "//java/execution/openapi:java-execution", + "//xml/xml-analysis-api:analysis", + "//xml/xml-analysis-impl:analysis-impl", + "//xml/xml-psi-impl:psi-impl", + "//plugins/coverage", + "//libraries/stream", + "//libraries/fastutil", + "//platform/platform-impl:ide-impl", + "//jps/model-impl", + "//platform/core-ui", + "//platform/platform-util-io:ide-util-io", + "//platform/service-container", + "//platform/searchEverywhere/testFramework", + "//platform/forms_rt:java-guiForms-rt", + ] ) jvm_library( @@ -174,11 +214,7 @@ jvm_library( "//plugins/coverage", "//plugins/coverage:coverage_test_lib", ], - runtime_deps = [ - "//community-resources:customization", - "//java/langInjection", - "//xml/langInjection", - ] + runtime_deps = [":tests"] ) ### auto-generated section `build intellij.java.tests` end diff --git a/jps/jps-builders/BUILD.bazel b/jps/jps-builders/BUILD.bazel index 4bd43ec9cc78..ea6023cac712 100644 --- a/jps/jps-builders/BUILD.bazel +++ b/jps/jps-builders/BUILD.bazel @@ -66,7 +66,12 @@ resourcegroup( jvm_library( name = "build-tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "//jps/jps-builders:build", + "@community//build:dependency-graph", + "@community//build:build-javac-rt", + ] ) jvm_library( @@ -101,7 +106,8 @@ jvm_library( "//libraries/mvstore", "@lib//:memoryfilesystem", "//jps/model-test-framework:model-testFramework", - ] + ], + runtime_deps = [":build-tests"] ) ### auto-generated section `build intellij.platform.jps.build.tests` end diff --git a/jps/model-impl/BUILD.bazel b/jps/model-impl/BUILD.bazel index 55e3e28f0c7f..7a8e6e8b6ec8 100644 --- a/jps/model-impl/BUILD.bazel +++ b/jps/model-impl/BUILD.bazel @@ -32,7 +32,11 @@ resourcegroup( jvm_library( name = "model-tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "//jps/model-impl", + "@lib//:kotlin-stdlib", + ] ) jvm_library( @@ -51,7 +55,8 @@ jvm_library( "@lib//:assert_j", "//platform/testFramework/extensions:testExtensions", "//jps/model-test-framework:model-testFramework", - ] + ], + runtime_deps = [":model-tests"] ) ### auto-generated section `build intellij.platform.jps.model.tests` end diff --git a/jps/model-serialization/BUILD.bazel b/jps/model-serialization/BUILD.bazel index 6d0c03b4f8e3..1fe3587ca70a 100644 --- a/jps/model-serialization/BUILD.bazel +++ b/jps/model-serialization/BUILD.bazel @@ -35,7 +35,12 @@ resourcegroup( jvm_library( name = "model-serialization-tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "//jps/model-serialization", + "//platform/projectModel-impl", + "//platform/workspace/jps", + ] ) jvm_library( @@ -58,7 +63,7 @@ jvm_library( "//platform/projectModel-impl", "//jps/model-test-framework:model-testFramework", ], - runtime_deps = ["//platform/workspace/jps"] + runtime_deps = [":model-serialization-tests"] ) ### auto-generated section `build intellij.platform.jps.model.serialization.tests` end diff --git a/json/backend/tests/BUILD.bazel b/json/backend/tests/BUILD.bazel index c1c6c3ac0828..adb01acc541a 100644 --- a/json/backend/tests/BUILD.bazel +++ b/json/backend/tests/BUILD.bazel @@ -10,7 +10,11 @@ resourcegroup( jvm_library( name = "tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "//libraries/kotlinx/coroutines/core", + "//platform/ide-core-impl", + ] ) jvm_library( @@ -54,7 +58,8 @@ jvm_library( "//platform/syntax/syntax-util:util", "//platform/core-impl", "//platform/util/jdom", - ] + ], + runtime_deps = [":tests"] ) ### auto-generated section `build intellij.json.tests` end diff --git a/jvm/jvm-analysis-java-tests/BUILD.bazel b/jvm/jvm-analysis-java-tests/BUILD.bazel index 4265f33f89b7..dffe7251db3e 100644 --- a/jvm/jvm-analysis-java-tests/BUILD.bazel +++ b/jvm/jvm-analysis-java-tests/BUILD.bazel @@ -28,7 +28,8 @@ jvm_library( "//java/java-impl-refactorings:impl-refactorings", "//jvm/jvm-analysis-internal-testFramework:analysis-internal-testFramework", "@lib//:jet_check", - ] + ], + runtime_deps = [":analysis-java-tests"] ) ### auto-generated section `build intellij.jvm.analysis.java.tests` end diff --git a/jvm/jvm-analysis-kotlin-tests-k1/BUILD.bazel b/jvm/jvm-analysis-kotlin-tests-k1/BUILD.bazel index 6aaca0bdda05..f48d9c77cb9e 100644 --- a/jvm/jvm-analysis-kotlin-tests-k1/BUILD.bazel +++ b/jvm/jvm-analysis-kotlin-tests-k1/BUILD.bazel @@ -4,7 +4,8 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "analysis-kotlin-tests-k1", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = ["//plugins/kotlin/plugin/k1"] ) jvm_library( @@ -23,7 +24,7 @@ jvm_library( "//plugins/kotlin/base/test:test_test_lib", "//jvm/jvm-analysis-kotlin-tests-shared:analysis-kotlin-tests-shared_test_lib", ], - runtime_deps = ["//plugins/kotlin/plugin/k1"] + runtime_deps = [":analysis-kotlin-tests-k1"] ) ### auto-generated section `build intellij.jvm.analysis.kotlin.tests.k1` end diff --git a/jvm/jvm-analysis-kotlin-tests-k2/BUILD.bazel b/jvm/jvm-analysis-kotlin-tests-k2/BUILD.bazel index 1465cbe73981..fbc84b160ffa 100644 --- a/jvm/jvm-analysis-kotlin-tests-k2/BUILD.bazel +++ b/jvm/jvm-analysis-kotlin-tests-k2/BUILD.bazel @@ -4,7 +4,8 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "analysis-kotlin-tests-k2", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = ["//plugins/kotlin/plugin/k2"] ) jvm_library( @@ -21,7 +22,7 @@ jvm_library( "//plugins/kotlin/base/test:test_test_lib", "//jvm/jvm-analysis-kotlin-tests-shared:analysis-kotlin-tests-shared_test_lib", ], - runtime_deps = ["//plugins/kotlin/plugin/k2"] + runtime_deps = [":analysis-kotlin-tests-k2"] ) ### auto-generated section `build intellij.jvm.analysis.kotlin.tests.k2` end diff --git a/jvm/jvm-analysis-kotlin-tests-shared/BUILD.bazel b/jvm/jvm-analysis-kotlin-tests-shared/BUILD.bazel index c3e0e33b9557..600c50422fdc 100644 --- a/jvm/jvm-analysis-kotlin-tests-shared/BUILD.bazel +++ b/jvm/jvm-analysis-kotlin-tests-shared/BUILD.bazel @@ -4,7 +4,15 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "analysis-kotlin-tests-shared", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + exports = [ + "//plugins/kotlin/plugin/common", + "//jvm/jvm-analysis-internal-testFramework:analysis-internal-testFramework", + "//java/java-tests:tests", + "//java/java-impl-inspections:impl-inspections", + "//platform/testFramework/junit5", + "//plugins/kotlin/base/plugin", + ] ) jvm_library( @@ -44,7 +52,8 @@ jvm_library( "//platform/testFramework/junit5:junit5_test_lib", "//plugins/kotlin/base/plugin", "//plugins/kotlin/base/plugin:plugin_test_lib", - ] + ], + runtime_deps = [":analysis-kotlin-tests-shared"] ) ### auto-generated section `build intellij.jvm.analysis.kotlin.tests.shared` end diff --git a/platform/build-scripts/codeOptimizer/BUILD.bazel b/platform/build-scripts/codeOptimizer/BUILD.bazel index c7e59338ab44..8cd0779ecc63 100644 --- a/platform/build-scripts/codeOptimizer/BUILD.bazel +++ b/platform/build-scripts/codeOptimizer/BUILD.bazel @@ -22,7 +22,8 @@ jvm_library( deps = [ "@lib//:kotlin-stdlib", "@lib//:platform-build_scripts-code_optimizer-proguard", - ] + ], + runtime_deps = [":codeOptimizer"] ) ### auto-generated section `build intellij.platform.buildScripts.codeOptimizer` end diff --git a/platform/build-scripts/tests/BUILD.bazel b/platform/build-scripts/tests/BUILD.bazel index 258163514b22..c4ba5a831c3e 100644 --- a/platform/build-scripts/tests/BUILD.bazel +++ b/platform/build-scripts/tests/BUILD.bazel @@ -51,7 +51,8 @@ jvm_library( "//jps/model-serialization", "//jps/model-api:model", "//libraries/jsoup", - ] + ], + runtime_deps = [":tests"] ) ### auto-generated section `build intellij.platform.buildScripts.tests` end diff --git a/platform/built-in-server/BUILD.bazel b/platform/built-in-server/BUILD.bazel index 0bf0ea8a624e..437fe086d64d 100644 --- a/platform/built-in-server/BUILD.bazel +++ b/platform/built-in-server/BUILD.bazel @@ -59,7 +59,26 @@ resourcegroup( jvm_library( name = "builtInServer-tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "//platform/ide-core-impl", + "//platform/lang-core", + "//platform/projectModel-api:projectModel", + "//platform/projectModel-impl", + "//platform/platform-impl:ide-impl", + "//platform/lang-impl", + "//platform/xdebugger-api:debugger", + "//libraries/guava", + "//libraries/gson", + "//libraries/commons/imaging", + "//platform/built-in-server-api:builtInServer", + "//platform/vcs-api:vcs", + "//platform/built-in-server:builtInServer-impl", + "//libraries/kotlinx/coroutines/core", + "//libraries/netty/buffer", + "//platform/core-ui", + "//platform/platform-util-io:ide-util-io", + ] ) jvm_library( @@ -98,7 +117,8 @@ jvm_library( "//platform/core-ui", "//platform/platform-util-io:ide-util-io", "//platform/platform-util-netty:ide-util-netty", - ] + ], + runtime_deps = [":builtInServer-tests"] ) ### auto-generated section `build intellij.platform.builtInServer.tests` end diff --git a/platform/configuration-store-impl/BUILD.bazel b/platform/configuration-store-impl/BUILD.bazel index e9eb03d5eb4b..70baad83bd0a 100644 --- a/platform/configuration-store-impl/BUILD.bazel +++ b/platform/configuration-store-impl/BUILD.bazel @@ -65,7 +65,8 @@ resourcegroup( jvm_library( name = "configurationStore-tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = ["//platform/ide-core/plugins"] ) jvm_library( @@ -107,7 +108,8 @@ jvm_library( "//java/java-impl:impl", "//java/java-impl:impl_test_lib", "//platform/lang-api:lang", - ] + ], + runtime_deps = [":configurationStore-tests"] ) ### auto-generated section `build intellij.platform.configurationStore.tests` end diff --git a/platform/core-nio-fs/BUILD.bazel b/platform/core-nio-fs/BUILD.bazel index 57f57405aac3..930ffed21806 100644 --- a/platform/core-nio-fs/BUILD.bazel +++ b/platform/core-nio-fs/BUILD.bazel @@ -30,7 +30,11 @@ jvm_library( jvm_library( name = "core-nio-fs-tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "//platform/core-nio-fs", + "//platform/util", + ] ) jvm_library( @@ -48,7 +52,8 @@ jvm_library( "@lib//:kotlin-stdlib", "@lib//:kotlin-test-assertions-core-jvm", "//libraries/mockito", - ] + ], + runtime_deps = [":core-nio-fs-tests"] ) ### auto-generated section `build intellij.platform.core.nio.fs.tests` end diff --git a/platform/diff-impl/tests/BUILD.bazel b/platform/diff-impl/tests/BUILD.bazel index 074f1e986076..b98202bd0c99 100644 --- a/platform/diff-impl/tests/BUILD.bazel +++ b/platform/diff-impl/tests/BUILD.bazel @@ -10,7 +10,17 @@ resourcegroup( jvm_library( name = "tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "//platform/core-api:core", + "//platform/diff-api:diff", + "//platform/platform-api:ide", + "//platform/platform-impl:ide-impl", + "//platform/analysis-api:analysis", + "//platform/editor-ui-ex:editor-ex", + "//platform/core-impl", + "//platform/core-ui", + ] ) jvm_library( @@ -37,7 +47,8 @@ jvm_library( "//platform/core-ui", "//tools/intellij.tools.ide.metrics.benchmark:ide-metrics-benchmark", "//tools/intellij.tools.ide.metrics.benchmark:ide-metrics-benchmark_test_lib", - ] + ], + runtime_deps = [":tests"] ) ### auto-generated section `build intellij.platform.diff.tests` end diff --git a/platform/eel/BUILD.bazel b/platform/eel/BUILD.bazel index bb6fe7ad5da3..923c8dc1cdf0 100644 --- a/platform/eel/BUILD.bazel +++ b/platform/eel/BUILD.bazel @@ -19,7 +19,19 @@ jvm_library( jvm_library( name = "eel-codegen", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "@lib//:kotlin-stdlib", + "//libraries/kotlinx/coroutines/core", + "//plugins/copyright", + "//java/openapi:java", + "//java/java-impl:impl", + "//platform/testFramework", + "//platform/testFramework/junit5", + "//platform/util/jdom", + "//plugins/kotlin/base/test", + "//plugins/kotlin:kotlin-plugin-community-main", + ] ) jvm_library( @@ -53,7 +65,7 @@ jvm_library( "//plugins/kotlin/base/indices", "//platform/execution", ], - runtime_deps = ["//plugins/kotlin:kotlin-plugin-community-main"] + runtime_deps = [":eel-codegen"] ) ### auto-generated section `build intellij.platform.eel.codegen` end @@ -70,7 +82,8 @@ jps_test( jvm_library( name = "eel-tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = ["@lib//:kotlin-stdlib"] ) jvm_library( @@ -87,7 +100,8 @@ jvm_library( "@lib//:kotlin-test-assertions-core-jvm", "//libraries/kotlinx/coroutines/test", "//platform/util-class-loader:util-classLoader", - ] + ], + runtime_deps = [":eel-tests"] ) ### auto-generated section `build intellij.platform.eel.tests` end diff --git a/platform/execution-impl/BUILD.bazel b/platform/execution-impl/BUILD.bazel index 9a7d875155a7..54d95b864c8e 100644 --- a/platform/execution-impl/BUILD.bazel +++ b/platform/execution-impl/BUILD.bazel @@ -78,7 +78,8 @@ jvm_library( jvm_library( name = "execution-tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = ["//platform/forms_rt:java-guiForms-rt"] ) jvm_library( @@ -104,7 +105,8 @@ jvm_library( "//platform/eel", "//platform/eel-provider", "//platform/forms_rt:java-guiForms-rt", - ] + ], + runtime_deps = [":execution-tests"] ) ### auto-generated section `build intellij.platform.execution.tests` end diff --git a/platform/external-system-api/dependency-updater/BUILD.bazel b/platform/external-system-api/dependency-updater/BUILD.bazel index 9af923856708..530705ae9848 100644 --- a/platform/external-system-api/dependency-updater/BUILD.bazel +++ b/platform/external-system-api/dependency-updater/BUILD.bazel @@ -61,7 +61,8 @@ jvm_library( "//platform/testFramework", "//platform/testFramework:testFramework_test_lib", "//java/java-runtime:rt", - ] + ], + runtime_deps = [":externalSystem-dependencyUpdater-tests"] ) ### auto-generated section `build intellij.platform.externalSystem.dependencyUpdater.tests` end diff --git a/platform/external-system-impl/BUILD.bazel b/platform/external-system-impl/BUILD.bazel index 8893616bef09..c120a3086a46 100644 --- a/platform/external-system-impl/BUILD.bazel +++ b/platform/external-system-impl/BUILD.bazel @@ -73,7 +73,15 @@ resourcegroup( jvm_library( name = "externalSystem-tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + exports = ["//platform/lang-impl:lang-tests"], + runtime_deps = [ + "//platform/observable", + "//libraries/kotlin/reflect", + "//platform/core-ui", + "//platform/workspace/storage", + "//platform/forms_rt:java-guiForms-rt", + ] ) jvm_library( @@ -126,7 +134,8 @@ jvm_library( "//platform/execution", "//platform/forms_rt:java-guiForms-rt", ], - exports = ["//platform/lang-impl:lang-tests_test_lib"] + exports = ["//platform/lang-impl:lang-tests_test_lib"], + runtime_deps = [":externalSystem-tests"] ) ### auto-generated section `build intellij.platform.externalSystem.tests` end diff --git a/platform/indexing-tests/BUILD.bazel b/platform/indexing-tests/BUILD.bazel index d258e965d73b..ba466e07674c 100644 --- a/platform/indexing-tests/BUILD.bazel +++ b/platform/indexing-tests/BUILD.bazel @@ -4,7 +4,11 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "indexing-tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "//platform/core-impl", + "//platform/analysis-api:analysis", + ] ) jvm_library( @@ -20,7 +24,8 @@ jvm_library( "//platform/indexing-impl", "//platform/testFramework", "//platform/testFramework:testFramework_test_lib", - ] + ], + runtime_deps = [":indexing-tests"] ) ### auto-generated section `build intellij.platform.indexing.tests` end diff --git a/platform/instanceContainer/BUILD.bazel b/platform/instanceContainer/BUILD.bazel index c17b5911b876..9df7282abcfc 100644 --- a/platform/instanceContainer/BUILD.bazel +++ b/platform/instanceContainer/BUILD.bazel @@ -36,7 +36,8 @@ jvm_library( "//platform/instanceContainer", "//platform/testFramework/common", "//platform/testFramework/core", - ] + ], + runtime_deps = [":instanceContainer-tests"] ) ### auto-generated section `build intellij.platform.instanceContainer.tests` end diff --git a/platform/jewel/int-ui/int-ui-standalone-tests/BUILD.bazel b/platform/jewel/int-ui/int-ui-standalone-tests/BUILD.bazel index 173087e60a50..2e04e7b83e82 100644 --- a/platform/jewel/int-ui/int-ui-standalone-tests/BUILD.bazel +++ b/platform/jewel/int-ui/int-ui-standalone-tests/BUILD.bazel @@ -23,7 +23,11 @@ resourcegroup( jvm_library( name = "jewel-intUi-standalone-tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "@lib//:kotlin-stdlib", + "//platform/jewel/int-ui/int-ui-standalone:jewel-intUi-standalone", + ] ) jvm_library( @@ -38,7 +42,8 @@ jvm_library( "@lib//:kotlin-test", "@lib//:junit5", "//platform/jewel/int-ui/int-ui-standalone:jewel-intUi-standalone", - ] + ], + runtime_deps = [":jewel-intUi-standalone-tests"] ) ### auto-generated section `build intellij.platform.jewel.intUi.standalone.tests` end diff --git a/platform/jewel/ui-tests/BUILD.bazel b/platform/jewel/ui-tests/BUILD.bazel index d403de6c8a72..ea20f6e8bacf 100644 --- a/platform/jewel/ui-tests/BUILD.bazel +++ b/platform/jewel/ui-tests/BUILD.bazel @@ -22,7 +22,8 @@ resourcegroup( jvm_library( name = "ui-tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + plugins = ["@lib//:compose-plugin"] ) jvm_library( @@ -51,6 +52,7 @@ jvm_library( "//libraries/compose-runtime-desktop", "//libraries/kotlinx/coroutines/test", ], + runtime_deps = [":ui-tests"], plugins = ["@lib//:compose-plugin"] ) ### auto-generated section `build intellij.platform.jewel.uiTests` end diff --git a/platform/lang-impl/BUILD.bazel b/platform/lang-impl/BUILD.bazel index e8dbe5fe04b8..c6deb64ed786 100644 --- a/platform/lang-impl/BUILD.bazel +++ b/platform/lang-impl/BUILD.bazel @@ -145,7 +145,48 @@ jvm_library( jvm_library( name = "lang-tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + exports = [ + "//platform/lang-api:lang", + "//platform/platform-impl:ide-impl", + "//platform/indexing-impl", + "//platform/projectModel-impl", + "//platform/ide-core-impl", + "//platform/analysis-impl", + "//platform/structure-view-impl:structureView-impl", + ], + runtime_deps = [ + "//platform/boot", + "//platform/lang-api:lang", + "//platform/vcs-api:vcs", + "//libraries/oro-matcher", + "//platform/platform-impl:ide-impl", + "//platform/lang-impl", + "//platform/usageView", + "//libraries/cli-parser", + "//platform/indexing-api:indexing", + "//platform/indexing-impl", + "//platform/refactoring", + "//platform/projectModel-impl", + "//platform/ide-core-impl", + "//libraries/guava", + "//platform/editor-ui-ex:editor-ex", + "//libraries/gson", + "//jps/model-impl", + "//platform/analysis-impl", + "//platform/structure-view-impl:structureView-impl", + "//libraries/commons/logging", + "//libraries/jackson/jackson", + "//libraries/jackson/databind", + "//libraries/jackson/module-kotlin:libraries-jackson-module-kotlin", + "//libraries/xz", + "//libraries/kotlinx/coroutines/core", + "//platform/lang-impl/testEntities", + "//libraries/kotlinx/serialization/core", + "//libraries/kotlinx/serialization/json", + "//platform/diagnostic/telemetry", + "//platform/forms_rt:java-guiForms-rt", + ] ) jvm_library( @@ -249,7 +290,8 @@ jvm_library( "//platform/ide-core-impl", "//platform/analysis-impl", "//platform/structure-view-impl:structureView-impl", - ] + ], + runtime_deps = [":lang-tests"] ) ### auto-generated section `build intellij.platform.lang.tests` end diff --git a/platform/lang-impl/testEntities/BUILD.bazel b/platform/lang-impl/testEntities/BUILD.bazel index 88ce1febaf10..ad6017a0c4fd 100644 --- a/platform/lang-impl/testEntities/BUILD.bazel +++ b/platform/lang-impl/testEntities/BUILD.bazel @@ -4,7 +4,11 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "testEntities", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "@lib//:kotlin-stdlib", + "//platform/workspace/storage", + ] ) jvm_library( @@ -18,7 +22,8 @@ jvm_library( "//platform/testFramework:testFramework_test_lib", "//platform/workspace/storage", "//platform/projectModel-impl", - ] + ], + runtime_deps = [":testEntities"] ) ### auto-generated section `build intellij.platform.lang.testEntities` end diff --git a/platform/main/intellij.platform.backend.main/BUILD.bazel b/platform/main/intellij.platform.backend.main/BUILD.bazel index b0df220b0b32..55ebb6aeb717 100644 --- a/platform/main/intellij.platform.backend.main/BUILD.bazel +++ b/platform/main/intellij.platform.backend.main/BUILD.bazel @@ -36,29 +36,6 @@ jvm_library( module_name = "intellij.platform.backend.main", visibility = ["//visibility:public"], srcs = glob([], allow_empty = True), - runtime_deps = [ - "//platform/main/intellij.platform.main:main", - "//platform/kernel/backend", - "//platform/navbar/backend", - "//platform/project/backend", - "//platform/progress/backend", - "//platform/xdebugger-impl/backend", - "//plugins/stream-debugger-core/intellij.debugger.streams.backend:debugger-streams-backend", - "//platform/searchEverywhere/backend", - "//platform/vcs-impl", - "//platform/bookmarks/backend", - "//platform/recentFiles/backend", - "//platform/editor/backend", - "//platform/execution-impl/backend", - "//platform/execution.dashboard/backend", - "//spellchecker/xml", - "//platform/find/backend", - "//platform/managed-cache/managed.cache.backend", - "//platform/scopes/backend", - "//platform/remote-topics/backend", - "//platform/buildView/backend", - "//platform/lang-impl/backend", - "//platform/pluginManager/backend", - ] + runtime_deps = [":backend-main"] ) ### auto-generated section `build intellij.platform.backend.main` end \ No newline at end of file diff --git a/platform/main/intellij.platform.frontend.main/BUILD.bazel b/platform/main/intellij.platform.frontend.main/BUILD.bazel index a226c9e094d2..839f6d045e1b 100644 --- a/platform/main/intellij.platform.frontend.main/BUILD.bazel +++ b/platform/main/intellij.platform.frontend.main/BUILD.bazel @@ -28,21 +28,6 @@ jvm_library( module_name = "intellij.platform.frontend.main", visibility = ["//visibility:public"], srcs = glob([], allow_empty = True), - runtime_deps = [ - "//platform/main/intellij.platform.main:main", - "//platform/navbar/frontend", - "//platform/xdebugger-impl/frontend", - "//platform/searchEverywhere/frontend", - "//platform/vcs-impl/frontend", - "//platform/bookmarks/frontend", - "//platform/recentFiles/frontend", - "//platform/pluginManager/frontend", - "//platform/execution-impl/frontend", - "//platform/execution.dashboard/frontend", - "//platform/execution.serviceView/frontend", - "//platform/remote-topics/frontend", - "//platform/buildView/frontend", - "//platform/completion/frontend", - ] + runtime_deps = [":frontend-main"] ) ### auto-generated section `build intellij.platform.frontend.main` end \ No newline at end of file diff --git a/platform/main/intellij.platform.main/BUILD.bazel b/platform/main/intellij.platform.main/BUILD.bazel index a8b689eced8f..621c5edbb38d 100644 --- a/platform/main/intellij.platform.main/BUILD.bazel +++ b/platform/main/intellij.platform.main/BUILD.bazel @@ -30,23 +30,6 @@ jvm_library( module_name = "intellij.platform.main", visibility = ["//visibility:public"], srcs = glob([], allow_empty = True), - runtime_deps = [ - "//platform/bootstrap", - "//platform/remote-servers/clouds", - "//platform/execution.dashboard", - "//platform/execution.serviceView", - "//platform/kernel/shared:kernel", - "//platform/kernel/intellij.platform.kernel.impl:impl", - "//platform/platform-impl/ui-inspector:ide-ui-inspector", - "//platform/inline-completion/shared:inline-completion", - "//platform/bookmarks", - "//platform/todo", - "//platform/find", - "//platform/settings-local", - "//platform/xdebugger-impl/shared", - "//platform/xdebugger-impl/rpc", - "//platform/remote-topics/shared:rpc-topics", - "//platform/pluginManager/shared", - ] + runtime_deps = [":main"] ) ### auto-generated section `build intellij.platform.main` end \ No newline at end of file diff --git a/platform/main/intellij.platform.monolith.main/BUILD.bazel b/platform/main/intellij.platform.monolith.main/BUILD.bazel index 93a230ea1fca..c98576f8e0b3 100644 --- a/platform/main/intellij.platform.monolith.main/BUILD.bazel +++ b/platform/main/intellij.platform.monolith.main/BUILD.bazel @@ -18,11 +18,6 @@ jvm_library( module_name = "intellij.platform.monolith.main", visibility = ["//visibility:public"], srcs = glob([], allow_empty = True), - runtime_deps = [ - "//platform/main/intellij.platform.frontend.main:frontend-main", - "//platform/main/intellij.platform.backend.main:backend-main", - "//platform/monolith", - "//platform/navbar/monolith", - ] + runtime_deps = [":monolith-main"] ) ### auto-generated section `build intellij.platform.monolith.main` end \ No newline at end of file diff --git a/platform/object-serializer/BUILD.bazel b/platform/object-serializer/BUILD.bazel index 1a0a37f446ca..99060b2f35e2 100644 --- a/platform/object-serializer/BUILD.bazel +++ b/platform/object-serializer/BUILD.bazel @@ -74,7 +74,13 @@ jvm_library( jvm_library( name = "objectSerializer-tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "@lib//:kotlin-stdlib", + "//platform/util-ex", + "//libraries/ion", + "//libraries/fastutil", + ] ) jvm_library( @@ -95,7 +101,8 @@ jvm_library( "//platform/object-serializer:objectSerializer-annotations", "//libraries/ion", "//libraries/fastutil", - ] + ], + runtime_deps = [":objectSerializer-tests"] ) ### auto-generated section `build intellij.platform.objectSerializer.tests` end diff --git a/platform/platform-tests/BUILD.bazel b/platform/platform-tests/BUILD.bazel index 15942a62ff6a..3eda94ea05d0 100644 --- a/platform/platform-tests/BUILD.bazel +++ b/platform/platform-tests/BUILD.bazel @@ -10,7 +10,37 @@ resourcegroup( jvm_library( name = "tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "//platform/forms_rt:java-guiForms-rt", + "//platform/lang-api:lang", + "//platform/lang-impl", + "//platform/observable", + "//platform/vcs-api:vcs", + "//platform/testFramework", + "//platform/platform-impl:ide-impl", + "//platform/usageView", + "//platform/ide-core-impl", + "//platform/ide-core/plugins", + "//platform/workspace/storage", + "//platform/platform-impl/codeinsight-inline:ide-codeinsight-inline", + "//platform/editor-ui-ex:editor-ex", + "//platform/workspace/jps", + "//platform/platform-impl/bootstrap", + "//platform/lvcs-impl", + "//platform/vcs-impl", + "//xml/dom-impl", + "//xml/relaxng", + "//spellchecker", + "//platform/xdebugger-impl:debugger-impl", + "//platform/platform-impl/concurrency", + "//libraries/kotlin/reflect", + "//platform/settings", + "//libraries/jsvg", + "//platform/util/storages", + "//libraries/kotlinx/collections-immutable:libraries-kotlinx-collections-immutable", + "//platform/eel-impl", + ] ) jvm_library( @@ -184,11 +214,7 @@ jvm_library( "@lib//:jet_check", "@lib//:jediterm-core", ], - runtime_deps = [ - "//xml/dom-impl", - "//xml/relaxng", - "//platform/xdebugger-impl:debugger-impl", - ] + runtime_deps = [":tests"] ) ### auto-generated section `build intellij.platform.tests` end diff --git a/platform/platform-tests/benchmarks/BUILD.bazel b/platform/platform-tests/benchmarks/BUILD.bazel index 8cee9d8ad9b5..848937bb36c7 100644 --- a/platform/platform-tests/benchmarks/BUILD.bazel +++ b/platform/platform-tests/benchmarks/BUILD.bazel @@ -12,7 +12,13 @@ kt_javac_options( jvm_library( name = "benchmarks", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "//platform/platform-impl:ide-impl", + "//platform/util/storages", + "//platform/indexing-impl", + "//platform/lang-impl", + ] ) jvm_library( @@ -38,7 +44,8 @@ jvm_library( "//platform/lang-impl", "//platform/util:util-tests_test_lib", "//platform/core-impl", - ] + ], + runtime_deps = [":benchmarks"] ) ### auto-generated section `build intellij.platform.benchmarks` end diff --git a/platform/platform-tests/durability/BUILD.bazel b/platform/platform-tests/durability/BUILD.bazel index 4b73131d61c3..29b527fb798d 100644 --- a/platform/platform-tests/durability/BUILD.bazel +++ b/platform/platform-tests/durability/BUILD.bazel @@ -13,7 +13,14 @@ create_kotlinc_options( jvm_library( name = "durability", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "//platform/util-ex", + "//platform/platform-impl:ide-impl", + "//platform/util", + "//platform/util/storages", + "//libraries/fastutil", + ] ) jvm_library( @@ -35,7 +42,8 @@ jvm_library( "//platform/util", "//platform/util/storages", "//libraries/fastutil", - ] + ], + runtime_deps = [":durability"] ) ### auto-generated section `build intellij.platform.durability` end diff --git a/platform/polySymbols/BUILD.bazel b/platform/polySymbols/BUILD.bazel index 254eddad0e56..bb417534165b 100644 --- a/platform/polySymbols/BUILD.bazel +++ b/platform/polySymbols/BUILD.bazel @@ -82,7 +82,30 @@ resourcegroup( jvm_library( name = "polySymbols-tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "//platform/analysis-api:analysis", + "//platform/lang-impl", + "//platform/platform-impl:ide-impl", + "//platform/core-ui", + "//platform/editor-ui-ex:editor-ex", + "//platform/core-api:core", + "//platform/usageView", + "//platform/refactoring", + "//libraries/jackson/databind", + "//platform/analysis-impl", + "//libraries/jackson/jackson", + "//libraries/jackson/module-kotlin:libraries-jackson-module-kotlin", + "//libraries/fastutil", + "//libraries/commons/compress", + "//libraries/markdown", + "//libraries/gson", + "//platform/markdown-utils", + "//platform/testFramework", + "//platform/polySymbols", + "//platform/polySymbols:polySymbols-testFramework", + "//java/java-runtime:rt", + ] ) jvm_library( @@ -117,7 +140,8 @@ jvm_library( "//platform/polySymbols", "//platform/polySymbols:polySymbols-testFramework", "//java/java-runtime:rt", - ] + ], + runtime_deps = [":polySymbols-tests"] ) ### auto-generated section `build intellij.platform.polySymbols.tests` end diff --git a/platform/remote-servers/target-integration-tests/BUILD.bazel b/platform/remote-servers/target-integration-tests/BUILD.bazel index af226514d681..8c8fd4448c4b 100644 --- a/platform/remote-servers/target-integration-tests/BUILD.bazel +++ b/platform/remote-servers/target-integration-tests/BUILD.bazel @@ -4,7 +4,17 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "remoteServers-targetsIntegrationTests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "@lib//:assert_j", + "//libraries/kotlinx/coroutines/core", + "@lib//:kotlin-stdlib", + "//java/execution/impl", + "//java/debugger/openapi:java-debugger", + "//java/debugger/impl", + "//java/testFramework", + "//platform/core-ui", + ] ) jvm_library( @@ -39,7 +49,8 @@ jvm_library( "//java/java-tests:tests_test_lib", "//platform/util/jdom", "//platform/execution", - ] + ], + runtime_deps = [":remoteServers-targetsIntegrationTests"] ) ### auto-generated section `build intellij.platform.remoteServers.targetsIntegrationTests` end diff --git a/platform/runtime/product/tests/BUILD.bazel b/platform/runtime/product/tests/BUILD.bazel index c46fa814de14..bb1d5eea9194 100644 --- a/platform/runtime/product/tests/BUILD.bazel +++ b/platform/runtime/product/tests/BUILD.bazel @@ -4,7 +4,8 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = ["//platform/runtime/product"] ) jvm_library( @@ -18,7 +19,8 @@ jvm_library( "//platform/testFramework:testFramework_test_lib", "//platform/runtime/repository", "//platform/runtime/repository/tests:tests_test_lib", - ] + ], + runtime_deps = [":tests"] ) ### auto-generated section `build intellij.platform.runtime.product.tests` end diff --git a/platform/runtime/repository/tests/BUILD.bazel b/platform/runtime/repository/tests/BUILD.bazel index b70868741afb..4cd823c8d740 100644 --- a/platform/runtime/repository/tests/BUILD.bazel +++ b/platform/runtime/repository/tests/BUILD.bazel @@ -4,7 +4,8 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = ["//platform/runtime/repository"] ) jvm_library( @@ -18,7 +19,8 @@ jvm_library( "//platform/testFramework", "//platform/testFramework:testFramework_test_lib", "@lib//:junit5Pioneer", - ] + ], + runtime_deps = [":tests"] ) ### auto-generated section `build intellij.platform.runtime.repository.tests` end diff --git a/platform/statistics/envTests/BUILD.bazel b/platform/statistics/envTests/BUILD.bazel index 04dcdedc2179..1695ac0dd291 100644 --- a/platform/statistics/envTests/BUILD.bazel +++ b/platform/statistics/envTests/BUILD.bazel @@ -4,7 +4,13 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "envTests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "//platform/statistics", + "//platform/core-ui", + "//libraries/jackson/jackson", + "//libraries/jackson/databind", + ] ) jvm_library( @@ -26,7 +32,8 @@ jvm_library( "//platform/statistics/uploader", "//libraries/jackson/jackson", "//libraries/jackson/databind", - ] + ], + runtime_deps = [":envTests"] ) ### auto-generated section `build intellij.platform.statistics.envTests` end diff --git a/platform/structuralsearch/BUILD.bazel b/platform/structuralsearch/BUILD.bazel index 10cf1923343b..d416fcdae68b 100644 --- a/platform/structuralsearch/BUILD.bazel +++ b/platform/structuralsearch/BUILD.bazel @@ -46,7 +46,11 @@ jvm_library( jvm_library( name = "structuralSearch-tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "//platform/structuralsearch:structuralSearch", + "//xml/impl", + ] ) jvm_library( @@ -70,7 +74,8 @@ jvm_library( "//tools/intellij.tools.ide.metrics.benchmark:ide-metrics-benchmark_test_lib", "//platform/testRunner", "//platform/testRunner:testRunner_test_lib", - ] + ], + runtime_deps = [":structuralSearch-tests"] ) ### auto-generated section `build intellij.platform.structuralSearch.tests` end diff --git a/platform/syntax/syntax-psi-tests/BUILD.bazel b/platform/syntax/syntax-psi-tests/BUILD.bazel index 5139733db546..e9ddf6ce88b0 100644 --- a/platform/syntax/syntax-psi-tests/BUILD.bazel +++ b/platform/syntax/syntax-psi-tests/BUILD.bazel @@ -32,7 +32,8 @@ jvm_library( "@lib//:junit5", "//platform/testFramework", "//platform/testFramework:testFramework_test_lib", - ] + ], + runtime_deps = [":psi-tests"] ) ### auto-generated section `build intellij.platform.syntax.psi.tests` end diff --git a/platform/util/BUILD.bazel b/platform/util/BUILD.bazel index 29e6cf8ce9ab..8712a92438b5 100644 --- a/platform/util/BUILD.bazel +++ b/platform/util/BUILD.bazel @@ -72,7 +72,11 @@ resourcegroup( jvm_library( name = "util-tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "//platform/core-impl", + "//libraries/kotlinx/coroutines/debug", + ] ) jvm_library( @@ -130,7 +134,8 @@ jvm_library( "//platform/ijent/buildConstants", "//platform/testFramework/monorepo", "//platform/testFramework/monorepo:monorepo_test_lib", - ] + ], + runtime_deps = [":util-tests"] ) ### auto-generated section `build intellij.platform.util.tests` end diff --git a/platform/util/coroutines/BUILD.bazel b/platform/util/coroutines/BUILD.bazel index d86f60b5e7fa..9aa514a601f2 100644 --- a/platform/util/coroutines/BUILD.bazel +++ b/platform/util/coroutines/BUILD.bazel @@ -37,7 +37,8 @@ jvm_library( "//platform/util/coroutines", "//platform/util/concurrency", "//platform/util/concurrency:concurrency_test_lib", - ] + ], + runtime_deps = [":coroutines-tests"] ) ### auto-generated section `build intellij.platform.util.coroutines.tests` end diff --git a/platform/util/immutable-key-value-store/benchmark/BUILD.bazel b/platform/util/immutable-key-value-store/benchmark/BUILD.bazel index a6d4f8073ab0..2da9f3a8f1f8 100644 --- a/platform/util/immutable-key-value-store/benchmark/BUILD.bazel +++ b/platform/util/immutable-key-value-store/benchmark/BUILD.bazel @@ -20,7 +20,8 @@ jvm_library( "//platform/util/rt-java8", "@community//build:zip", "//libraries/hash4j", - ] + ], + runtime_deps = [":benchmark"] ) ### auto-generated section `build intellij.platform.util.immutableKeyValueStore.benchmark` end diff --git a/platform/util/progress/BUILD.bazel b/platform/util/progress/BUILD.bazel index 0522f2c23ed1..2622752ad448 100644 --- a/platform/util/progress/BUILD.bazel +++ b/platform/util/progress/BUILD.bazel @@ -54,7 +54,8 @@ jvm_library( "@lib//:junit4", "//platform/testFramework", "//platform/testFramework:testFramework_test_lib", - ] + ], + runtime_deps = [":progress-tests"] ) ### auto-generated section `build intellij.platform.util.progress.tests` end diff --git a/platform/vcs-tests/BUILD.bazel b/platform/vcs-tests/BUILD.bazel index 0d366dea8032..8622384521c8 100644 --- a/platform/vcs-tests/BUILD.bazel +++ b/platform/vcs-tests/BUILD.bazel @@ -30,7 +30,28 @@ jvm_library( jvm_library( name = "vcs-tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + exports = ["//platform/vcs-tests:vcs-testFramework"], + runtime_deps = [ + "@lib//:kotlin-stdlib", + "//platform/vcs-tests:vcs-testFramework", + "//platform/vcs-impl", + "//platform/lang-impl", + "//platform/vcs-impl/lang", + "//platform/vcs-api/vcs-api-core:vcs-core", + "//platform/vcs-api:vcs", + "//platform/core-api:core", + "//platform/ide-core-impl", + "//platform/projectModel-impl", + "@lib//:junit4", + "//platform/util-ex", + "//platform/indexing-impl", + "//platform/platform-api:ide", + "//platform/diff-impl", + "@lib//:assert_j", + "//platform/core-ui", + "//libraries/fastutil", + ] ) jvm_library( @@ -81,7 +102,8 @@ jvm_library( "@lib//:app-cash-turbine-jvm", "@lib//:mockito-kotlin", ], - exports = ["//platform/vcs-tests:vcs-testFramework"] + exports = ["//platform/vcs-tests:vcs-testFramework"], + runtime_deps = [":vcs-tests"] ) ### auto-generated section `build intellij.platform.vcs.tests` end diff --git a/platform/workspace/jps/tests/BUILD.bazel b/platform/workspace/jps/tests/BUILD.bazel index fb8a4a212c22..6022d54ed3da 100644 --- a/platform/workspace/jps/tests/BUILD.bazel +++ b/platform/workspace/jps/tests/BUILD.bazel @@ -10,7 +10,15 @@ resourcegroup( jvm_library( name = "tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "//platform/workspace/storage", + "//platform/workspace/jps", + "//libraries/fastutil", + "//platform/lang-impl:lang-tests", + "//platform/core-ui", + "//libraries/kotlinx/collections-immutable:libraries-kotlinx-collections-immutable", + ] ) jvm_library( @@ -57,7 +65,8 @@ jvm_library( "@lib//:jet_check", "//platform/testFramework/junit5/projectStructure", "//platform/testFramework/junit5/projectStructure:projectStructure_test_lib", - ] + ], + runtime_deps = [":tests"] ) ### auto-generated section `build intellij.platform.workspace.jps.tests` end diff --git a/platform/workspace/storage/testEntities/BUILD.bazel b/platform/workspace/storage/testEntities/BUILD.bazel index 978fa6dddac1..5733e9c99329 100644 --- a/platform/workspace/storage/testEntities/BUILD.bazel +++ b/platform/workspace/storage/testEntities/BUILD.bazel @@ -4,7 +4,8 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "testEntities", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = ["//libraries/kotlin/reflect"] ) jvm_library( @@ -17,7 +18,8 @@ jvm_library( "//platform/testFramework", "//platform/testFramework:testFramework_test_lib", "//libraries/kotlin/reflect", - ] + ], + runtime_deps = [":testEntities"] ) ### auto-generated section `build intellij.platform.workspace.storage.testEntities` end diff --git a/platform/workspace/storage/tests/BUILD.bazel b/platform/workspace/storage/tests/BUILD.bazel index d658011ccfe5..95b286581037 100644 --- a/platform/workspace/storage/tests/BUILD.bazel +++ b/platform/workspace/storage/tests/BUILD.bazel @@ -20,7 +20,13 @@ resourcegroup( jvm_library( name = "tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "//platform/analysis-api:analysis", + "@lib//:kotlin-test", + "//libraries/kryo5", + "//libraries/kotlinx/collections-immutable:libraries-kotlinx-collections-immutable", + ] ) jvm_library( @@ -45,7 +51,8 @@ jvm_library( "//platform/testFramework/junit5:junit5_test_lib", "//libraries/kotlinx/collections-immutable:libraries-kotlinx-collections-immutable", "@lib//:jet_check", - ] + ], + runtime_deps = [":tests"] ) ### auto-generated section `build intellij.platform.workspace.storage.tests` end diff --git a/plugins/IntelliLang/tests/BUILD.bazel b/plugins/IntelliLang/tests/BUILD.bazel index 548a67ae902b..3bdb84a0b60d 100644 --- a/plugins/IntelliLang/tests/BUILD.bazel +++ b/plugins/IntelliLang/tests/BUILD.bazel @@ -44,7 +44,8 @@ jvm_library( "//platform/util/jdom", "//plugins/IntelliLang/backend", "//plugins/markdown/plugin:plugin-main", - ] + ], + runtime_deps = [":tests"] ) ### auto-generated section `build intellij.platform.langInjection.tests` end diff --git a/plugins/ant/jps-plugin/BUILD.bazel b/plugins/ant/jps-plugin/BUILD.bazel index 67639a4b0342..3bbd80646d94 100644 --- a/plugins/ant/jps-plugin/BUILD.bazel +++ b/plugins/ant/jps-plugin/BUILD.bazel @@ -29,7 +29,11 @@ jvm_library( jvm_library( name = "jps-tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "//plugins/ant/jps-plugin:jps", + "@lib//:kotlin-stdlib", + ] ) jvm_library( @@ -46,7 +50,8 @@ jvm_library( "//platform/testFramework", "//platform/testFramework:testFramework_test_lib", "@lib//:kotlin-stdlib", - ] + ], + runtime_deps = [":jps-tests"] ) ### auto-generated section `build intellij.ant.jps.tests` end diff --git a/plugins/completion-ml-ranking-models/BUILD.bazel b/plugins/completion-ml-ranking-models/BUILD.bazel index fb4c37241c89..9762883cb130 100644 --- a/plugins/completion-ml-ranking-models/BUILD.bazel +++ b/plugins/completion-ml-ranking-models/BUILD.bazel @@ -58,7 +58,8 @@ jvm_library( "//plugins/completion-ml-ranking-models", "//plugins/completion-ml-ranking", "//platform/platform-impl/internal", - ] + ], + runtime_deps = [":completionMlRankingModels-tests"] ) ### auto-generated section `build intellij.completionMlRankingModels.tests` end diff --git a/plugins/completion-ml-ranking/BUILD.bazel b/plugins/completion-ml-ranking/BUILD.bazel index 1a3b62c10c0e..c10fcd3ad3e2 100644 --- a/plugins/completion-ml-ranking/BUILD.bazel +++ b/plugins/completion-ml-ranking/BUILD.bazel @@ -52,7 +52,8 @@ jvm_library( jvm_library( name = "completionMlRanking-tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = ["//platform/core-ui"] ) jvm_library( @@ -75,7 +76,8 @@ jvm_library( "//platform/core-ui", "//platform/platform-impl/internal", "//platform/ml-api:ml", - ] + ], + runtime_deps = [":completionMlRanking-tests"] ) ### auto-generated section `build intellij.completionMlRanking.tests` end diff --git a/plugins/compose/intellij.compose.ide.plugin.k1/BUILD.bazel b/plugins/compose/intellij.compose.ide.plugin.k1/BUILD.bazel index 4f78ed833acc..2cc12e82229c 100644 --- a/plugins/compose/intellij.compose.ide.plugin.k1/BUILD.bazel +++ b/plugins/compose/intellij.compose.ide.plugin.k1/BUILD.bazel @@ -79,7 +79,8 @@ jvm_library( "//plugins/kotlin/gradle/gradle-java/tests.shared:tests.shared_test_lib", "//plugins/gradle:gradle-tests_test_lib", "//platform/external-system-impl:externalSystem-tests_test_lib", - ] + ], + runtime_deps = [":ide-plugin-k1-tests"] ) ### auto-generated section `build intellij.compose.ide.plugin.k1.tests` end diff --git a/plugins/compose/intellij.compose.ide.plugin.k2/BUILD.bazel b/plugins/compose/intellij.compose.ide.plugin.k2/BUILD.bazel index 89e1889ee6c8..76d3799549ef 100644 --- a/plugins/compose/intellij.compose.ide.plugin.k2/BUILD.bazel +++ b/plugins/compose/intellij.compose.ide.plugin.k2/BUILD.bazel @@ -86,7 +86,8 @@ jvm_library( "//plugins/kotlin/gradle/gradle-java/tests.shared:tests.shared_test_lib", "//plugins/gradle:gradle-tests_test_lib", "//platform/external-system-impl:externalSystem-tests_test_lib", - ] + ], + runtime_deps = [":ide-plugin-k2-tests"] ) ### auto-generated section `build intellij.compose.ide.plugin.k2.tests` end diff --git a/plugins/compose/intellij.compose.ide.plugin.projectStructureTests/BUILD.bazel b/plugins/compose/intellij.compose.ide.plugin.projectStructureTests/BUILD.bazel index 2971ef5d11d1..6696b16ce9e6 100644 --- a/plugins/compose/intellij.compose.ide.plugin.projectStructureTests/BUILD.bazel +++ b/plugins/compose/intellij.compose.ide.plugin.projectStructureTests/BUILD.bazel @@ -20,7 +20,8 @@ jvm_library( "//platform/util", "//platform/testFramework", "//platform/testFramework:testFramework_test_lib", - ] + ], + runtime_deps = [":ide-plugin-projectStructureTests"] ) ### auto-generated section `build intellij.compose.ide.plugin.projectStructureTests` end diff --git a/plugins/compose/intellij.compose.ide.plugin.shared/BUILD.bazel b/plugins/compose/intellij.compose.ide.plugin.shared/BUILD.bazel index 4b4f50e88c18..f4dee6dc4c8f 100644 --- a/plugins/compose/intellij.compose.ide.plugin.shared/BUILD.bazel +++ b/plugins/compose/intellij.compose.ide.plugin.shared/BUILD.bazel @@ -96,7 +96,8 @@ jvm_library( "//platform/external-system-impl:externalSystem-tests_test_lib", "@lib//:kotlinc-kotlin-compiler-tests", "//plugins/gradle/tooling-extension-impl:toolingExtension-tests_test_lib", - ] + ], + runtime_deps = [":ide-plugin-shared-tests"] ) ### auto-generated section `build intellij.compose.ide.plugin.shared.tests` end diff --git a/plugins/configuration-script/BUILD.bazel b/plugins/configuration-script/BUILD.bazel index b5ed1d5b1e42..3942ae5b4d57 100644 --- a/plugins/configuration-script/BUILD.bazel +++ b/plugins/configuration-script/BUILD.bazel @@ -90,7 +90,11 @@ jps_test( jvm_library( name = "configurationScript-test-java", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "//platform/execution", + "//platform/lang-impl", + ] ) jvm_library( @@ -110,7 +114,8 @@ jvm_library( "//platform/testFramework:testFramework_test_lib", "@lib//:assert_j", "//platform/lang-impl", - ] + ], + runtime_deps = [":configurationScript-test-java"] ) ### auto-generated section `build intellij.configurationScript.test.java` end diff --git a/plugins/dev/BUILD.bazel b/plugins/dev/BUILD.bazel index 2eeae0e04e44..0d5e9071f2e2 100644 --- a/plugins/dev/BUILD.bazel +++ b/plugins/dev/BUILD.bazel @@ -18,12 +18,7 @@ jvm_library( module_name = "intellij.dev.noJava.plugin.main", visibility = ["//visibility:public"], srcs = glob([], allow_empty = True), - runtime_deps = [ - "//plugins/dev/intellij.dev:dev", - "//plugins/dev/intellij.dev.codeInsight:codeInsight", - "//plugins/dev/intellij.dev.psiViewer:psiViewer", - "//platform/statistics/devkit", - ] + runtime_deps = [":dev-noJava-plugin-main"] ) ### auto-generated section `build intellij.dev.noJava.plugin.main` end @@ -45,11 +40,6 @@ jvm_library( module_name = "intellij.dev.plugin.main", visibility = ["//visibility:public"], srcs = glob([], allow_empty = True), - runtime_deps = [ - "//plugins/dev:dev-noJava-plugin-main", - "//plugins/dev/intellij.java.dev:java-dev", - "//plugins/dev/intellij.groovy.dev:groovy-dev", - "//plugins/dev/intellij.kotlin.dev:kotlin-dev", - ] + runtime_deps = [":dev-plugin-main"] ) ### auto-generated section `build intellij.dev.plugin.main` end \ No newline at end of file diff --git a/plugins/devkit/BUILD.bazel b/plugins/devkit/BUILD.bazel index 4e9b79faf686..44cf74be9f7d 100644 --- a/plugins/devkit/BUILD.bazel +++ b/plugins/devkit/BUILD.bazel @@ -36,14 +36,9 @@ jvm_library( visibility = ["//visibility:public"], srcs = glob([], allow_empty = True), runtime_deps = [ - "//plugins/devkit:devkit-plugin-main-noKotlin", - "//plugins/devkit/intellij.kotlin.devkit:kotlin-devkit", - "//plugins/devkit/intellij.kotlin.devkit/k1", - "//plugins/devkit/intellij.kotlin.devkit/k2", + ":devkit-plugin-main", "//plugins/devkit/devkit-kotlin-tests:kotlin-tests_test_lib", - "//plugins/devkit/intellij.devkit.workspaceModel:workspaceModel", "//plugins/devkit/intellij.devkit.workspaceModel/tests:tests_test_lib", - "//plugins/devkit/intellij.devkit.compose:compose", ] ) ### auto-generated section `build intellij.devkit.plugin.main` end @@ -77,21 +72,8 @@ jvm_library( visibility = ["//visibility:public"], srcs = glob([], allow_empty = True), runtime_deps = [ - "//plugins/devkit", - "//plugins/devkit/devkit-core:core", - "//plugins/devkit/intellij.devkit.debugger:debugger", - "//plugins/devkit/intellij.devkit.gradle:gradle", - "//plugins/devkit/intellij.devkit.i18n:i18n", - "//plugins/devkit/intellij.devkit.intelliLang:intelliLang", - "//plugins/devkit/intellij.devkit.themes:themes", - "//plugins/devkit/intellij.devkit.uiDesigner:uiDesigner", - "//plugins/devkit/jps-plugin:jps", - "//plugins/devkit/runtimeModuleRepository/jps", - "//plugins/devkit/intellij.devkit.scaffolding:scaffolding", + ":devkit-plugin-main-noKotlin", "//plugins/devkit/devkit-java-tests:java-tests_test_lib", - "//plugins/devkit/intellij.devkit.stacktrace:stacktrace", - "//plugins/devkit/api-dump", - "//plugins/devkit/api-dump-lang:apiDump-lang", ] ) ### auto-generated section `build intellij.devkit.plugin.main.noKotlin` end \ No newline at end of file diff --git a/plugins/devkit/devkit-java-tests/BUILD.bazel b/plugins/devkit/devkit-java-tests/BUILD.bazel index ed98f2957acc..3cadd4802883 100644 --- a/plugins/devkit/devkit-java-tests/BUILD.bazel +++ b/plugins/devkit/devkit-java-tests/BUILD.bazel @@ -10,7 +10,20 @@ resourcegroup( jvm_library( name = "java-tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "@lib//:jetbrains-annotations", + "//platform/ide-core-impl", + "//plugins/devkit", + "//xml/dom-impl", + "//jvm/jvm-analysis-api:analysis", + "//platform/usageView", + "//plugins/devkit/devkit-tests:testFramework", + "//platform/testFramework/junit5/codeInsight", + "//plugins/properties:properties-backend", + "//platform/core-ui", + "//plugins/properties/properties-psi-impl:backend-psi", + ] ) jvm_library( @@ -72,7 +85,7 @@ jvm_library( "//plugins/kotlin/base/plugin:plugin_test_lib", "//java/codeserver/highlighting", ], - runtime_deps = ["//plugins/devkit"] + runtime_deps = [":java-tests"] ) ### auto-generated section `build intellij.devkit.java.tests` end diff --git a/plugins/devkit/devkit-kotlin-fir-tests/BUILD.bazel b/plugins/devkit/devkit-kotlin-fir-tests/BUILD.bazel index 14883bd35847..12a2006a12f6 100644 --- a/plugins/devkit/devkit-kotlin-fir-tests/BUILD.bazel +++ b/plugins/devkit/devkit-kotlin-fir-tests/BUILD.bazel @@ -10,7 +10,19 @@ resourcegroup( jvm_library( name = "kotlin-fir-tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "@lib//:kotlin-stdlib", + "//plugins/kotlin/code-insight/kotlin.code-insight.k2:kotlin-codeInsight", + "//plugins/devkit", + "//plugins/devkit/devkit-core:core", + "//plugins/devkit/devkit-tests:testFramework", + "//java/testFramework", + "//plugins/kotlin:kotlin-plugin-community-main", + "//plugins/devkit/intellij.kotlin.devkit:kotlin-devkit", + "//plugins/devkit/intellij.kotlin.devkit/k2", + "//platform/core-ui", + ] ) jvm_library( @@ -51,10 +63,7 @@ jvm_library( "//plugins/kotlin/test-framework:test-framework_test_lib", "//plugins/kotlin/intellij.kotlin.base.test:base-test_test_lib", ], - runtime_deps = [ - "//plugins/kotlin:kotlin-plugin-community-main", - "//plugins/devkit/intellij.kotlin.devkit/k2", - ] + runtime_deps = [":kotlin-fir-tests"] ) ### auto-generated section `build intellij.devkit.kotlin.fir.tests` end diff --git a/plugins/devkit/devkit-kotlin-tests/BUILD.bazel b/plugins/devkit/devkit-kotlin-tests/BUILD.bazel index 24952101288e..92123e66563a 100644 --- a/plugins/devkit/devkit-kotlin-tests/BUILD.bazel +++ b/plugins/devkit/devkit-kotlin-tests/BUILD.bazel @@ -10,7 +10,11 @@ resourcegroup( jvm_library( name = "kotlin-tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "//plugins/devkit", + "//plugins/devkit/devkit-tests:testFramework", + ] ) jvm_library( @@ -55,7 +59,7 @@ jvm_library( "//plugins/kotlin/base/plugin:plugin_test_lib", "//platform/execution", ], - runtime_deps = ["//plugins/devkit"] + runtime_deps = [":kotlin-tests"] ) ### auto-generated section `build intellij.devkit.kotlin.tests` end diff --git a/plugins/devkit/devkit-tests/BUILD.bazel b/plugins/devkit/devkit-tests/BUILD.bazel index 91a2d1c976d5..4fc90e99b655 100644 --- a/plugins/devkit/devkit-tests/BUILD.bazel +++ b/plugins/devkit/devkit-tests/BUILD.bazel @@ -4,7 +4,19 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "testFramework", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "//plugins/devkit/devkit-core:core", + "//java/testFramework", + "//platform/util", + "//platform/testFramework", + "//xml/dom-tests", + "//java/compiler:compiler-tests", + "//xml/dom-openapi:dom", + "//xml/dom-impl", + "//java/compiler/openapi:java-compiler", + "//jvm/jvm-analysis-api:analysis", + ] ) jvm_library( @@ -37,7 +49,8 @@ jvm_library( "//spellchecker", "//spellchecker:spellchecker_test_lib", "//plugins/grazie/src:core", - ] + ], + runtime_deps = [":testFramework"] ) ### auto-generated section `build intellij.devkit.testFramework` end diff --git a/plugins/devkit/intellij.devkit.workspaceModel/tests/BUILD.bazel b/plugins/devkit/intellij.devkit.workspaceModel/tests/BUILD.bazel index a425281eee14..77c63343eb81 100644 --- a/plugins/devkit/intellij.devkit.workspaceModel/tests/BUILD.bazel +++ b/plugins/devkit/intellij.devkit.workspaceModel/tests/BUILD.bazel @@ -4,7 +4,18 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "//plugins/devkit", + "//libraries/kotlinx/coroutines/core", + "//platform/workspace/jps/tests", + "@lib//:workspace-model-codegen", + "//plugins/kotlin/tests-common:common-tests", + "//libraries/rd/core", + "//libraries/rd/framework", + "//platform/util/jdom", + "//plugins/editorconfig:editorconfig-plugin", + ] ) jvm_library( @@ -54,7 +65,7 @@ jvm_library( "//plugins/editorconfig:editorconfig-plugin", "@lib//:studio-platform", ], - runtime_deps = ["//plugins/devkit"] + runtime_deps = [":tests"] ) ### auto-generated section `build intellij.devkit.workspaceModel.tests` end diff --git a/plugins/devkit/jps-plugin/BUILD.bazel b/plugins/devkit/jps-plugin/BUILD.bazel index 7734c5cd1fde..dc51a7e2d3ed 100644 --- a/plugins/devkit/jps-plugin/BUILD.bazel +++ b/plugins/devkit/jps-plugin/BUILD.bazel @@ -32,7 +32,11 @@ jvm_library( jvm_library( name = "jps-tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "//plugins/devkit/jps-plugin:jps", + "//jps/model-impl", + ] ) jvm_library( @@ -53,7 +57,8 @@ jvm_library( "//platform/testFramework", "//platform/testFramework:testFramework_test_lib", "//java/compiler/instrumentation-util", - ] + ], + runtime_deps = [":jps-tests"] ) ### auto-generated section `build intellij.devkit.jps.tests` end diff --git a/plugins/editorconfig/BUILD.bazel b/plugins/editorconfig/BUILD.bazel index f1198e75aaf8..5d7f3acd77f1 100644 --- a/plugins/editorconfig/BUILD.bazel +++ b/plugins/editorconfig/BUILD.bazel @@ -33,11 +33,6 @@ jvm_library( module_name = "intellij.editorconfig.plugin.main", visibility = ["//visibility:public"], srcs = glob([], allow_empty = True), - runtime_deps = [ - "//plugins/editorconfig:editorconfig-plugin", - "//plugins/editorconfig/common", - "//plugins/editorconfig/frontend", - "//plugins/editorconfig/backend", - ] + runtime_deps = [":editorconfig-plugin-main"] ) ### auto-generated section `build intellij.editorconfig.plugin.main` end \ No newline at end of file diff --git a/plugins/evaluation-plugin/BUILD.bazel b/plugins/evaluation-plugin/BUILD.bazel index 3c332dc2a874..903e15ea273e 100644 --- a/plugins/evaluation-plugin/BUILD.bazel +++ b/plugins/evaluation-plugin/BUILD.bazel @@ -76,7 +76,8 @@ jvm_library( "//platform/testFramework:testFramework_test_lib", "//plugins/evaluation-plugin/languages/python", "@lib//:mockito-kotlin", - ] + ], + runtime_deps = [":evaluationPlugin-tests"] ) ### auto-generated section `build intellij.evaluationPlugin.tests` end diff --git a/plugins/gradle/BUILD.bazel b/plugins/gradle/BUILD.bazel index c49b7edd265e..b07b8cf2cca6 100644 --- a/plugins/gradle/BUILD.bazel +++ b/plugins/gradle/BUILD.bazel @@ -109,7 +109,18 @@ resourcegroup( jvm_library( name = "gradle-tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + exports = ["//platform/external-system-api/testFramework"], + runtime_deps = [ + "//platform/backend/workspace", + "//platform/external-system-api/dependency-updater", + "//platform/observable", + "//platform/core-ui", + "//platform/execution.dashboard", + "//libraries/gson", + "//libraries/guava", + "//platform/forms_rt:java-guiForms-rt", + ] ) jvm_library( @@ -183,7 +194,7 @@ jvm_library( "@lib//:junit5Pioneer", ], exports = ["//platform/external-system-api/testFramework"], - runtime_deps = ["//platform/execution.dashboard"] + runtime_deps = [":gradle-tests"] ) ### auto-generated section `build intellij.gradle.tests` end diff --git a/plugins/gradle/gradle-declarative-sync/BUILD.bazel b/plugins/gradle/gradle-declarative-sync/BUILD.bazel index b55f706f1426..8e019477e84a 100644 --- a/plugins/gradle/gradle-declarative-sync/BUILD.bazel +++ b/plugins/gradle/gradle-declarative-sync/BUILD.bazel @@ -36,7 +36,8 @@ jvm_library( jvm_library( name = "declarativeSync-tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = ["@lib//:kotlin-stdlib"] ) jvm_library( @@ -66,7 +67,8 @@ jvm_library( "//platform/workspace/storage", "//android/gradle-dsl-declarative", "//platform/workspace/jps", - ] + ], + runtime_deps = [":declarativeSync-tests"] ) ### auto-generated section `build intellij.gradle.declarativeSync.tests` end diff --git a/plugins/gradle/java/BUILD.bazel b/plugins/gradle/java/BUILD.bazel index 9e74dd115127..38181f8641ba 100644 --- a/plugins/gradle/java/BUILD.bazel +++ b/plugins/gradle/java/BUILD.bazel @@ -93,7 +93,13 @@ resourcegroup( jvm_library( name = "java-tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "//platform/observable", + "//platform/external-system-api/dependency-updater", + "//platform/core-ui", + "//plugins/gradle/tooling-extension-impl:toolingExtension-impl", + ] ) jvm_library( @@ -165,7 +171,8 @@ jvm_library( "//platform/smRunner:smRunner_test_lib", "//platform/statistics/testFramework", "//platform/execution", - ] + ], + runtime_deps = [":java-tests"] ) ### auto-generated section `build intellij.gradle.java.tests` end diff --git a/plugins/gradle/native/tooling/BUILD.bazel b/plugins/gradle/native/tooling/BUILD.bazel index db2adead3d44..b651a702188d 100644 --- a/plugins/gradle/native/tooling/BUILD.bazel +++ b/plugins/gradle/native/tooling/BUILD.bazel @@ -55,7 +55,8 @@ jvm_library( "//platform/object-serializer", "//platform/object-serializer:object-serializer_test_lib", "//plugins/gradle/tooling-extension-api:toolingExtension", - ] + ], + runtime_deps = [":gradle-native-tooling-tests"] ) ### auto-generated section `build intellij.gradle.native.tooling.tests` end diff --git a/plugins/gradle/tooling-extension-impl/BUILD.bazel b/plugins/gradle/tooling-extension-impl/BUILD.bazel index bda358d710c8..1a07c92bccc2 100644 --- a/plugins/gradle/tooling-extension-impl/BUILD.bazel +++ b/plugins/gradle/tooling-extension-impl/BUILD.bazel @@ -91,7 +91,8 @@ jvm_library( "//libraries/guava", "//platform/util/trove", "//libraries/commons/lang3", - ] + ], + runtime_deps = [":toolingExtension-tests"] ) ### auto-generated section `build intellij.gradle.toolingExtension.tests` end diff --git a/plugins/grazie/src/test/BUILD.bazel b/plugins/grazie/src/test/BUILD.bazel index 055d87e96af2..99cf70cc47cf 100644 --- a/plugins/grazie/src/test/BUILD.bazel +++ b/plugins/grazie/src/test/BUILD.bazel @@ -10,7 +10,21 @@ resourcegroup( jvm_library( name = "grazie-tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + exports = [ + "//plugins/grazie", + "@lib//:grazie-tests-ai-grazie-spell-hunspell-de", + "@lib//:grazie-tests-ai-grazie-spell-hunspell-ru", + "@lib//:grazie-tests-ai-grazie-spell-hunspell-uk", + ], + runtime_deps = [ + "//spellchecker", + "//plugins/grazie", + "@lib//:kotlin-test", + "//java/testFramework", + "@lib//:grazie-tests-org-jetbrains-intellij-deps-languagetool-languagetool-core", + "//platform/vcs-api:vcs", + ] ) jvm_library( @@ -71,7 +85,8 @@ jvm_library( "@lib//:grazie-tests-ai-grazie-spell-hunspell-de", "@lib//:grazie-tests-ai-grazie-spell-hunspell-ru", "@lib//:grazie-tests-ai-grazie-spell-hunspell-uk", - ] + ], + runtime_deps = [":grazie-tests"] ) ### auto-generated section `build intellij.grazie.tests` end diff --git a/plugins/grazie/src/tests.pro/BUILD.bazel b/plugins/grazie/src/tests.pro/BUILD.bazel index 4dada816ee63..42516924bd77 100644 --- a/plugins/grazie/src/tests.pro/BUILD.bazel +++ b/plugins/grazie/src/tests.pro/BUILD.bazel @@ -10,7 +10,19 @@ resourcegroup( jvm_library( name = "tests.pro", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "@lib//:kotlin-stdlib", + "//libraries/rd/core", + "//python/pluginCore:community-plugin", + "//plugins/kotlin:kotlin-plugin-community-main", + "//plugins/grazie", + "//plugins/grazie/src:core", + "@lib//:grazie-tests-pro-ai-grazie-model-ner-jvm", + "@lib//:grazie-tests-pro-ai-grazie-model-tree-jvm", + "@lib//:grazie-tests-pro-ai-grazie-spell-gec-engine-local-jvm", + "//platform/analysis-impl", + ] ) jvm_library( @@ -59,10 +71,7 @@ jvm_library( "//platform/testFramework/junit5", "//platform/testFramework/junit5:junit5_test_lib", ], - runtime_deps = [ - "//python/pluginCore:community-plugin", - "//plugins/kotlin:kotlin-plugin-community-main", - ] + runtime_deps = [":tests.pro"] ) ### auto-generated section `build intellij.grazie.tests.pro` end diff --git a/plugins/groovy/groovy-uast-tests/BUILD.bazel b/plugins/groovy/groovy-uast-tests/BUILD.bazel index a3d0cf5bfc8c..b4938cfe453a 100644 --- a/plugins/groovy/groovy-uast-tests/BUILD.bazel +++ b/plugins/groovy/groovy-uast-tests/BUILD.bazel @@ -21,7 +21,8 @@ jvm_library( "//platform/testFramework", "//platform/testFramework:testFramework_test_lib", "//java/testFramework", - ] + ], + runtime_deps = [":uast-tests"] ) ### auto-generated section `build intellij.groovy.uast.tests` end diff --git a/plugins/groovy/jps-plugin/BUILD.bazel b/plugins/groovy/jps-plugin/BUILD.bazel index 15333475c38e..7e964f78e665 100644 --- a/plugins/groovy/jps-plugin/BUILD.bazel +++ b/plugins/groovy/jps-plugin/BUILD.bazel @@ -37,7 +37,12 @@ jvm_library( jvm_library( name = "jps-tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "//plugins/groovy/jps-plugin:jps", + "//plugins/groovy/rt-constants:constants-rt", + "@lib//:kotlin-stdlib", + ] ) jvm_library( @@ -51,7 +56,8 @@ jvm_library( "@lib//:kotlin-stdlib", "//platform/testFramework", "//platform/testFramework:testFramework_test_lib", - ] + ], + runtime_deps = [":jps-tests"] ) ### auto-generated section `build intellij.groovy.jps.tests` end diff --git a/plugins/htmltools/BUILD.bazel b/plugins/htmltools/BUILD.bazel index ab57ae25296d..269629d23982 100644 --- a/plugins/htmltools/BUILD.bazel +++ b/plugins/htmltools/BUILD.bazel @@ -39,7 +39,12 @@ jvm_library( jvm_library( name = "html-tools-tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "//plugins/htmltools:html-tools", + "//xml/impl", + "//platform/core-ui", + ] ) jvm_library( @@ -72,7 +77,8 @@ jvm_library( "//platform/refactoring", "//platform/core-impl", "//xml/xml-analysis-api:analysis", - ] + ], + runtime_deps = [":html-tools-tests"] ) ### auto-generated section `build intellij.html.tools.tests` end diff --git a/plugins/junit/groovy-tests/BUILD.bazel b/plugins/junit/groovy-tests/BUILD.bazel index 0e02ed78e08d..23768f9525df 100644 --- a/plugins/junit/groovy-tests/BUILD.bazel +++ b/plugins/junit/groovy-tests/BUILD.bazel @@ -23,7 +23,8 @@ jvm_library( "//platform/testFramework:testFramework_test_lib", "//jvm/jvm-analysis-testFramework:analysis-testFramework", "//plugins/junit/testFramework", - ] + ], + runtime_deps = [":groovy-tests"] ) ### auto-generated section `build intellij.junit.groovy.tests` end diff --git a/plugins/junit/java-tests/BUILD.bazel b/plugins/junit/java-tests/BUILD.bazel index 84cd11107c5f..262833e26192 100644 --- a/plugins/junit/java-tests/BUILD.bazel +++ b/plugins/junit/java-tests/BUILD.bazel @@ -4,7 +4,8 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "java-tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = ["//platform/smRunner"] ) jvm_library( @@ -43,7 +44,8 @@ jvm_library( "//java/compiler/openapi:java-compiler", "//java/java-impl-refactorings:impl-refactorings", "//platform/execution", - ] + ], + runtime_deps = [":java-tests"] ) ### auto-generated section `build intellij.junit.java.tests` end diff --git a/plugins/junit/kotlin-tests-k1/BUILD.bazel b/plugins/junit/kotlin-tests-k1/BUILD.bazel index 2d5ee8d19172..2df011efe923 100644 --- a/plugins/junit/kotlin-tests-k1/BUILD.bazel +++ b/plugins/junit/kotlin-tests-k1/BUILD.bazel @@ -4,7 +4,8 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "kotlin-tests-k1", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = ["//plugins/kotlin/plugin/k1"] ) jvm_library( @@ -26,7 +27,7 @@ jvm_library( "//platform/core-api:core", "//plugins/kotlin/code-insight/api", ], - runtime_deps = ["//plugins/kotlin/plugin/k1"] + runtime_deps = [":kotlin-tests-k1"] ) ### auto-generated section `build intellij.junit.kotlin.tests.k1` end diff --git a/plugins/junit/kotlin-tests-k2/BUILD.bazel b/plugins/junit/kotlin-tests-k2/BUILD.bazel index 240c6e4ee905..bc46f77d87f2 100644 --- a/plugins/junit/kotlin-tests-k2/BUILD.bazel +++ b/plugins/junit/kotlin-tests-k2/BUILD.bazel @@ -4,7 +4,8 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "kotlin-tests-k2", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = ["//plugins/kotlin/plugin/k2"] ) jvm_library( @@ -25,7 +26,7 @@ jvm_library( "//platform/analysis-api:analysis", "//platform/core-api:core", ], - runtime_deps = ["//plugins/kotlin/plugin/k2"] + runtime_deps = [":kotlin-tests-k2"] ) ### auto-generated section `build intellij.junit.kotlin.tests.k2` end diff --git a/plugins/junit/kotlin-tests-shared/BUILD.bazel b/plugins/junit/kotlin-tests-shared/BUILD.bazel index b3e9886e0a12..07397bda5008 100644 --- a/plugins/junit/kotlin-tests-shared/BUILD.bazel +++ b/plugins/junit/kotlin-tests-shared/BUILD.bazel @@ -4,7 +4,13 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "kotlin-tests-shared", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + exports = [ + "//plugins/kotlin/plugin/common", + "//plugins/junit/testFramework", + "//platform/testFramework/junit5", + "//plugins/junit/java-tests", + ] ) jvm_library( @@ -38,7 +44,8 @@ jvm_library( "//platform/testFramework/junit5", "//platform/testFramework/junit5:junit5_test_lib", "//plugins/junit/java-tests:java-tests_test_lib", - ] + ], + runtime_deps = [":kotlin-tests-shared"] ) ### auto-generated section `build intellij.junit.kotlin.tests.shared` end diff --git a/plugins/junit5_rt_tests/BUILD.bazel b/plugins/junit5_rt_tests/BUILD.bazel index 6d66b9b02699..9ee69197e453 100644 --- a/plugins/junit5_rt_tests/BUILD.bazel +++ b/plugins/junit5_rt_tests/BUILD.bazel @@ -4,7 +4,11 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "junit-v5-rt-tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "//plugins/junit5_rt:junit-v5-rt", + "//platform/smRunner", + ] ) jvm_library( @@ -43,7 +47,8 @@ jvm_library( "//platform/testFramework/junit5", "//platform/testFramework/junit5:junit5_test_lib", "//platform/execution", - ] + ], + runtime_deps = [":junit-v5-rt-tests"] ) ### auto-generated section `build intellij.junit.v5.rt.tests` end diff --git a/plugins/junit6_rt_tests/BUILD.bazel b/plugins/junit6_rt_tests/BUILD.bazel index bd5398464f45..28eaadb09ed1 100644 --- a/plugins/junit6_rt_tests/BUILD.bazel +++ b/plugins/junit6_rt_tests/BUILD.bazel @@ -4,7 +4,8 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "junit-v6-rt-tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = ["//platform/smRunner"] ) jvm_library( @@ -38,7 +39,8 @@ jvm_library( "//platform/testFramework/junit5", "//platform/testFramework/junit5:junit5_test_lib", "//platform/execution", - ] + ], + runtime_deps = [":junit-v6-rt-tests"] ) ### auto-generated section `build intellij.junit.v6.rt.tests` end diff --git a/plugins/kotlin/BUILD.bazel b/plugins/kotlin/BUILD.bazel index 79fd58d66de5..64db75d06cbc 100644 --- a/plugins/kotlin/BUILD.bazel +++ b/plugins/kotlin/BUILD.bazel @@ -681,252 +681,32 @@ jvm_library( "//plugins/kotlin/base/kotlin.base.serialization", ], runtime_deps = [ - "//platform/bootstrap", - "//plugins/kotlin/plugin", - "//plugins/kotlin/plugin/common", - "//plugins/kotlin/plugin/k1", - "//plugins/kotlin/plugin/k2", - "//plugins/kotlin/base/util", + ":kotlin-plugin-community-main", "//plugins/kotlin/base/util:util_test_lib", - "//plugins/kotlin/base/plugin", "//plugins/kotlin/base/plugin:plugin_test_lib", - "//plugins/kotlin/base/indices", - "//plugins/kotlin/navigation", - "//plugins/kotlin/base/compiler-configuration", - "//plugins/kotlin/base/psi", - "//plugins/kotlin/base/kdoc", - "//plugins/kotlin/base/project-model", - "//plugins/kotlin/base/platforms", - "//plugins/kotlin/base/analysis", - "//plugins/kotlin/base/analysis-api-platform:kotlin-base-analysis-platform", - "//plugins/kotlin/base/project-structure", "//plugins/kotlin/base/project-structure:project-structure_test_lib", - "//plugins/kotlin/base/scripting/scripting.k1", "//plugins/kotlin/base/scripting/scripting.k1:scripting.k1_test_lib", - "//plugins/kotlin/base/scripting/scripting.k2:kotlin-base-scripting", "//plugins/kotlin/base/scripting/scripting.k2:kotlin-base-scripting_test_lib", - "//plugins/kotlin/base/scripting/scripting.shared", - "//plugins/kotlin/base/analysis-api/analysis-api-utils:kotlin-base-analysis-utils", - "//plugins/kotlin/base/facet", - "//plugins/kotlin/base/code-insight", "//plugins/kotlin/base/code-insight:code-insight_test_lib", - "//plugins/kotlin/base/jps", - "//plugins/kotlin/base/external-build-system:kotlin-base-externalSystem", - "//plugins/kotlin/base/compiler-configuration-ui:kotlin-base-compilerConfiguration-ui", - "//plugins/kotlin/base/resources:kotlin-base-resources", - "//plugins/kotlin/base/statistics", - "//plugins/kotlin/base/obsolete-compat", - "//plugins/kotlin/base/fe10/plugin", - "//plugins/kotlin/base/fe10/analysis", - "//plugins/kotlin/base/fe10/analysis-api-platform", - "//plugins/kotlin/base/fe10/kdoc", - "//plugins/kotlin/base/fe10/code-insight", - "//plugins/kotlin/base/fe10/obsolete-compat", - "//plugins/kotlin/base/fe10/project-structure", - "//plugins/kotlin/base/fir/analysis-api-platform:kotlin-analysis-platform", "//plugins/kotlin/base/fir/analysis-api-platform:kotlin-analysis-platform_test_lib", - "//plugins/kotlin/base/fir/code-insight:kotlin-codeInsight-base", - "//plugins/kotlin/base/fir/project-structure", "//plugins/kotlin/base/fir/project-structure:project-structure_test_lib", - "//plugins/kotlin/code-insight/api", - "//plugins/kotlin/code-insight/impl-base:kotlin-codeInsight-shared", - "//plugins/kotlin/code-insight/descriptions", - "//plugins/kotlin/code-insight/intentions-shared:kotlin-code-insight-intentions-shared", - "//plugins/kotlin/code-insight/fixes-k2:kotlin-codeInsight-fixes", - "//plugins/kotlin/code-insight/intentions-k1:kotlin-code-insight-intentions-k1", - "//plugins/kotlin/code-insight/intentions-k2:kotlin-codeInsight-intentions", - "//plugins/kotlin/code-insight/inspections-shared:kotlin-code-insight-inspections-shared", - "//plugins/kotlin/code-insight/inspections-k1:kotlin-code-insight-inspections-k1", - "//plugins/kotlin/code-insight/inspections-k2:kotlin-codeInsight-inspections", - "//plugins/kotlin/code-insight/kotlin.code-insight.k1:kotlin-code-insight-k1", "//plugins/kotlin/code-insight/kotlin.code-insight.k1:kotlin-code-insight-k1_test_lib", - "//plugins/kotlin/code-insight/kotlin.code-insight.k2:kotlin-codeInsight", "//plugins/kotlin/code-insight/kotlin.code-insight.k2:kotlin-codeInsight_test_lib", - "//plugins/kotlin/code-insight/override-implement-shared:kotlin-code-insight-override-implement-shared", - "//plugins/kotlin/code-insight/override-implement-k1:kotlin-code-insight-override-implement-k1", - "//plugins/kotlin/code-insight/override-implement-k2:kotlin-codeInsight-overrideImplement", - "//plugins/kotlin/code-insight/postfix-templates-k1:kotlin-code-insight-postfix-templates-k1", - "//plugins/kotlin/code-insight/structural-search-k1:kotlin-code-insight-structural-search-k1", - "//plugins/kotlin/code-insight/structural-search-k2:kotlin-codeInsight-structuralSearch", - "//plugins/kotlin/code-insight/line-markers-shared:kotlin-code-insight-line-markers-shared", - "//plugins/kotlin/code-insight/line-markers", "//plugins/kotlin/code-insight/line-markers:line-markers_test_lib", - "//plugins/kotlin/refactorings/kotlin.refactorings.move.k2:kotlin-refactorings-move", "//plugins/kotlin/refactorings/kotlin.refactorings.move.k2:kotlin-refactorings-move_test_lib", - "//plugins/kotlin/refactorings/rename.k2:kotlin-refactorings-rename", "//plugins/kotlin/refactorings/rename.k2:kotlin-refactorings-rename_test_lib", - "//plugins/kotlin/compiler-plugins/allopen/common-k1:kotlin-compiler-plugins-allopen-common-k1", - "//plugins/kotlin/compiler-plugins/allopen/gradle", - "//plugins/kotlin/compiler-plugins/allopen/maven", - "//plugins/kotlin/compiler-plugins/compiler-plugin-support/common:kotlin-compilerPlugins-support", - "//plugins/kotlin/compiler-plugins/compiler-plugin-support/gradle", - "//plugins/kotlin/compiler-plugins/compiler-plugin-support/maven", - "//plugins/kotlin/compiler-plugins/kapt", - "//plugins/kotlin/compiler-plugins/kotlinx-serialization/common", - "//plugins/kotlin/compiler-plugins/kotlinx-serialization/gradle", - "//plugins/kotlin/compiler-plugins/kotlinx-serialization/k2:kotlin-compilerPlugins-serialization", - "//plugins/kotlin/compiler-plugins/kotlinx-serialization/maven", - "//plugins/kotlin/compiler-plugins/kotlin-dataframe/maven", - "//plugins/kotlin/compiler-plugins/noarg/common", - "//plugins/kotlin/compiler-plugins/noarg/gradle", - "//plugins/kotlin/compiler-plugins/noarg/maven", - "//plugins/kotlin/compiler-plugins/sam-with-receiver/common", - "//plugins/kotlin/compiler-plugins/sam-with-receiver/gradle", - "//plugins/kotlin/compiler-plugins/sam-with-receiver/maven", - "//plugins/kotlin/compiler-plugins/assignment/common-k1:kotlin-compiler-plugins-assignment-common-k1", - "//plugins/kotlin/compiler-plugins/assignment/common:kotlin-compilerPlugins-assignment-fixes", - "//plugins/kotlin/compiler-plugins/assignment/gradle", - "//plugins/kotlin/compiler-plugins/assignment/maven", - "//plugins/kotlin/compiler-plugins/scripting", - "//plugins/kotlin/compiler-plugins/parcelize/common", - "//plugins/kotlin/compiler-plugins/parcelize/k1", - "//plugins/kotlin/compiler-plugins/parcelize/k2:kotlin-compilerPlugins-parcelize", - "//plugins/kotlin/compiler-plugins/parcelize/gradle", - "//plugins/kotlin/completion/api", - "//plugins/kotlin/completion/impl-shared:kotlin-completion-impl-shared", - "//plugins/kotlin/completion/impl-k1:kotlin-completion-impl-k1", - "//plugins/kotlin/completion/impl-k2:kotlin-completion-impl", - "//plugins/kotlin/core", - "//plugins/kotlin/jvm-debugger/eval4j", "//plugins/kotlin/jvm-debugger/eval4j:eval4j_test_lib", - "//plugins/kotlin/frontend-independent", - "//plugins/kotlin/fir", - "//plugins/kotlin/uast/uast-kotlin-fir:kotlin-uast", - "//plugins/kotlin/uast/uast-kotlin-idea-fir:kotlin-uast-idea", - "//plugins/kotlin/formatter", - "//plugins/kotlin/gradle/gradle", - "//plugins/kotlin/gradle/gradle-java", - "//plugins/kotlin/gradle/gradle-java/k1", - "//plugins/kotlin/gradle/gradle-java/k2:kotlin-gradle-java", - "//plugins/kotlin/gradle/code-insight-common:kotlin-gradle-codeInsight-common", - "//plugins/kotlin/gradle/code-insight-toml:kotlin-gradle-codeInsight-toml", - "//plugins/kotlin/gradle/code-insight-toml/k2", - "//plugins/kotlin/gradle/gradle-tooling:kotlin-gradle-tooling", - "//plugins/kotlin/gradle/gradle-tooling/impl", "//plugins/kotlin/gradle/gradle-tooling/impl:impl_test_lib", - "//plugins/kotlin/idea", - "//plugins/kotlin/migration", - "//plugins/kotlin/inspections", - "//plugins/kotlin/j2k/shared", - "//plugins/kotlin/j2k/k1.new", - "//plugins/kotlin/j2k/k1.old", - "//plugins/kotlin/j2k/k1.old.post-processing", - "//plugins/kotlin/j2k/k1.new.post-processing", - "//plugins/kotlin/j2k/k2:kotlin-j2k", - "//plugins/kotlin/i18n", - "//plugins/kotlin/jvm/shared", - "//plugins/kotlin/jvm/k1", - "//plugins/kotlin/jvm/k2:kotlin-jvm", - "//plugins/kotlin/jvm-debugger/base/util", - "//plugins/kotlin/jvm-debugger/core", - "//plugins/kotlin/jvm-debugger/core-fe10", - "//plugins/kotlin/jvm-debugger/coroutines", - "//plugins/kotlin/jvm-debugger/evaluation", - "//plugins/kotlin/jvm-debugger/evaluation/k1", - "//plugins/kotlin/jvm-debugger/evaluation/k2:kotlin-jvm-debugger-evaluation", - "//plugins/kotlin/jvm-debugger/sequence:kotlin-jvm-debugger-sequence-k1", - "//plugins/kotlin/injection/k1", - "//plugins/kotlin/injection/base:kotlin-base-injection", - "//plugins/kotlin/injection/k2:kotlin-injection", - "//plugins/kotlin/code-insight/live-templates-shared:kotlin-code-insight-live-templates-shared", "//plugins/kotlin/code-insight/live-templates-shared:kotlin-code-insight-live-templates-shared_test_lib", - "//plugins/kotlin/code-insight/live-templates-k1:kotlin-code-insight-live-templates-k1", "//plugins/kotlin/code-insight/live-templates-k1:kotlin-code-insight-live-templates-k1_test_lib", - "//plugins/kotlin/code-insight/live-templates-k2:kotlin-codeInsight-liveTemplates", "//plugins/kotlin/code-insight/live-templates-k2:kotlin-codeInsight-liveTemplates_test_lib", - "//plugins/kotlin/maven", - "//plugins/kotlin/native", - "//plugins/kotlin/project-wizard/cli", - "//plugins/kotlin/project-wizard/core", "//plugins/kotlin/project-wizard/core:core_test_lib", - "//plugins/kotlin/project-wizard/idea", - "//plugins/kotlin/project-wizard/idea-k1:kotlin-project-wizard-idea-k1", - "//plugins/kotlin/project-wizard/compose", "//plugins/kotlin/project-wizard/compose:compose_test_lib", - "//plugins/kotlin/repl", - "//plugins/kotlin/scripting", - "//plugins/kotlin/uast/uast-kotlin-base", - "//plugins/kotlin/uast/uast-kotlin", - "//plugins/kotlin/uast/uast-kotlin-idea", - "//plugins/kotlin/uast/uast-kotlin-idea-base", - "//plugins/kotlin/compiler-reference-index", - "//plugins/kotlin/coverage", - "//plugins/kotlin/git", - "//plugins/kotlin/run-configurations/testng", - "//plugins/kotlin/run-configurations/junit", - "//plugins/kotlin/run-configurations/junit-fe10", - "//plugins/kotlin/grazie", - "//plugins/kotlin/ml-completion:completion-ml", - "//plugins/kotlin/gradle/code-insight-groovy:kotlin-gradle-codeInsight-groovy", - "//plugins/kotlin/copyright", - "//plugins/kotlin/spellchecker", - "//plugins/kotlin/jvm-decompiler", - "//plugins/kotlin/plugin-updater", - "//plugins/kotlin/preferences", - "//plugins/kotlin/project-configuration", - "//plugins/kotlin/project-wizard/maven", - "//plugins/kotlin/project-wizard/gradle", - "//plugins/kotlin/inspections-fe10", - "//plugins/kotlin/highlighting/highlighting-shared:kotlin-highlighting-shared", - "//plugins/kotlin/highlighting/highlighting-k1:kotlin-highlighting-k1", - "//plugins/kotlin/highlighting/highlighting-k2:kotlin-highlighting", "//plugins/kotlin/highlighting/highlighting-k2:kotlin-highlighting_test_lib", - "//plugins/kotlin/code-insight/utils", - "//plugins/kotlin/code-insight/postfix-templates", "//plugins/kotlin/code-insight/postfix-templates:postfix-templates_test_lib", - "//plugins/kotlin/features-trainer", - "@lib//:kotlinc-kotlin-jps-common", - "//plugins/kotlin/run-configurations/jvm", - "//plugins/kotlin/compiler-plugins/lombok/gradle", - "//plugins/kotlin/compiler-plugins/lombok/maven", - "@lib//:kotlinc-kotlin-compiler-common", - "@lib//:kotlinc-kotlin-compiler-fe10", - "@lib//:kotlinc-kotlin-compiler-ir", - "@lib//:kotlinc-kotlin-scripting-common", - "@lib//:kotlinc-kotlin-scripting-compiler-impl", - "@lib//:kotlinc-kotlin-scripting-jvm", - "@lib//:kotlinc-analysis-api-platform-interface", - "@lib//:kotlinc-analysis-api", - "@lib//:kotlinc-analysis-api-impl-base", - "@lib//:kotlinc-analysis-api-fe10", - "@lib//:kotlinc-analysis-api-k2", - "@lib//:kotlinc-kotlin-compiler-fir", - "@lib//:kotlinc-allopen-compiler-plugin", - "@lib//:kotlinc-kotlinx-serialization-compiler-plugin", - "@lib//:kotlinc-noarg-compiler-plugin", - "@lib//:kotlinc-sam-with-receiver-compiler-plugin", - "@lib//:kotlinc-assignment-compiler-plugin", - "@lib//:kotlinc-kotlin-gradle-statistics", - "@lib//:kotlinc-parcelize-compiler-plugin", - "//libraries/kotlinx/coroutines/core", - "//libraries/kotlinx/collections-immutable:libraries-kotlinx-collections-immutable", - "//libraries/kotlin/reflect", - "@lib//:kotlinc-kotlin-script-runtime", - "@lib//:vavr", - "//plugins/markdown/core:markdown", - "@lib//:javax-inject", - "//plugins/kotlin/kotlin.searching", - "//plugins/kotlin/kotlin.searching/base", - "//plugins/kotlin/refactorings/kotlin.refactorings.k2:kotlin-refactorings", - "//plugins/kotlin/refactorings/kotlin.refactorings.common:kotlin-refactorings-common", - "//plugins/kotlin/kotlin.performanceExtendedPlugin", - "//plugins/kotlin/bundled-compiler-plugins-support", - "//plugins/kotlin/onboarding", "//plugins/kotlin/onboarding:onboarding_test_lib", - "//plugins/kotlin/onboarding-gradle", - "//plugins/kotlin/base/code-insight/minimal", - "//plugins/kotlin/highlighting/highlighting-minimal:kotlin-highlighting-minimal", - "//plugins/kotlin/formatter/minimal", - "//plugins/kotlin/kotlin.ide", - "//plugins/kotlin/jsr223", - "//plugins/kotlin/internal", - "//plugins/kotlin/base/fir/scripting", - "//plugins/kotlin/gradle/scripting/kotlin.gradle.scripting.shared:kotlin-gradle-scripting-shared", - "//plugins/kotlin/gradle/scripting/kotlin.gradle.scripting.k1:kotlin-gradle-scripting-k1", "//plugins/kotlin/gradle/scripting/kotlin.gradle.scripting.k1:kotlin-gradle-scripting-k1_test_lib", - "//plugins/kotlin/gradle/scripting/kotlin.gradle.scripting.k2:kotlin-gradle-scripting", "//plugins/kotlin/gradle/scripting/kotlin.gradle.scripting.k2:kotlin-gradle-scripting_test_lib", - "//plugins/kotlin/base/kotlin.base.serialization", ] ) ### auto-generated section `build intellij.kotlin.plugin.community.main` end \ No newline at end of file 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 d1e7fd0de24f..1f8f9ca75997 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 @@ -10,7 +10,11 @@ create_kotlinc_options( jvm_library( name = "kotlin-base-analysis-analysis-api-k2-tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "@lib//:kotlin-stdlib", + "@lib//:kotlinc-analysis-api", + ] ) jvm_library( @@ -40,7 +44,8 @@ jvm_library( "@lib//:kotlinc-analysis-api-platform-interface", "@lib//:kotlinc-kotlin-compiler-common", "//plugins/kotlin/intellij.kotlin.base.test:base-test_test_lib", - ] + ], + runtime_deps = [":kotlin-base-analysis-analysis-api-k2-tests"] ) ### auto-generated section `build kotlin.base.analysis.analysis-api.k2.tests` end diff --git a/plugins/kotlin/base/analysis/tests/BUILD.bazel b/plugins/kotlin/base/analysis/tests/BUILD.bazel index edbd68bce472..5a80ff3cb9f7 100644 --- a/plugins/kotlin/base/analysis/tests/BUILD.bazel +++ b/plugins/kotlin/base/analysis/tests/BUILD.bazel @@ -4,7 +4,14 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "@lib//:kotlin-stdlib", + "@lib//:kotlinc-kotlin-compiler-common", + "//plugins/kotlin/base/project-structure", + "//plugins/kotlin/base/analysis", + "//platform/core-impl", + ] ) jvm_library( @@ -35,7 +42,8 @@ jvm_library( "@lib//:junit4", "//plugins/kotlin/base/test:test_test_lib", "//plugins/kotlin/intellij.kotlin.base.test:base-test_test_lib", - ] + ], + runtime_deps = [":tests"] ) ### auto-generated section `build intellij.kotlin.base.analysis.tests` end diff --git a/plugins/kotlin/base/facet/tests/BUILD.bazel b/plugins/kotlin/base/facet/tests/BUILD.bazel index 078d869fbbc9..2b7c03fa03ff 100644 --- a/plugins/kotlin/base/facet/tests/BUILD.bazel +++ b/plugins/kotlin/base/facet/tests/BUILD.bazel @@ -4,7 +4,31 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "@lib//:kotlin-stdlib", + "@lib//:kotlinc-kotlin-compiler-common", + "@lib//:kotlinc-kotlin-jps-common", + "//plugins/kotlin/base/util", + "//plugins/kotlin/base/compiler-configuration", + "//plugins/kotlin/base/plugin", + "//plugins/kotlin/base/platforms", + "//plugins/kotlin/base/project-model", + "//plugins/kotlin/base/resources:kotlin-base-resources", + "//platform/util/jdom", + "//platform/core-impl", + "//platform/lang-core", + "//platform/projectModel-api:projectModel", + "//platform/external-system-api:externalSystem", + "//platform/external-system-impl:externalSystem-impl", + "//java/openapi:java", + "//java/java-impl:impl", + "//platform/workspace/jps", + "//platform/backend/workspace", + "//plugins/kotlin/base/facet", + "//plugins/kotlin/project-configuration", + "//plugins/kotlin/compiler-plugins/kotlinx-serialization/common", + ] ) jvm_library( @@ -50,7 +74,7 @@ jvm_library( "//plugins/kotlin/test-framework:test-framework_test_lib", "//plugins/kotlin/project-configuration", ], - runtime_deps = ["//plugins/kotlin/compiler-plugins/kotlinx-serialization/common"] + runtime_deps = [":tests"] ) ### auto-generated section `build intellij.kotlin.base.facet.tests` end diff --git a/plugins/kotlin/base/indices/tests/BUILD.bazel b/plugins/kotlin/base/indices/tests/BUILD.bazel index e9339730bfa4..4643af777d5f 100644 --- a/plugins/kotlin/base/indices/tests/BUILD.bazel +++ b/plugins/kotlin/base/indices/tests/BUILD.bazel @@ -4,7 +4,11 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "@lib//:kotlin-stdlib", + "//plugins/kotlin/base/indices", + ] ) jvm_library( @@ -29,7 +33,8 @@ jvm_library( "//plugins/kotlin/base/indices", "//plugins/kotlin/base/plugin", "//plugins/kotlin/base/plugin:plugin_test_lib", - ] + ], + runtime_deps = [":tests"] ) ### auto-generated section `build intellij.kotlin.base.indices.tests` end diff --git a/plugins/kotlin/base/test/BUILD.bazel b/plugins/kotlin/base/test/BUILD.bazel index 35a6e986b508..d41146325846 100644 --- a/plugins/kotlin/base/test/BUILD.bazel +++ b/plugins/kotlin/base/test/BUILD.bazel @@ -4,7 +4,8 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "test", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + exports = ["//plugins/junit_rt:junit-rt"] ) jvm_library( @@ -34,7 +35,8 @@ jvm_library( "@lib//:slf4j-api", "//java/java-runtime:rt", ], - exports = ["//plugins/junit_rt:junit-rt"] + exports = ["//plugins/junit_rt:junit-rt"], + runtime_deps = [":test"] ) ### auto-generated section `build kotlin.base.test` end diff --git a/plugins/kotlin/code-insight/fixes-k2/tests/BUILD.bazel b/plugins/kotlin/code-insight/fixes-k2/tests/BUILD.bazel index 030fc33878d0..2b4e9a363101 100644 --- a/plugins/kotlin/code-insight/fixes-k2/tests/BUILD.bazel +++ b/plugins/kotlin/code-insight/fixes-k2/tests/BUILD.bazel @@ -32,7 +32,8 @@ jvm_library( "//plugins/kotlin/idea/tests:tests_test_lib", "//plugins/kotlin/code-insight/fixes-k2:kotlin-codeInsight-fixes", "//plugins/kotlin/fir/tests:tests_test_lib", - ] + ], + runtime_deps = [":tests"] ) ### auto-generated section `build intellij.kotlin.codeInsight.fixes.tests` end diff --git a/plugins/kotlin/code-insight/inspections-k2/tests/BUILD.bazel b/plugins/kotlin/code-insight/inspections-k2/tests/BUILD.bazel index dfcdd36ea744..6fb130e9ffc3 100644 --- a/plugins/kotlin/code-insight/inspections-k2/tests/BUILD.bazel +++ b/plugins/kotlin/code-insight/inspections-k2/tests/BUILD.bazel @@ -4,7 +4,8 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = ["//libraries/kotlin/reflect"] ) jvm_library( @@ -60,7 +61,8 @@ jvm_library( "//plugins/kotlin/base/scripting/scripting.k2:kotlin-base-scripting_test_lib", "//plugins/kotlin/base/scripting/scripting.shared", "//plugins/kotlin/intellij.kotlin.base.test:base-test_test_lib", - ] + ], + runtime_deps = [":tests"] ) ### auto-generated section `build intellij.kotlin.codeInsight.inspections.tests` end diff --git a/plugins/kotlin/code-insight/inspections-shared/tests/k1/BUILD.bazel b/plugins/kotlin/code-insight/inspections-shared/tests/k1/BUILD.bazel index 6d765f08c422..d4c919831112 100644 --- a/plugins/kotlin/code-insight/inspections-shared/tests/k1/BUILD.bazel +++ b/plugins/kotlin/code-insight/inspections-shared/tests/k1/BUILD.bazel @@ -50,7 +50,8 @@ jvm_library( "//platform/util/jdom", "//plugins/kotlin/code-insight/inspections-k1:kotlin-code-insight-inspections-k1", "//platform/core-ui", - ] + ], + runtime_deps = [":k1"] ) ### auto-generated section `build kotlin.code-insight.inspections-shared.tests.k1` end diff --git a/plugins/kotlin/code-insight/inspections-shared/tests/k2/BUILD.bazel b/plugins/kotlin/code-insight/inspections-shared/tests/k2/BUILD.bazel index 81cafa040763..eace85dd09a5 100644 --- a/plugins/kotlin/code-insight/inspections-shared/tests/k2/BUILD.bazel +++ b/plugins/kotlin/code-insight/inspections-shared/tests/k2/BUILD.bazel @@ -50,7 +50,8 @@ jvm_library( "//plugins/kotlin/base/test:test_test_lib", "//plugins/kotlin/code-insight/fixes-k2:kotlin-codeInsight-fixes", "//plugins/kotlin/intellij.kotlin.base.test:base-test_test_lib", - ] + ], + runtime_deps = [":k2"] ) ### auto-generated section `build kotlin.code-insight.inspections-shared.tests.k2` end diff --git a/plugins/kotlin/code-insight/intentions-k2/tests/BUILD.bazel b/plugins/kotlin/code-insight/intentions-k2/tests/BUILD.bazel index 5786b4a76a19..26e64023b047 100644 --- a/plugins/kotlin/code-insight/intentions-k2/tests/BUILD.bazel +++ b/plugins/kotlin/code-insight/intentions-k2/tests/BUILD.bazel @@ -46,7 +46,8 @@ jvm_library( "//platform/lang-core", "//platform/core-ui", "//plugins/kotlin/intellij.kotlin.base.test:base-test_test_lib", - ] + ], + runtime_deps = [":tests"] ) ### auto-generated section `build intellij.kotlin.codeInsight.intentions.tests` end diff --git a/plugins/kotlin/code-insight/intentions-shared/tests/k1/BUILD.bazel b/plugins/kotlin/code-insight/intentions-shared/tests/k1/BUILD.bazel index 881c2812a3e0..891422c2fda8 100644 --- a/plugins/kotlin/code-insight/intentions-shared/tests/k1/BUILD.bazel +++ b/plugins/kotlin/code-insight/intentions-shared/tests/k1/BUILD.bazel @@ -43,7 +43,8 @@ jvm_library( "//plugins/kotlin/base/plugin", "//plugins/kotlin/base/plugin:plugin_test_lib", "//platform/core-api:core", - ] + ], + runtime_deps = [":k1"] ) ### auto-generated section `build kotlin.code-insight.intentions-shared.tests.k1` end diff --git a/plugins/kotlin/code-insight/intentions-shared/tests/k2/BUILD.bazel b/plugins/kotlin/code-insight/intentions-shared/tests/k2/BUILD.bazel index c8598682dd63..68c55dfb68bb 100644 --- a/plugins/kotlin/code-insight/intentions-shared/tests/k2/BUILD.bazel +++ b/plugins/kotlin/code-insight/intentions-shared/tests/k2/BUILD.bazel @@ -43,7 +43,8 @@ jvm_library( "//plugins/kotlin/base/plugin", "//plugins/kotlin/base/plugin:plugin_test_lib", "//plugins/kotlin/intellij.kotlin.base.test:base-test_test_lib", - ] + ], + runtime_deps = [":k2"] ) ### auto-generated section `build kotlin.code-insight.intentions-shared.tests.k2` end diff --git a/plugins/kotlin/code-insight/structural-search-k2/tests/BUILD.bazel b/plugins/kotlin/code-insight/structural-search-k2/tests/BUILD.bazel index 52c3700aae1d..238bf3ae7b15 100644 --- a/plugins/kotlin/code-insight/structural-search-k2/tests/BUILD.bazel +++ b/plugins/kotlin/code-insight/structural-search-k2/tests/BUILD.bazel @@ -4,7 +4,8 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = ["//platform/execution"] ) jvm_library( @@ -38,7 +39,8 @@ jvm_library( "//plugins/kotlin/base/plugin:plugin_test_lib", "//platform/duplicates-analysis", "//plugins/kotlin/intellij.kotlin.base.test:base-test_test_lib", - ] + ], + runtime_deps = [":tests"] ) ### auto-generated section `build intellij.kotlin.codeInsight.structuralSearch.tests` end diff --git a/plugins/kotlin/compiler-plugins/allopen/tests-k1/BUILD.bazel b/plugins/kotlin/compiler-plugins/allopen/tests-k1/BUILD.bazel index c4e871743c9a..65915b2b9036 100644 --- a/plugins/kotlin/compiler-plugins/allopen/tests-k1/BUILD.bazel +++ b/plugins/kotlin/compiler-plugins/allopen/tests-k1/BUILD.bazel @@ -4,7 +4,25 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "kotlin-compiler-plugins-allopen-tests-k1", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "@lib//:kotlin-stdlib", + "@lib//:kotlinc-kotlin-compiler-common", + "@lib//:kotlinc-kotlin-compiler-fe10", + "@lib//:kotlinc-allopen-compiler-plugin", + "@lib//:junit4", + "@lib//:kotlinc-kotlin-jps-common", + "//plugins/kotlin/base/plugin", + "//plugins/kotlin/base/facet", + "//plugins/kotlin/core", + "//plugins/kotlin/compiler-plugins/compiler-plugin-support/common:kotlin-compilerPlugins-support", + "//plugins/kotlin/compiler-plugins/allopen/common-k1:kotlin-compiler-plugins-allopen-common-k1", + "//plugins/kotlin/test-framework", + "//plugins/kotlin/gradle/gradle", + "//plugins/kotlin/uast/uast-kotlin", + "//java/java-psi-api:psi", + "//platform/core-impl", + ] ) jvm_library( @@ -39,10 +57,7 @@ jvm_library( "//java/java-psi-api:psi", "//platform/core-impl", ], - runtime_deps = [ - "//plugins/kotlin/gradle/gradle", - "//plugins/kotlin/uast/uast-kotlin", - ] + runtime_deps = [":kotlin-compiler-plugins-allopen-tests-k1"] ) ### auto-generated section `build kotlin.compiler-plugins.allopen.tests.k1` end diff --git a/plugins/kotlin/compiler-plugins/compiler-plugin-support/tests/BUILD.bazel b/plugins/kotlin/compiler-plugins/compiler-plugin-support/tests/BUILD.bazel index f46cc2b56204..4116bff2b6cd 100644 --- a/plugins/kotlin/compiler-plugins/compiler-plugin-support/tests/BUILD.bazel +++ b/plugins/kotlin/compiler-plugins/compiler-plugin-support/tests/BUILD.bazel @@ -4,7 +4,13 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "@lib//:kotlin-stdlib", + "@lib//:kotlinc-kotlin-compiler-common", + "@lib//:kotlinc-kotlin-jps-common", + "//plugins/kotlin/base/facet", + ] ) jvm_library( @@ -27,7 +33,8 @@ jvm_library( "//plugins/kotlin/base/plugin", "//plugins/kotlin/base/plugin:plugin_test_lib", "//plugins/kotlin/base/test:test_test_lib", - ] + ], + runtime_deps = [":tests"] ) ### auto-generated section `build kotlin.compiler-plugins.compiler-plugin-support.tests` end diff --git a/plugins/kotlin/compiler-plugins/kotlinx-serialization/tests/BUILD.bazel b/plugins/kotlin/compiler-plugins/kotlinx-serialization/tests/BUILD.bazel index f78837272eab..802a8fafbe64 100644 --- a/plugins/kotlin/compiler-plugins/kotlinx-serialization/tests/BUILD.bazel +++ b/plugins/kotlin/compiler-plugins/kotlinx-serialization/tests/BUILD.bazel @@ -4,7 +4,18 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "@lib//:kotlin-stdlib", + "@lib//:kotlinc-kotlin-compiler-common", + "@lib//:kotlinc-kotlinx-serialization-compiler-plugin", + "@lib//:kotlinc-kotlin-jps-common", + "@lib//:kotlinc-kotlin-compiler-tests", + "//plugins/kotlin/base/fe10/analysis", + "//plugins/kotlin/core", + "//plugins/kotlin/idea", + "//plugins/kotlin/compiler-plugins/kotlinx-serialization/common", + ] ) jvm_library( @@ -36,7 +47,8 @@ jvm_library( "//plugins/kotlin/compiler-plugins/kotlinx-serialization/common", "//plugins/kotlin/tests-common:common-tests_test_lib", "//plugins/kotlin/idea/tests:tests_test_lib", - ] + ], + runtime_deps = [":tests"] ) ### auto-generated section `build kotlin.compiler-plugins.kotlinx-serialization.tests` end diff --git a/plugins/kotlin/compiler-plugins/noarg/tests/BUILD.bazel b/plugins/kotlin/compiler-plugins/noarg/tests/BUILD.bazel index 682899629eca..112d5a560706 100644 --- a/plugins/kotlin/compiler-plugins/noarg/tests/BUILD.bazel +++ b/plugins/kotlin/compiler-plugins/noarg/tests/BUILD.bazel @@ -4,7 +4,25 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "@lib//:kotlin-stdlib", + "@lib//:kotlinc-kotlin-compiler-common", + "@lib//:kotlinc-kotlin-compiler-fe10", + "@lib//:kotlinc-noarg-compiler-plugin", + "@lib//:kotlinc-kotlin-jps-common", + "@lib//:junit4", + "//plugins/kotlin/base/plugin", + "//plugins/kotlin/base/facet", + "//plugins/kotlin/core", + "//plugins/kotlin/compiler-plugins/compiler-plugin-support/common:kotlin-compilerPlugins-support", + "//plugins/kotlin/compiler-plugins/noarg/common", + "//plugins/kotlin/test-framework", + "//plugins/kotlin/gradle/gradle", + "//plugins/kotlin/uast/uast-kotlin", + "//platform/core-impl", + "//java/java-psi-impl:psi-impl", + ] ) jvm_library( @@ -39,10 +57,7 @@ jvm_library( "//platform/core-impl", "//java/java-psi-impl:psi-impl", ], - runtime_deps = [ - "//plugins/kotlin/gradle/gradle", - "//plugins/kotlin/uast/uast-kotlin", - ] + runtime_deps = [":tests"] ) ### auto-generated section `build kotlin.compiler-plugins.noarg.tests` end diff --git a/plugins/kotlin/compiler-plugins/parcelize/tests/BUILD.bazel b/plugins/kotlin/compiler-plugins/parcelize/tests/BUILD.bazel index 3ebf1c43c523..a1fc552cb88f 100644 --- a/plugins/kotlin/compiler-plugins/parcelize/tests/BUILD.bazel +++ b/plugins/kotlin/compiler-plugins/parcelize/tests/BUILD.bazel @@ -19,7 +19,8 @@ jvm_library( "//plugins/kotlin/base/plugin:plugin_test_lib", "//java/testFramework", "//plugins/kotlin/test-framework:test-framework_test_lib", - ] + ], + runtime_deps = [":tests"] ) ### auto-generated section `build kotlin.compiler-plugins.parcelize.tests` end diff --git a/plugins/kotlin/compiler-plugins/parcelize/tests/k1/BUILD.bazel b/plugins/kotlin/compiler-plugins/parcelize/tests/k1/BUILD.bazel index 12445993b532..dd3ebbefe5e3 100644 --- a/plugins/kotlin/compiler-plugins/parcelize/tests/k1/BUILD.bazel +++ b/plugins/kotlin/compiler-plugins/parcelize/tests/k1/BUILD.bazel @@ -4,7 +4,8 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "k1", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = ["//plugins/kotlin/plugin/k1"] ) jvm_library( @@ -26,7 +27,8 @@ jvm_library( "//plugins/kotlin/test-framework:test-framework_test_lib", "//plugins/kotlin/base/plugin", "//plugins/kotlin/base/plugin:plugin_test_lib", - ] + ], + runtime_deps = [":k1"] ) ### auto-generated section `build kotlin.compiler-plugins.parcelize.tests.k1` end diff --git a/plugins/kotlin/compiler-plugins/parcelize/tests/k2/BUILD.bazel b/plugins/kotlin/compiler-plugins/parcelize/tests/k2/BUILD.bazel index 87fcbf08f1c2..1a1844c3970e 100644 --- a/plugins/kotlin/compiler-plugins/parcelize/tests/k2/BUILD.bazel +++ b/plugins/kotlin/compiler-plugins/parcelize/tests/k2/BUILD.bazel @@ -32,7 +32,8 @@ jvm_library( "//java/testFramework", "//plugins/kotlin/base/plugin", "//plugins/kotlin/base/plugin:plugin_test_lib", - ] + ], + runtime_deps = [":kotlin-compilerPlugins-parcelize-tests"] ) ### auto-generated section `build intellij.kotlin.compilerPlugins.parcelize.tests` end diff --git a/plugins/kotlin/compiler-reference-index/tests.k2/BUILD.bazel b/plugins/kotlin/compiler-reference-index/tests.k2/BUILD.bazel index 2f55f37826ca..b1b33cea5327 100644 --- a/plugins/kotlin/compiler-reference-index/tests.k2/BUILD.bazel +++ b/plugins/kotlin/compiler-reference-index/tests.k2/BUILD.bazel @@ -4,7 +4,12 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "kotlin-compilerReferenceIndex-tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "@lib//:kotlin-stdlib", + "@lib//:kotlinc-kotlin-compiler-common", + "//plugins/kotlin/compiler-reference-index", + ] ) jvm_library( @@ -33,7 +38,8 @@ jvm_library( "//plugins/kotlin/base/plugin:plugin_test_lib", "//plugins/kotlin/test-framework:test-framework_test_lib", "//plugins/kotlin/fir/tests:tests_test_lib", - ] + ], + runtime_deps = [":kotlin-compilerReferenceIndex-tests"] ) ### auto-generated section `build intellij.kotlin.compilerReferenceIndex.tests` end diff --git a/plugins/kotlin/compiler-reference-index/tests/BUILD.bazel b/plugins/kotlin/compiler-reference-index/tests/BUILD.bazel index 650c7d106a53..97a371922ae7 100644 --- a/plugins/kotlin/compiler-reference-index/tests/BUILD.bazel +++ b/plugins/kotlin/compiler-reference-index/tests/BUILD.bazel @@ -4,7 +4,29 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "@lib//:kotlin-stdlib", + "//libraries/kotlin/reflect", + "@lib//:kotlinc-kotlin-compiler-common", + "@lib//:kotlinc-kotlin-compiler-tests", + "//plugins/kotlin/base/psi", + "//plugins/kotlin/base/plugin", + "//plugins/kotlin/compiler-reference-index", + "//plugins/kotlin/frontend-independent", + "//jps/jps-builders:build", + "//platform/core-api:core", + "//platform/indexing-api:indexing", + "//platform/projectModel-api:projectModel", + "//platform/projectModel-impl", + "//platform/editor-ui-api:editor-ui", + "//platform/analysis-impl", + "//platform/core-impl", + "//java/java-psi-api:psi", + "//java/java-psi-impl:psi-impl", + "//java/compiler/impl", + "//java/java-indexing-impl:indexing-impl", + ] ) jvm_library( @@ -52,7 +74,8 @@ jvm_library( "//plugins/kotlin/test-framework:test-framework_test_lib", "//platform/util", "//plugins/kotlin/intellij.kotlin.base.test:base-test_test_lib", - ] + ], + runtime_deps = [":tests"] ) ### auto-generated section `build kotlin.compiler-reference-index.tests` end diff --git a/plugins/kotlin/completion/tests-k1/BUILD.bazel b/plugins/kotlin/completion/tests-k1/BUILD.bazel index 4da1e049b2d9..c69f7491a8b6 100644 --- a/plugins/kotlin/completion/tests-k1/BUILD.bazel +++ b/plugins/kotlin/completion/tests-k1/BUILD.bazel @@ -4,7 +4,25 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "kotlin-completion-tests-k1", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "//plugins/kotlin/plugin/k1", + "@lib//:kotlin-stdlib", + "@lib//:kotlinc-kotlin-compiler-common", + "@lib//:kotlinc-kotlin-compiler-fe10", + "@lib//:kotlinc-kotlin-compiler-tests", + "//libraries/guava", + "//libraries/gson", + "//plugins/kotlin/base/util", + "//plugins/kotlin/base/analysis", + "//platform/ide-core-impl", + "//plugins/kotlin/base/fe10/analysis", + "//plugins/kotlin/formatter", + "//plugins/kotlin/completion/impl-shared:kotlin-completion-impl-shared", + "//plugins/kotlin/completion/impl-k1:kotlin-completion-impl-k1", + "//platform/lang-impl", + "//platform/service-container", + ] ) jvm_library( @@ -53,7 +71,7 @@ jvm_library( "//platform/ml-impl:ml-impl_test_lib", "@lib//:junit4", ], - runtime_deps = ["//plugins/kotlin/plugin/k1"] + runtime_deps = [":kotlin-completion-tests-k1"] ) ### auto-generated section `build kotlin.completion.tests.k1` end diff --git a/plugins/kotlin/completion/tests-shared/BUILD.bazel b/plugins/kotlin/completion/tests-shared/BUILD.bazel index c441db23991e..75658e2681d9 100644 --- a/plugins/kotlin/completion/tests-shared/BUILD.bazel +++ b/plugins/kotlin/completion/tests-shared/BUILD.bazel @@ -4,7 +4,21 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "kotlin-completion-tests-shared", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "@lib//:kotlin-stdlib", + "@lib//:kotlinc-kotlin-compiler-common", + "//libraries/guava", + "//libraries/gson", + "//plugins/kotlin/base/util", + "//plugins/kotlin/base/platforms", + "//plugins/kotlin/base/analysis", + "//plugins/kotlin/formatter", + "//plugins/kotlin/completion/api", + "//plugins/kotlin/completion/impl-shared:kotlin-completion-impl-shared", + "//platform/analysis-impl", + "//platform/service-container", + ] ) jvm_library( @@ -42,7 +56,8 @@ jvm_library( "//platform/analysis-impl", "//platform/service-container", "//platform/service-container:service-container_test_lib", - ] + ], + runtime_deps = [":kotlin-completion-tests-shared"] ) ### auto-generated section `build kotlin.completion.tests.shared` end diff --git a/plugins/kotlin/copyright/fir-tests/BUILD.bazel b/plugins/kotlin/copyright/fir-tests/BUILD.bazel index 8fa56a8cda73..83943d68ccad 100644 --- a/plugins/kotlin/copyright/fir-tests/BUILD.bazel +++ b/plugins/kotlin/copyright/fir-tests/BUILD.bazel @@ -4,7 +4,13 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "kotlin-copyright-tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "//plugins/kotlin/copyright/tests", + "@lib//:kotlin-stdlib", + "//plugins/kotlin/tests-common:common-tests", + "//plugins/kotlin/test-framework", + ] ) jvm_library( @@ -28,7 +34,8 @@ jvm_library( "//plugins/kotlin/test-framework", "//plugins/kotlin/test-framework:test-framework_test_lib", "@lib//:kotlinc-kotlin-compiler-tests", - ] + ], + runtime_deps = [":kotlin-copyright-tests"] ) ### auto-generated section `build intellij.kotlin.copyright.tests` end diff --git a/plugins/kotlin/copyright/tests/BUILD.bazel b/plugins/kotlin/copyright/tests/BUILD.bazel index c54bc25e84cc..23dcc85fb51e 100644 --- a/plugins/kotlin/copyright/tests/BUILD.bazel +++ b/plugins/kotlin/copyright/tests/BUILD.bazel @@ -4,7 +4,18 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "@lib//:kotlin-stdlib", + "@lib//:kotlinc-kotlin-compiler-tests", + "@lib//:junit4", + "//plugins/kotlin/copyright", + "//plugins/kotlin/tests-common:common-tests", + "//plugins/kotlin/test-framework", + "//platform/ide-core", + "//java/java-analysis-api:analysis", + "//plugins/copyright", + ] ) jvm_library( @@ -32,10 +43,7 @@ jvm_library( "//plugins/copyright", "//plugins/copyright:copyright_test_lib", ], - runtime_deps = [ - "//platform/ide-core", - "//java/java-analysis-api:analysis", - ] + runtime_deps = [":tests"] ) ### auto-generated section `build kotlin.copyright.tests` end diff --git a/plugins/kotlin/core/tests/BUILD.bazel b/plugins/kotlin/core/tests/BUILD.bazel index b35d2d15ebd8..eef03e16c8b1 100644 --- a/plugins/kotlin/core/tests/BUILD.bazel +++ b/plugins/kotlin/core/tests/BUILD.bazel @@ -17,7 +17,38 @@ create_kotlinc_options( jvm_library( name = "tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "@lib//:kotlin-stdlib", + "//libraries/kotlinx/coroutines/core", + "@lib//:vavr", + "//platform/util/jdom", + "@lib//:javax-inject", + "//libraries/guava", + "@lib//:kotlinc-kotlin-compiler-common", + "@lib//:kotlinc-kotlin-compiler-fe10", + "@lib//:kotlinc-kotlin-script-runtime", + "//plugins/kotlin/base/plugin", + "//plugins/kotlin/base/project-structure", + "//plugins/kotlin/base/analysis", + "//plugins/kotlin/core", + "//plugins/kotlin/frontend-independent", + "@lib//:kotlinc-kotlin-jps-common", + "//platform/statistics", + "//java/openapi:java", + "//java/java-indexing-impl:indexing-impl", + "//xml/xml-psi-api:psi", + "//platform/lang-impl", + "//platform/projectModel-impl", + "//platform/indexing-api:indexing", + "//platform/external-system-api:externalSystem", + "//platform/external-system-impl:externalSystem-impl", + "//java/java-impl:impl", + "//xml/xml-psi-impl:psi-impl", + "//platform/core-ui", + "//platform/code-style-impl:codeStyle-impl", + "//java/manifest", + ] ) jvm_library( @@ -64,7 +95,8 @@ jvm_library( "//platform/code-style-impl:codeStyle-impl", "//java/manifest", "//java/manifest:manifest_test_lib", - ] + ], + runtime_deps = [":tests"] ) ### auto-generated section `build kotlin.core.tests` end diff --git a/plugins/kotlin/coverage/tests/BUILD.bazel b/plugins/kotlin/coverage/tests/BUILD.bazel index efa739bff653..5349a44e623c 100644 --- a/plugins/kotlin/coverage/tests/BUILD.bazel +++ b/plugins/kotlin/coverage/tests/BUILD.bazel @@ -4,7 +4,25 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "@lib//:kotlin-stdlib", + "@lib//:kotlinc-kotlin-compiler-common", + "@lib//:kotlinc-kotlin-compiler-tests", + "@lib//:junit4", + "//plugins/kotlin/base/util", + "//plugins/kotlin/core", + "//plugins/kotlin/frontend-independent", + "//plugins/kotlin/jvm/shared", + "//plugins/kotlin/coverage", + "//plugins/kotlin/tests-common:common-tests", + "//plugins/kotlin/test-framework", + "//plugins/kotlin/uast/uast-kotlin", + "//plugins/kotlin/gradle/gradle", + "//platform/core-impl", + "//platform/indexing-api:indexing", + "//plugins/coverage", + ] ) jvm_library( @@ -40,11 +58,7 @@ jvm_library( "//plugins/coverage", "//plugins/coverage:coverage_test_lib", ], - runtime_deps = [ - "//plugins/kotlin/uast/uast-kotlin", - "//plugins/kotlin/gradle/gradle", - "//platform/indexing-api:indexing", - ] + runtime_deps = [":tests"] ) ### auto-generated section `build intellij.kotlin.coverage.tests` end diff --git a/plugins/kotlin/features-trainer/tests/BUILD.bazel b/plugins/kotlin/features-trainer/tests/BUILD.bazel index f3b17d645828..b0530e9a5b2f 100644 --- a/plugins/kotlin/features-trainer/tests/BUILD.bazel +++ b/plugins/kotlin/features-trainer/tests/BUILD.bazel @@ -4,7 +4,20 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "@lib//:kotlin-stdlib", + "//plugins/ide-features-trainer:featuresTrainer", + "//java/java-features-trainer:featuresTrainer", + "//java/java-psi-api:psi", + "//platform/core-api:core", + "//platform/projectModel-api:projectModel", + "//platform/editor-ui-api:editor-ui", + "//platform/platform-impl:ide-impl", + "//platform/analysis-api:analysis", + "@lib//:kotlinc-kotlin-compiler-common", + "//plugins/kotlin/formatter", + ] ) jvm_library( @@ -29,7 +42,8 @@ jvm_library( "//platform/testFramework", "//platform/testFramework:testFramework_test_lib", "//plugins/kotlin/features-trainer", - ] + ], + runtime_deps = [":tests"] ) ### auto-generated section `build intellij.kotlin.featuresTrainer.tests` end diff --git a/plugins/kotlin/fir/tests/BUILD.bazel b/plugins/kotlin/fir/tests/BUILD.bazel index b86166de0dcd..7802d7135776 100644 --- a/plugins/kotlin/fir/tests/BUILD.bazel +++ b/plugins/kotlin/fir/tests/BUILD.bazel @@ -16,7 +16,34 @@ create_kotlinc_options( jvm_library( name = "tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "@lib//:kotlinc-analysis-api", + "//java/testFramework", + "@lib//:kotlinc-kotlin-compiler-common", + "@lib//:kotlinc-low-level-api-fir", + "@lib//:kotlinc-kotlin-compiler-tests", + "@lib//:kotlinc-analysis-api-platform-interface", + "//platform/usageView", + "//platform/core-api:core", + "//plugins/kotlin/base/analysis", + "//plugins/kotlin/base/analysis-api/analysis-api-utils:kotlin-base-analysis-utils", + "//plugins/kotlin/base/facet", + "//plugins/kotlin/base/plugin", + "//plugins/kotlin/base/project-structure", + "//platform/editor-ui-ex:editor-ex", + "//plugins/kotlin/base/util", + "//plugins/kotlin/code-insight/impl-base:kotlin-codeInsight-shared", + "//plugins/kotlin/code-insight/override-implement-shared:kotlin-code-insight-override-implement-shared", + "//plugins/kotlin/code-insight/override-implement-k2:kotlin-codeInsight-overrideImplement", + "//plugins/kotlin/completion/tests-shared:kotlin-completion-tests-shared", + "//plugins/kotlin/fir", + "//plugins/gradle:gradle-tests", + "//xml/xml-psi-api:psi", + "//plugins/kotlin/test-framework", + "//libraries/kotlinx/serialization/core", + "//libraries/kotlinx/serialization/json", + ] ) jvm_library( @@ -100,7 +127,8 @@ jvm_library( "//plugins/kotlin/kotlin.searching", "//plugins/kotlin/run-configurations/junit", "//plugins/kotlin/intellij.kotlin.base.test:base-test_test_lib", - ] + ], + runtime_deps = [":tests"] ) ### auto-generated section `build kotlin.fir.tests` end diff --git a/plugins/kotlin/gradle/code-insight-groovy/tests.k2/BUILD.bazel b/plugins/kotlin/gradle/code-insight-groovy/tests.k2/BUILD.bazel index 4f3a3af25e20..8cc2d801cefc 100644 --- a/plugins/kotlin/gradle/code-insight-groovy/tests.k2/BUILD.bazel +++ b/plugins/kotlin/gradle/code-insight-groovy/tests.k2/BUILD.bazel @@ -4,7 +4,11 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "kotlin-gradle-codeInsight-groovy-tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "@lib//:kotlin-stdlib", + "@lib//:kotlinc-kotlin-compiler-common", + ] ) jvm_library( @@ -27,7 +31,8 @@ jvm_library( "//plugins/kotlin/base/plugin", "//plugins/kotlin/base/plugin:plugin_test_lib", "//plugins/kotlin/gradle/code-insight-groovy:kotlin-gradle-codeInsight-groovy", - ] + ], + runtime_deps = [":kotlin-gradle-codeInsight-groovy-tests"] ) ### auto-generated section `build intellij.kotlin.gradle.codeInsight.groovy.tests` end diff --git a/plugins/kotlin/gradle/gradle-java/tests.shared/BUILD.bazel b/plugins/kotlin/gradle/gradle-java/tests.shared/BUILD.bazel index bd3ee8355553..edd5e562a93c 100644 --- a/plugins/kotlin/gradle/gradle-java/tests.shared/BUILD.bazel +++ b/plugins/kotlin/gradle/gradle-java/tests.shared/BUILD.bazel @@ -4,7 +4,19 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "tests.shared", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + exports = ["@lib//:kotlin-gradle-plugin-idea"], + runtime_deps = [ + "@lib//:kotlin-stdlib", + "//platform/smRunner", + "@lib//:kotlinc-kotlin-compiler-common", + "@lib//:kotlinc-analysis-api", + "//platform/backend/workspace", + "@lib//:kotlin-gradle-plugin-idea", + "@lib//:kotlin-test", + "@lib//:kotlinc-kotlin-compiler-tests", + "//plugins/kotlin/gradle/gradle-java", + ] ) jvm_library( @@ -98,7 +110,8 @@ jvm_library( "//platform/execution", "//plugins/junit", ], - exports = ["@lib//:kotlin-gradle-plugin-idea"] + exports = ["@lib//:kotlin-gradle-plugin-idea"], + runtime_deps = [":tests.shared"] ) ### auto-generated section `build kotlin.gradle.gradle-java.tests.shared` end diff --git a/plugins/kotlin/gradle/gradle-tooling/tests/BUILD.bazel b/plugins/kotlin/gradle/gradle-tooling/tests/BUILD.bazel index 53a56c3c1882..0f3b5c4f20ad 100644 --- a/plugins/kotlin/gradle/gradle-tooling/tests/BUILD.bazel +++ b/plugins/kotlin/gradle/gradle-tooling/tests/BUILD.bazel @@ -4,7 +4,19 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "@lib//:kotlin-stdlib", + "@lib//:kotlin-test", + "@lib//:junit4", + "//plugins/kotlin/base/project-model", + "//plugins/kotlin/gradle/gradle-tooling:kotlin-gradle-tooling", + "//plugins/kotlin/tests-common:common-tests", + "//plugins/kotlin/gradle/gradle-tooling/impl", + "//plugins/gradle/tooling-extension-api:toolingExtension", + "//plugins/gradle/tooling-extension-impl:toolingExtension-impl", + "@lib//:kotlin-tooling-core", + ] ) jvm_library( @@ -27,7 +39,8 @@ jvm_library( "//plugins/gradle/tooling-extension-impl:toolingExtension-impl", "@lib//:gradle", "@lib//:kotlin-tooling-core", - ] + ], + runtime_deps = [":tests"] ) ### auto-generated section `build intellij.kotlin.gradle.tooling.tests` end diff --git a/plugins/kotlin/gradle/gradle/tests/BUILD.bazel b/plugins/kotlin/gradle/gradle/tests/BUILD.bazel index 9e9f749da6ca..2d5b403c2121 100644 --- a/plugins/kotlin/gradle/gradle/tests/BUILD.bazel +++ b/plugins/kotlin/gradle/gradle/tests/BUILD.bazel @@ -10,7 +10,50 @@ resourcegroup( jvm_library( name = "tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + exports = ["@lib//:kotlin-tooling-core"], + runtime_deps = [ + "@lib//:kotlin-stdlib", + "@lib//:kotlinc-kotlin-compiler-common", + "@lib//:kotlinc-kotlin-jps-common", + "@lib//:kotlinc-kotlin-scripting-compiler-impl", + "@lib//:kotlinc-kotlin-compiler-tests", + "//libraries/guava", + "@lib//:junit4", + "@lib//:kotlin-test", + "//plugins/kotlin/base/util", + "//platform/platform-impl:ide-impl", + "//plugins/kotlin/base/project-model", + "//plugins/kotlin/base/compiler-configuration", + "//plugins/kotlin/base/plugin", + "//plugins/kotlin/base/facet", + "//plugins/kotlin/base/platforms", + "//plugins/kotlin/base/project-structure", + "//plugins/kotlin/base/analysis", + "//plugins/kotlin/base/code-insight", + "//plugins/kotlin/base/test", + "//plugins/kotlin/base/fe10/analysis", + "//plugins/kotlin/project-configuration", + "//plugins/kotlin/core", + "//plugins/kotlin/frontend-independent", + "//plugins/kotlin/idea", + "//plugins/kotlin/idea/tests", + "//plugins/kotlin/jvm/shared", + "//plugins/kotlin/migration", + "//plugins/kotlin/inspections", + "//plugins/kotlin/gradle/code-insight-groovy:kotlin-gradle-codeInsight-groovy", + "//plugins/kotlin/gradle/gradle", + "//plugins/kotlin/gradle/code-insight-common:kotlin-gradle-codeInsight-common", + "//plugins/groovy/groovy-psi:psi", + "//plugins/kotlin/tests-common:common-tests", + "//plugins/kotlin/test-framework", + "//plugins/gradle/java", + "//plugins/gradle:gradle-tests", + "//libraries/kotlin/reflect", + "//plugins/kotlin/native", + "//libraries/kotlinx/coroutines/core", + "@lib//:kotlin-tooling-core", + ] ) jvm_library( @@ -83,7 +126,8 @@ jvm_library( "//platform/testFramework/junit5", "//platform/testFramework/junit5:junit5_test_lib", ], - exports = ["@lib//:kotlin-tooling-core"] + exports = ["@lib//:kotlin-tooling-core"], + runtime_deps = [":tests"] ) ### auto-generated section `build intellij.kotlin.gradle.gradle.tests` end diff --git a/plugins/kotlin/gradle/multiplatform-tests-k2/BUILD.bazel b/plugins/kotlin/gradle/multiplatform-tests-k2/BUILD.bazel index ab514512ed8b..912df2c697c5 100644 --- a/plugins/kotlin/gradle/multiplatform-tests-k2/BUILD.bazel +++ b/plugins/kotlin/gradle/multiplatform-tests-k2/BUILD.bazel @@ -4,7 +4,19 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "kotlin-gradle-multiplatform-tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "@lib//:kotlinc-kotlin-jps-common", + "//plugins/kotlin/base/util", + "//plugins/kotlin/base/plugin", + "//plugins/kotlin/base/facet", + "//plugins/kotlin/base/analysis", + "//plugins/gradle/java", + "//plugins/kotlin/gradle/gradle-tooling/impl", + "//plugins/kotlin/gradle/gradle", + "@lib//:kotlinc-kotlin-compiler-common", + "@lib//:kotlin-tooling-core", + ] ) jvm_library( @@ -49,7 +61,8 @@ jvm_library( "//plugins/kotlin/base/project-structure", "//plugins/kotlin/base/project-structure:project-structure_test_lib", "@lib//:kotlinc-analysis-api", - ] + ], + runtime_deps = [":kotlin-gradle-multiplatform-tests"] ) ### auto-generated section `build intellij.kotlin.gradle.multiplatform.tests` end diff --git a/plugins/kotlin/gradle/multiplatform-tests/BUILD.bazel b/plugins/kotlin/gradle/multiplatform-tests/BUILD.bazel index 79d6222cc6ef..d14919d8fc0d 100644 --- a/plugins/kotlin/gradle/multiplatform-tests/BUILD.bazel +++ b/plugins/kotlin/gradle/multiplatform-tests/BUILD.bazel @@ -4,7 +4,23 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "multiplatform-tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "@lib//:kotlinc-kotlin-jps-common", + "//plugins/kotlin/base/util", + "//plugins/kotlin/base/plugin", + "//plugins/kotlin/base/facet", + "//plugins/kotlin/base/analysis", + "//plugins/gradle/java", + "//plugins/kotlin/gradle/gradle-tooling/impl", + "//plugins/kotlin/gradle/gradle", + "//plugins/kotlin/compiler-plugins/lombok/gradle", + "@lib//:kotlinc-kotlin-compiler-common", + "@lib//:kotlin-tooling-core", + "//plugins/kotlin/base/project-model", + "//android/android-plugin:plugin", + "//plugins/kotlin/gradle/gradle-java/tests.shared", + ] ) jvm_library( @@ -50,7 +66,8 @@ jvm_library( "//plugins/gradle/java:java-tests_test_lib", "//plugins/kotlin/gradle/gradle-java/tests.shared", "//plugins/kotlin/gradle/gradle-java/tests.shared:tests.shared_test_lib", - ] + ], + runtime_deps = [":multiplatform-tests"] ) ### auto-generated section `build intellij.kotlin.gradle.multiplatformTests` end diff --git a/plugins/kotlin/grazie/intellij.kotlin.grazie.tests/BUILD.bazel b/plugins/kotlin/grazie/intellij.kotlin.grazie.tests/BUILD.bazel index 2d2bd49ae9ba..f68e09125129 100644 --- a/plugins/kotlin/grazie/intellij.kotlin.grazie.tests/BUILD.bazel +++ b/plugins/kotlin/grazie/intellij.kotlin.grazie.tests/BUILD.bazel @@ -23,7 +23,8 @@ jvm_library( "//plugins/grazie/src/test:grazie-tests_test_lib", "//plugins/kotlin/base/test:test_test_lib", "//platform/core-api:core", - ] + ], + runtime_deps = [":kotlin-grazie-tests"] ) ### auto-generated section `build intellij.kotlin.grazie.tests` end diff --git a/plugins/kotlin/highlighting/highlighting-shared/tests/BUILD.bazel b/plugins/kotlin/highlighting/highlighting-shared/tests/BUILD.bazel index f6ecabd8f744..cac2b4c07d79 100644 --- a/plugins/kotlin/highlighting/highlighting-shared/tests/BUILD.bazel +++ b/plugins/kotlin/highlighting/highlighting-shared/tests/BUILD.bazel @@ -28,7 +28,8 @@ jvm_library( "//plugins/kotlin/base/test:test_test_lib", "//plugins/kotlin/base/plugin", "//plugins/kotlin/base/plugin:plugin_test_lib", - ] + ], + runtime_deps = [":tests"] ) ### auto-generated section `build kotlin.highlighting.shared.tests` end diff --git a/plugins/kotlin/i18n/tests/BUILD.bazel b/plugins/kotlin/i18n/tests/BUILD.bazel index 9ab94e2ded6b..0741f0583289 100644 --- a/plugins/kotlin/i18n/tests/BUILD.bazel +++ b/plugins/kotlin/i18n/tests/BUILD.bazel @@ -4,7 +4,15 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "@lib//:kotlin-stdlib", + "@lib//:kotlinc-kotlin-compiler-common", + "//plugins/kotlin/frontend-independent", + "//plugins/kotlin/i18n", + "//plugins/java-i18n", + "//plugins/properties/properties-psi-impl:backend-psi", + ] ) jvm_library( @@ -31,7 +39,8 @@ jvm_library( "//plugins/kotlin/base/test:test_test_lib", "//plugins/kotlin/base/plugin", "//plugins/kotlin/base/plugin:plugin_test_lib", - ] + ], + runtime_deps = [":tests"] ) ### auto-generated section `build intellij.kotlin.i18n.tests` end diff --git a/plugins/kotlin/idea/tests/BUILD.bazel b/plugins/kotlin/idea/tests/BUILD.bazel index 7326c9f96531..9463851dea35 100644 --- a/plugins/kotlin/idea/tests/BUILD.bazel +++ b/plugins/kotlin/idea/tests/BUILD.bazel @@ -20,7 +20,61 @@ create_kotlinc_options( jvm_library( name = "tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + exports = ["//plugins/kotlin/intellij.kotlin.base.test:base-test"], + runtime_deps = [ + "@lib//:kotlin-stdlib", + "//platform/ide-core-impl", + "//platform/smRunner", + "//platform/usageView", + "//platform/vcs-api:vcs", + "//platform/vcs-impl/shared", + "//plugins/kotlin/base/util", + "//plugins/kotlin/base/plugin", + "//platform/editor-ui-ex:editor-ex", + "//plugins/kotlin/base/psi", + "//plugins/kotlin/base/platforms", + "//plugins/kotlin/base/facet", + "//plugins/kotlin/base/project-structure", + "//plugins/kotlin/base/analysis", + "//plugins/kotlin/highlighting/highlighting-shared:kotlin-highlighting-shared", + "//plugins/kotlin/base/code-insight", + "//plugins/kotlin/base/fe10/analysis", + "//plugins/kotlin/base/fe10/kdoc", + "//plugins/kotlin/base/fe10/code-insight", + "//plugins/kotlin/gradle/gradle", + "//plugins/kotlin/compiler-plugins/sam-with-receiver/common", + "//plugins/kotlin/compiler-plugins/sam-with-receiver/gradle", + "//plugins/kotlin/compiler-plugins/sam-with-receiver/maven", + "//plugins/kotlin/compiler-plugins/assignment/common-k1:kotlin-compiler-plugins-assignment-common-k1", + "//plugins/kotlin/compiler-plugins/assignment/gradle", + "//plugins/kotlin/compiler-plugins/assignment/maven", + "//plugins/kotlin/compiler-plugins/noarg/common", + "//plugins/kotlin/compiler-plugins/noarg/gradle", + "//plugins/kotlin/compiler-plugins/noarg/maven", + "//plugins/kotlin/compiler-plugins/kotlinx-serialization/common", + "//plugins/kotlin/compiler-plugins/kotlinx-serialization/gradle", + "//plugins/kotlin/compiler-plugins/kotlinx-serialization/maven", + "//plugins/kotlin/compiler-plugins/kotlin-dataframe/maven", + "//plugins/kotlin/compiler-plugins/allopen/common-k1:kotlin-compiler-plugins-allopen-common-k1", + "//plugins/kotlin/compiler-plugins/allopen/gradle", + "//plugins/kotlin/compiler-plugins/allopen/maven", + "//plugins/kotlin/compiler-plugins/parcelize/common", + "//plugins/kotlin/compiler-plugins/parcelize/gradle", + "//plugins/kotlin/completion/api", + "//plugins/kotlin/completion/impl-shared:kotlin-completion-impl-shared", + "//plugins/kotlin/completion/impl-k1:kotlin-completion-impl-k1", + "//plugins/kotlin/project-configuration", + "//plugins/kotlin/migration", + "//plugins/kotlin/inspections", + "//plugins/kotlin/preferences", + "//plugins/kotlin/code-insight/override-implement-shared:kotlin-code-insight-override-implement-shared", + "//plugins/kotlin/code-insight/override-implement-k1:kotlin-code-insight-override-implement-k1", + "//platform/code-style-impl:codeStyle-impl", + "@lib//:kotlinc-kotlin-script-runtime", + "//plugins/kotlin/refactorings/kotlin.refactorings.common:kotlin-refactorings-common", + "//platform/testFramework/junit5", + ] ) jvm_library( @@ -198,27 +252,7 @@ jvm_library( "//platform/platform-tests:tests_test_lib", ], exports = ["//plugins/kotlin/intellij.kotlin.base.test:base-test_test_lib"], - runtime_deps = [ - "//plugins/kotlin/gradle/gradle", - "//plugins/kotlin/compiler-plugins/sam-with-receiver/common", - "//plugins/kotlin/compiler-plugins/sam-with-receiver/gradle", - "//plugins/kotlin/compiler-plugins/sam-with-receiver/maven", - "//plugins/kotlin/compiler-plugins/assignment/common-k1:kotlin-compiler-plugins-assignment-common-k1", - "//plugins/kotlin/compiler-plugins/assignment/gradle", - "//plugins/kotlin/compiler-plugins/assignment/maven", - "//plugins/kotlin/compiler-plugins/noarg/common", - "//plugins/kotlin/compiler-plugins/noarg/gradle", - "//plugins/kotlin/compiler-plugins/noarg/maven", - "//plugins/kotlin/compiler-plugins/kotlinx-serialization/common", - "//plugins/kotlin/compiler-plugins/kotlinx-serialization/gradle", - "//plugins/kotlin/compiler-plugins/kotlinx-serialization/maven", - "//plugins/kotlin/compiler-plugins/kotlin-dataframe/maven", - "//plugins/kotlin/compiler-plugins/allopen/common-k1:kotlin-compiler-plugins-allopen-common-k1", - "//plugins/kotlin/compiler-plugins/allopen/gradle", - "//plugins/kotlin/compiler-plugins/allopen/maven", - "//plugins/kotlin/compiler-plugins/parcelize/common", - "//plugins/kotlin/compiler-plugins/parcelize/gradle", - ] + runtime_deps = [":tests"] ) ### auto-generated section `build kotlin.idea.tests` end diff --git a/plugins/kotlin/injection/base/tests/BUILD.bazel b/plugins/kotlin/injection/base/tests/BUILD.bazel index 0aeefe56702f..39b8e927df01 100644 --- a/plugins/kotlin/injection/base/tests/BUILD.bazel +++ b/plugins/kotlin/injection/base/tests/BUILD.bazel @@ -10,7 +10,8 @@ create_kotlinc_options( jvm_library( name = "tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = ["//platform/editor-ui-ex:editor-ex"] ) jvm_library( @@ -37,7 +38,8 @@ jvm_library( "//plugins/IntelliLang:langInjection", "@lib//:kotlinc-kotlin-compiler-common", "//plugins/IntelliLang/backend", - ] + ], + runtime_deps = [":tests"] ) ### auto-generated section `build kotlin.base.injection.tests` end diff --git a/plugins/kotlin/injection/k1/tests/BUILD.bazel b/plugins/kotlin/injection/k1/tests/BUILD.bazel index aeff5a444fb6..5d096a07dc46 100644 --- a/plugins/kotlin/injection/k1/tests/BUILD.bazel +++ b/plugins/kotlin/injection/k1/tests/BUILD.bazel @@ -27,7 +27,8 @@ jvm_library( "//platform/testFramework:testFramework_test_lib", "//java/testFramework", "//plugins/kotlin/injection/base/tests:tests_test_lib", - ] + ], + runtime_deps = [":tests"] ) ### auto-generated section `build kotlin.injection.tests` end diff --git a/plugins/kotlin/injection/k2/tests/BUILD.bazel b/plugins/kotlin/injection/k2/tests/BUILD.bazel index 60416163211c..a8563a20bb3e 100644 --- a/plugins/kotlin/injection/k2/tests/BUILD.bazel +++ b/plugins/kotlin/injection/k2/tests/BUILD.bazel @@ -36,7 +36,8 @@ jvm_library( "//plugins/kotlin/idea/tests:tests_test_lib", "@lib//:kotlinc-kotlin-compiler-common", "@lib//:kotlinc-analysis-api", - ] + ], + runtime_deps = [":tests"] ) ### auto-generated section `build intellij.kotlin.injection.tests` end diff --git a/plugins/kotlin/intellij.kotlin.base.test/BUILD.bazel b/plugins/kotlin/intellij.kotlin.base.test/BUILD.bazel index bece28080443..cc66f5c726b6 100644 --- a/plugins/kotlin/intellij.kotlin.base.test/BUILD.bazel +++ b/plugins/kotlin/intellij.kotlin.base.test/BUILD.bazel @@ -89,7 +89,8 @@ jvm_library( "//platform/util/concurrency:concurrency_test_lib", "//platform/navbar/testFramework", "//java/java-impl-inspections:impl-inspections", - ] + ], + runtime_deps = [":base-test"] ) ### auto-generated section `build intellij.kotlin.base.test` end diff --git a/plugins/kotlin/j2k/k1.new/tests/BUILD.bazel b/plugins/kotlin/j2k/k1.new/tests/BUILD.bazel index d085d4d97b06..7166306e190f 100644 --- a/plugins/kotlin/j2k/k1.new/tests/BUILD.bazel +++ b/plugins/kotlin/j2k/k1.new/tests/BUILD.bazel @@ -10,7 +10,16 @@ create_kotlinc_options( jvm_library( name = "tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "@lib//:kotlin-stdlib", + "@lib//:kotlinc-kotlin-compiler-common", + "@lib//:kotlinc-kotlin-compiler-fe10", + "@lib//:kotlinc-analysis-api", + "//plugins/kotlin/base/analysis", + "//plugins/kotlin/base/fe10/analysis", + "//plugins/kotlin/base/fe10/code-insight", + ] ) jvm_library( @@ -52,7 +61,8 @@ jvm_library( "//plugins/kotlin/j2k/shared/tests:tests_test_lib", "//plugins/kotlin/base/plugin", "//plugins/kotlin/base/plugin:plugin_test_lib", - ] + ], + runtime_deps = [":tests"] ) ### auto-generated section `build kotlin.j2k.k1.new.tests` end diff --git a/plugins/kotlin/j2k/k2/tests/BUILD.bazel b/plugins/kotlin/j2k/k2/tests/BUILD.bazel index 576a648c7a5e..275be9cccff5 100644 --- a/plugins/kotlin/j2k/k2/tests/BUILD.bazel +++ b/plugins/kotlin/j2k/k2/tests/BUILD.bazel @@ -14,7 +14,13 @@ create_kotlinc_options( jvm_library( name = "tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "@lib//:kotlin-stdlib", + "@lib//:kotlinc-analysis-api", + "@lib//:kotlinc-kotlin-compiler-common", + "@lib//:kotlinc-kotlin-compiler-fir", + ] ) jvm_library( @@ -48,7 +54,8 @@ jvm_library( "//plugins/kotlin/j2k/shared/tests:tests_test_lib", "//plugins/kotlin/test-framework:test-framework_test_lib", "//plugins/kotlin/tests-common:common-tests_test_lib", - ] + ], + runtime_deps = [":tests"] ) ### auto-generated section `build intellij.kotlin.j2k.tests` end diff --git a/plugins/kotlin/j2k/shared/tests/BUILD.bazel b/plugins/kotlin/j2k/shared/tests/BUILD.bazel index f8364d0c48d1..46ac9fc1578b 100644 --- a/plugins/kotlin/j2k/shared/tests/BUILD.bazel +++ b/plugins/kotlin/j2k/shared/tests/BUILD.bazel @@ -10,7 +10,12 @@ create_kotlinc_options( jvm_library( name = "tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "@lib//:kotlin-stdlib", + "@lib//:kotlinc-analysis-api", + "@lib//:kotlinc-kotlin-compiler-common", + ] ) jvm_library( @@ -47,7 +52,8 @@ jvm_library( "//plugins/kotlin/code-insight/utils", "//plugins/kotlin/idea/tests:tests_test_lib", "//plugins/kotlin/base/code-insight/minimal", - ] + ], + runtime_deps = [":tests"] ) ### auto-generated section `build kotlin.j2k.shared.tests` end diff --git a/plugins/kotlin/jps/graphImplementationTests/BUILD.bazel b/plugins/kotlin/jps/graphImplementationTests/BUILD.bazel index 33d1da75bd54..06a6097c4549 100644 --- a/plugins/kotlin/jps/graphImplementationTests/BUILD.bazel +++ b/plugins/kotlin/jps/graphImplementationTests/BUILD.bazel @@ -4,7 +4,12 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "graphImplementationTests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "//platform/util/trove", + "//jps/jps-builders:build-tests", + "//libraries/kotlin/reflect", + ] ) jvm_library( @@ -35,7 +40,7 @@ jvm_library( "//libraries/kotlin/reflect", "//plugins/kotlin/tests-from-compiler:tests-from-compiler_test_lib", ], - runtime_deps = ["//platform/util/trove"] + runtime_deps = [":graphImplementationTests"] ) ### auto-generated section `build kotlin.jps.graphImplementationTests` end diff --git a/plugins/kotlin/jvm-debugger/test/BUILD.bazel b/plugins/kotlin/jvm-debugger/test/BUILD.bazel index 240ad845757e..a39a67203ee7 100644 --- a/plugins/kotlin/jvm-debugger/test/BUILD.bazel +++ b/plugins/kotlin/jvm-debugger/test/BUILD.bazel @@ -29,7 +29,13 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "test", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "//platform/core-api:core", + "//java/debugger/openapi:java-debugger", + "//plugins/kotlin/uast/uast-kotlin", + "//plugins/kotlin/gradle/gradle", + ] ) jvm_library( @@ -115,10 +121,6 @@ jvm_library( "//plugins/kotlin/idea/tests:tests_test_lib", "//platform/execution", ], - runtime_deps = [ - "//platform/core-api:core", - "//plugins/kotlin/uast/uast-kotlin", - "//plugins/kotlin/gradle/gradle", - ] + runtime_deps = [":test"] ) ### auto-generated section `build kotlin.jvm-debugger.test` end \ No newline at end of file diff --git a/plugins/kotlin/jvm-debugger/test/compose/BUILD.bazel b/plugins/kotlin/jvm-debugger/test/compose/BUILD.bazel index cc612f58c808..ae05ef960fa1 100644 --- a/plugins/kotlin/jvm-debugger/test/compose/BUILD.bazel +++ b/plugins/kotlin/jvm-debugger/test/compose/BUILD.bazel @@ -22,7 +22,8 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "compose", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = ["//plugins/kotlin/plugin/k2"] ) jvm_library( @@ -54,6 +55,7 @@ jvm_library( "//plugins/kotlin/tests-compose:tests-compose_test_lib", "//android/adt-ui", "//android/adt-ui:adt-ui_test_lib", - ] + ], + runtime_deps = [":compose"] ) ### auto-generated section `build intellij.kotlin.jvm.debugger.test.compose` end \ No newline at end of file diff --git a/plugins/kotlin/jvm-debugger/test/k2/BUILD.bazel b/plugins/kotlin/jvm-debugger/test/k2/BUILD.bazel index c50d4f253670..483d8024a247 100644 --- a/plugins/kotlin/jvm-debugger/test/k2/BUILD.bazel +++ b/plugins/kotlin/jvm-debugger/test/k2/BUILD.bazel @@ -23,7 +23,12 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "kotlin-jvm-debugger-test", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "//platform/core-api:core", + "//plugins/kotlin/uast/uast-kotlin", + "//plugins/kotlin/gradle/gradle", + ] ) jvm_library( @@ -90,10 +95,6 @@ jvm_library( "//plugins/kotlin/base/project-structure:project-structure_test_lib", "//plugins/kotlin/base/scripting/scripting.shared", ], - runtime_deps = [ - "//platform/core-api:core", - "//plugins/kotlin/uast/uast-kotlin", - "//plugins/kotlin/gradle/gradle", - ] + runtime_deps = [":kotlin-jvm-debugger-test"] ) ### auto-generated section `build intellij.kotlin.jvm.debugger.test` end \ No newline at end of file diff --git a/plugins/kotlin/jvm-debugger/test/parcelize/BUILD.bazel b/plugins/kotlin/jvm-debugger/test/parcelize/BUILD.bazel index e5993ecbb196..01509241a4a2 100644 --- a/plugins/kotlin/jvm-debugger/test/parcelize/BUILD.bazel +++ b/plugins/kotlin/jvm-debugger/test/parcelize/BUILD.bazel @@ -22,7 +22,8 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "parcelize", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = ["//plugins/kotlin/plugin/k2"] ) jvm_library( @@ -47,6 +48,7 @@ jvm_library( "//java/testFramework", "@lib//:kotlinc-kotlin-compiler-common", "//android/streaming", - ] + ], + runtime_deps = [":parcelize"] ) ### auto-generated section `build intellij.kotlin.jvm.debugger.test.parcelize` end \ No newline at end of file diff --git a/plugins/kotlin/kotlin.lombok.tests/BUILD.bazel b/plugins/kotlin/kotlin.lombok.tests/BUILD.bazel index 9391f4eab20b..2909616be066 100644 --- a/plugins/kotlin/kotlin.lombok.tests/BUILD.bazel +++ b/plugins/kotlin/kotlin.lombok.tests/BUILD.bazel @@ -28,7 +28,8 @@ jvm_library( "//plugins/kotlin/base/plugin", "//plugins/kotlin/base/plugin:plugin_test_lib", "//java/openapi:java", - ] + ], + runtime_deps = [":kotlin.lombok.tests"] ) ### auto-generated section `build intellij.kotlin.lombok.tests` end diff --git a/plugins/kotlin/kotlin.searching/kotlin.searching.test.k2/BUILD.bazel b/plugins/kotlin/kotlin.searching/kotlin.searching.test.k2/BUILD.bazel index 80c994e34b3f..89b8ddcd02a0 100644 --- a/plugins/kotlin/kotlin.searching/kotlin.searching.test.k2/BUILD.bazel +++ b/plugins/kotlin/kotlin.searching/kotlin.searching.test.k2/BUILD.bazel @@ -4,7 +4,13 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "test", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "@lib//:kotlinc-kotlin-compiler-common", + "//plugins/kotlin/fir", + "//platform/usageView", + "//plugins/kotlin/base/analysis", + ] ) jvm_library( @@ -32,7 +38,7 @@ jvm_library( "//plugins/kotlin/base/plugin:plugin_test_lib", "//plugins/kotlin/base/analysis", ], - runtime_deps = ["//plugins/kotlin/fir"] + runtime_deps = [":test"] ) ### auto-generated section `build intellij.kotlin.searching.test` end diff --git a/plugins/kotlin/maven/tests/BUILD.bazel b/plugins/kotlin/maven/tests/BUILD.bazel index 0733c50f0608..d270940cd590 100644 --- a/plugins/kotlin/maven/tests/BUILD.bazel +++ b/plugins/kotlin/maven/tests/BUILD.bazel @@ -4,7 +4,47 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "@lib//:kotlin-stdlib", + "@lib//:kotlinc-kotlin-compiler-common", + "@lib//:kotlinc-kotlin-compiler-fe10", + "@lib//:kotlinc-kotlin-compiler-tests", + "@lib//:junit4", + "//libraries/gson", + "//plugins/kotlin/base/util", + "//plugins/kotlin/base/compiler-configuration", + "//plugins/kotlin/base/plugin", + "//plugins/kotlin/base/platforms", + "//plugins/kotlin/base/facet", + "//plugins/kotlin/base/project-structure", + "//plugins/kotlin/base/analysis", + "//plugins/kotlin/base/test", + "//plugins/kotlin/base/fe10/analysis", + "//plugins/kotlin/core", + "//plugins/kotlin/project-configuration", + "//plugins/kotlin/frontend-independent", + "@lib//:kotlinc-kotlin-jps-common", + "//plugins/kotlin/idea", + "//plugins/kotlin/idea/tests", + "//plugins/kotlin/jvm/shared", + "//plugins/kotlin/formatter", + "//plugins/kotlin/maven", + "//plugins/kotlin/tests-common:common-tests", + "//plugins/kotlin/test-framework", + "//plugins/kotlin/compiler-plugins/allopen/common-k1:kotlin-compiler-plugins-allopen-common-k1", + "//plugins/kotlin/compiler-plugins/allopen/maven", + "//plugins/kotlin/compiler-plugins/noarg/common", + "//plugins/kotlin/compiler-plugins/noarg/maven", + "//plugins/kotlin/compiler-plugins/sam-with-receiver/common", + "//plugins/kotlin/compiler-plugins/sam-with-receiver/maven", + "//plugins/kotlin/compiler-plugins/assignment/common-k1:kotlin-compiler-plugins-assignment-common-k1", + "//plugins/kotlin/compiler-plugins/assignment/maven", + "//plugins/kotlin/compiler-plugins/kotlinx-serialization/common", + "//plugins/kotlin/compiler-plugins/kotlinx-serialization/maven", + "//plugins/kotlin/compiler-plugins/kotlin-dataframe/maven", + "//plugins/maven", + ] ) jvm_library( @@ -65,19 +105,7 @@ jvm_library( "//platform/util/jdom", "//java/java-runtime:rt", ], - runtime_deps = [ - "//plugins/kotlin/compiler-plugins/allopen/common-k1:kotlin-compiler-plugins-allopen-common-k1", - "//plugins/kotlin/compiler-plugins/allopen/maven", - "//plugins/kotlin/compiler-plugins/noarg/common", - "//plugins/kotlin/compiler-plugins/noarg/maven", - "//plugins/kotlin/compiler-plugins/sam-with-receiver/common", - "//plugins/kotlin/compiler-plugins/sam-with-receiver/maven", - "//plugins/kotlin/compiler-plugins/assignment/common-k1:kotlin-compiler-plugins-assignment-common-k1", - "//plugins/kotlin/compiler-plugins/assignment/maven", - "//plugins/kotlin/compiler-plugins/kotlinx-serialization/common", - "//plugins/kotlin/compiler-plugins/kotlinx-serialization/maven", - "//plugins/kotlin/compiler-plugins/kotlin-dataframe/maven", - ] + runtime_deps = [":tests"] ) ### auto-generated section `build intellij.kotlin.maven.tests` end diff --git a/plugins/kotlin/ml-completion/tests/BUILD.bazel b/plugins/kotlin/ml-completion/tests/BUILD.bazel index 2d89505ebdef..1b57953a9059 100644 --- a/plugins/kotlin/ml-completion/tests/BUILD.bazel +++ b/plugins/kotlin/ml-completion/tests/BUILD.bazel @@ -4,7 +4,13 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "//plugins/kotlin/plugin/k1", + "@lib//:kotlin-stdlib", + "//plugins/kotlin/ml-completion:completion-ml", + "//platform/platform-impl/internal", + ] ) jvm_library( @@ -18,7 +24,7 @@ jvm_library( "//plugins/kotlin/ml-completion:completion-ml", "//platform/platform-impl/internal", ], - runtime_deps = ["//plugins/kotlin/plugin/k1"] + runtime_deps = [":tests"] ) ### auto-generated section `build intellij.kotlin.completion.ml.tests` end diff --git a/plugins/kotlin/native/tests/BUILD.bazel b/plugins/kotlin/native/tests/BUILD.bazel index 2e4e8697c2cc..e72de91f0c78 100644 --- a/plugins/kotlin/native/tests/BUILD.bazel +++ b/plugins/kotlin/native/tests/BUILD.bazel @@ -4,7 +4,16 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "@lib//:kotlin-stdlib", + "@lib//:kotlinc-kotlin-compiler-common", + "//plugins/kotlin/native", + "@lib//:kotlinc-kotlin-jps-common", + "//platform/lang-impl", + "//java/java-psi-api:psi", + "//java/idea-ui:ui", + ] ) jvm_library( @@ -25,7 +34,8 @@ jvm_library( "//plugins/kotlin/base/test:test_test_lib", "//java/java-psi-api:psi", "//java/idea-ui:ui", - ] + ], + runtime_deps = [":tests"] ) ### auto-generated section `build intellij.kotlin.native.tests` end diff --git a/plugins/kotlin/navigation/tests/BUILD.bazel b/plugins/kotlin/navigation/tests/BUILD.bazel index 4c54fc07a657..2fbbfe334f63 100644 --- a/plugins/kotlin/navigation/tests/BUILD.bazel +++ b/plugins/kotlin/navigation/tests/BUILD.bazel @@ -40,7 +40,8 @@ jvm_library( "//plugins/kotlin/base/plugin:plugin_test_lib", "//plugins/kotlin/base/project-structure", "//plugins/kotlin/base/project-structure:project-structure_test_lib", - ] + ], + runtime_deps = [":tests"] ) ### auto-generated section `build intellij.kotlin.navigation.tests` end diff --git a/plugins/kotlin/performance-tests/performance-test-utils/BUILD.bazel b/plugins/kotlin/performance-tests/performance-test-utils/BUILD.bazel index 74e7743d7c18..fefb831e8435 100644 --- a/plugins/kotlin/performance-tests/performance-test-utils/BUILD.bazel +++ b/plugins/kotlin/performance-tests/performance-test-utils/BUILD.bazel @@ -4,7 +4,18 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "performance-test-utils", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "@lib//:kotlin-stdlib", + "//platform/execution", + "//plugins/kotlin/base/util", + "//platform/vcs-api:vcs", + "//plugins/kotlin/base/facet", + "//plugins/kotlin/base/analysis", + "//plugins/kotlin/base/fe10/analysis", + "//plugins/kotlin/project-configuration", + "//plugins/kotlin/compiler-plugins/lombok/gradle", + ] ) jvm_library( @@ -63,7 +74,7 @@ jvm_library( "//libraries/jackson/module-kotlin:libraries-jackson-module-kotlin", "@lib//:okhttp", ], - runtime_deps = ["//plugins/kotlin/compiler-plugins/lombok/gradle"] + runtime_deps = [":performance-test-utils"] ) ### auto-generated section `build kotlin.performance-tests.performance-test-utils` end diff --git a/plugins/kotlin/project-wizard/tests/BUILD.bazel b/plugins/kotlin/project-wizard/tests/BUILD.bazel index 53be3acac5bd..1491c710f875 100644 --- a/plugins/kotlin/project-wizard/tests/BUILD.bazel +++ b/plugins/kotlin/project-wizard/tests/BUILD.bazel @@ -4,7 +4,31 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "@lib//:kotlin-stdlib", + "@lib//:kotlinc-kotlin-compiler-common", + "@lib//:kotlinc-kotlin-compiler-fe10", + "@lib//:kotlinc-kotlin-compiler-tests", + "//libraries/kotlin/reflect", + "//plugins/kotlin/plugin/k1", + "//plugins/kotlin/base/test", + "//plugins/kotlin/base/analysis", + "//plugins/kotlin/base/fe10/analysis", + "//plugins/kotlin/core", + "//plugins/kotlin/frontend-independent", + "//plugins/kotlin/idea", + "//plugins/kotlin/code-insight/api", + "//plugins/kotlin/project-wizard/cli", + "//plugins/kotlin/project-wizard/core", + "//plugins/kotlin/project-wizard/idea", + "//plugins/kotlin/gradle/gradle", + "//platform/execution", + "//plugins/kotlin/gradle/gradle-java", + "//plugins/gradle:gradle-common", + "//plugins/kotlin/jvm-debugger/core-fe10", + "//plugins/kotlin/uast/uast-kotlin", + ] ) jvm_library( @@ -86,7 +110,7 @@ jvm_library( "//plugins/kotlin/code-insight/inspections-shared:kotlin-code-insight-inspections-shared", "//plugins/kotlin/base/scripting/scripting.shared", ], - runtime_deps = ["//plugins/kotlin/plugin/k1"] + runtime_deps = [":tests"] ) ### auto-generated section `build kotlin.project-wizard.tests` end diff --git a/plugins/kotlin/refactorings/kotlin.refactorings.common.tests/BUILD.bazel b/plugins/kotlin/refactorings/kotlin.refactorings.common.tests/BUILD.bazel index 521f371c5b84..169465da7e41 100644 --- a/plugins/kotlin/refactorings/kotlin.refactorings.common.tests/BUILD.bazel +++ b/plugins/kotlin/refactorings/kotlin.refactorings.common.tests/BUILD.bazel @@ -4,7 +4,15 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "kotlin-refactorings-common-tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "//plugins/kotlin/refactorings/kotlin.refactorings.common:kotlin-refactorings-common", + "//java/openapi:java", + "//java/java-impl-refactorings:impl-refactorings", + "//libraries/kotlin/reflect", + "@lib//:kotlinc-kotlin-compiler-common", + "//plugins/kotlin/test-framework", + ] ) jvm_library( @@ -35,7 +43,8 @@ jvm_library( "@lib//:kotlinc-kotlin-compiler-common", "//plugins/kotlin/test-framework", "//plugins/kotlin/test-framework:test-framework_test_lib", - ] + ], + runtime_deps = [":kotlin-refactorings-common-tests"] ) ### auto-generated section `build kotlin.refactorings.common.tests` end diff --git a/plugins/kotlin/refactorings/kotlin.refactorings.tests.k2/BUILD.bazel b/plugins/kotlin/refactorings/kotlin.refactorings.tests.k2/BUILD.bazel index 2894f0332a95..8b4355d36077 100644 --- a/plugins/kotlin/refactorings/kotlin.refactorings.tests.k2/BUILD.bazel +++ b/plugins/kotlin/refactorings/kotlin.refactorings.tests.k2/BUILD.bazel @@ -11,7 +11,11 @@ create_kotlinc_options( jvm_library( name = "kotlin-refactorings-tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "//plugins/kotlin/fir", + "//plugins/kotlin/base/psi", + ] ) jvm_library( @@ -56,7 +60,8 @@ jvm_library( "//platform/testFramework:testFramework_test_lib", "//libraries/gson", "//plugins/kotlin/intellij.kotlin.base.test:base-test_test_lib", - ] + ], + runtime_deps = [":kotlin-refactorings-tests"] ) ### auto-generated section `build intellij.kotlin.refactorings.tests` end diff --git a/plugins/kotlin/scripting-support/BUILD.bazel b/plugins/kotlin/scripting-support/BUILD.bazel index 2d9edacdd29e..4b6e3a0ce115 100644 --- a/plugins/kotlin/scripting-support/BUILD.bazel +++ b/plugins/kotlin/scripting-support/BUILD.bazel @@ -4,7 +4,13 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "scripting-support", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "//platform/core-api:core", + "@lib//:kotlin-stdlib", + "//plugins/kotlin/base/analysis", + "//plugins/kotlin/highlighting/highlighting-shared:kotlin-highlighting-shared", + ] ) jvm_library( @@ -55,7 +61,7 @@ jvm_library( "//plugins/kotlin/base/scripting/scripting.k1:scripting.k1_test_lib", "//plugins/kotlin/base/scripting/scripting.shared", ], - runtime_deps = ["//platform/core-api:core"] + runtime_deps = [":scripting-support"] ) ### auto-generated section `build kotlin.scripting-support` end diff --git a/plugins/kotlin/test-framework/BUILD.bazel b/plugins/kotlin/test-framework/BUILD.bazel index 5c6dd313d8eb..6354df16f933 100644 --- a/plugins/kotlin/test-framework/BUILD.bazel +++ b/plugins/kotlin/test-framework/BUILD.bazel @@ -4,7 +4,21 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "test-framework", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + exports = ["//java/testFramework"], + runtime_deps = [ + "@lib//:kotlin-stdlib", + "//platform/core-api:core", + "//platform/ide-core-impl", + "//plugins/kotlin/base/util", + "//plugins/kotlin/base/compiler-configuration", + "//plugins/kotlin/base/plugin", + "//plugins/kotlin/base/platforms", + "//plugins/kotlin/base/facet", + "//plugins/kotlin/base/project-model", + "//plugins/kotlin/base/analysis", + "//plugins/kotlin/project-configuration", + ] ) jvm_library( @@ -66,7 +80,8 @@ jvm_library( "//platform/statistics/testFramework", "//plugins/kotlin/base/frontend-agnostic", ], - exports = ["//java/testFramework"] + exports = ["//java/testFramework"], + runtime_deps = [":test-framework"] ) ### auto-generated section `build intellij.kotlin.testFramework` end diff --git a/plugins/kotlin/tests-common/BUILD.bazel b/plugins/kotlin/tests-common/BUILD.bazel index 126d53df9590..fa864b3400d8 100644 --- a/plugins/kotlin/tests-common/BUILD.bazel +++ b/plugins/kotlin/tests-common/BUILD.bazel @@ -4,7 +4,27 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "common-tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "@lib//:kotlin-stdlib", + "//libraries/kotlin/reflect", + "@lib//:kotlinc-kotlin-compiler-common", + "@lib//:kotlinc-kotlin-compiler-cli", + "@lib//:kotlinc-kotlin-compiler-tests", + "//libraries/guava", + "//platform/ide-core-impl", + "@lib//:kotlin-test", + "@lib//:junit4", + "//plugins/kotlin/base/frontend-agnostic", + "//plugins/kotlin/base/plugin", + "//platform/util/jdom", + "//platform/core-impl", + "//platform/boot", + "//platform/util-class-loader:util-classLoader", + "//platform/code-style-impl:codeStyle-impl", + "//java/java-psi-api:psi", + "//java/testFramework", + ] ) jvm_library( @@ -44,7 +64,8 @@ jvm_library( "//java/testFramework", "@lib//:kotlinc-analysis-api-impl-base", "//jps/model-api:model", - ] + ], + runtime_deps = [":common-tests"] ) ### auto-generated section `build intellij.kotlin.common.tests` end diff --git a/plugins/kotlin/tests-compose/BUILD.bazel b/plugins/kotlin/tests-compose/BUILD.bazel index 5a907b7caeb7..76ebf6317709 100644 --- a/plugins/kotlin/tests-compose/BUILD.bazel +++ b/plugins/kotlin/tests-compose/BUILD.bazel @@ -4,7 +4,8 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "tests-compose", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = ["@lib//:kotlin-stdlib"] ) jvm_library( @@ -12,7 +13,8 @@ jvm_library( module_name = "kotlin.tests-compose", visibility = ["//visibility:public"], srcs = glob(["test/**/*.kt", "test/**/*.java", "test/**/*.form"], allow_empty = True), - deps = ["@lib//:kotlin-stdlib"] + deps = ["@lib//:kotlin-stdlib"], + runtime_deps = [":tests-compose"] ) ### auto-generated section `build kotlin.tests-compose` end diff --git a/plugins/kotlin/tests-from-compiler/BUILD.bazel b/plugins/kotlin/tests-from-compiler/BUILD.bazel index c0cd89a4114d..41b72c37d4a7 100644 --- a/plugins/kotlin/tests-from-compiler/BUILD.bazel +++ b/plugins/kotlin/tests-from-compiler/BUILD.bazel @@ -4,7 +4,8 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "tests-from-compiler", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = ["//platform/util/trove"] ) jvm_library( @@ -30,7 +31,7 @@ jvm_library( "@lib//:kotlinc-kotlin-compiler-common", "//plugins/devkit/jps-plugin:jps", ], - runtime_deps = ["//platform/util/trove"] + runtime_deps = [":tests-from-compiler"] ) ### auto-generated section `build kotlin.testsFromCompiler` end diff --git a/plugins/kotlin/uast/uast-kotlin-base/tests/BUILD.bazel b/plugins/kotlin/uast/uast-kotlin-base/tests/BUILD.bazel index 8de76c16c9c6..08f138c2f1f7 100644 --- a/plugins/kotlin/uast/uast-kotlin-base/tests/BUILD.bazel +++ b/plugins/kotlin/uast/uast-kotlin-base/tests/BUILD.bazel @@ -4,7 +4,12 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "@lib//:kotlinc-kotlin-compiler-common", + "@lib//:kotlinc-kotlin-compiler-fe10", + "//uast/uast-common:uast", + ] ) jvm_library( @@ -32,7 +37,8 @@ jvm_library( "@lib//:kotlinc-kotlin-compiler-tests", "//plugins/kotlin/base/plugin", "//plugins/kotlin/base/plugin:plugin_test_lib", - ] + ], + runtime_deps = [":tests"] ) ### auto-generated section `build kotlin.uast.uast-kotlin-base.tests` end diff --git a/plugins/kotlin/uast/uast-kotlin-fir/tests/BUILD.bazel b/plugins/kotlin/uast/uast-kotlin-fir/tests/BUILD.bazel index 9914f728679a..165668fb4de8 100644 --- a/plugins/kotlin/uast/uast-kotlin-fir/tests/BUILD.bazel +++ b/plugins/kotlin/uast/uast-kotlin-fir/tests/BUILD.bazel @@ -4,7 +4,27 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "@lib//:kotlin-stdlib", + "@lib//:kotlinc-kotlin-compiler-common", + "//libraries/asm", + "//plugins/kotlin/uast/uast-kotlin-base", + "//plugins/kotlin/uast/uast-kotlin-fir:kotlin-uast", + "@lib//:kotlinc-analysis-api", + "@lib//:kotlinc-analysis-api-k2", + "@lib//:kotlinc-analysis-api-impl-base", + "//plugins/kotlin/frontend-independent", + "//plugins/kotlin/fir", + "//uast/uast-common:uast", + "//platform/core-api:core", + "//java/java-psi-impl:psi-impl", + "//uast/uast-java:java-uast", + "//plugins/kotlin/uast/uast-kotlin-idea-fir:kotlin-uast-idea", + "@lib//:kotlinc-low-level-api-fir", + "@lib//:kotlinc-analysis-api-platform-interface", + "@lib//:kotlinc-symbol-light-classes", + ] ) jvm_library( @@ -44,10 +64,7 @@ jvm_library( "@lib//:kotlinc-symbol-light-classes", "//uast/testFramework", ], - runtime_deps = [ - "//plugins/kotlin/fir", - "//plugins/kotlin/uast/uast-kotlin-idea-fir:kotlin-uast-idea", - ] + runtime_deps = [":tests"] ) ### auto-generated section `build intellij.kotlin.uast.tests` end diff --git a/plugins/kotlin/uast/uast-kotlin-idea-base/tests/BUILD.bazel b/plugins/kotlin/uast/uast-kotlin-idea-base/tests/BUILD.bazel index c365a0a550de..842b7589f693 100644 --- a/plugins/kotlin/uast/uast-kotlin-idea-base/tests/BUILD.bazel +++ b/plugins/kotlin/uast/uast-kotlin-idea-base/tests/BUILD.bazel @@ -4,7 +4,11 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "@lib//:kotlinc-kotlin-compiler-common", + "//uast/uast-common:uast", + ] ) jvm_library( @@ -27,7 +31,8 @@ jvm_library( "//java/testFramework", "@lib//:kotlinc-kotlin-compiler-tests", "//plugins/kotlin/uast/uast-kotlin-idea-base", - ] + ], + runtime_deps = [":tests"] ) ### auto-generated section `build kotlin.uast.uast-kotlin-idea-base.tests` end diff --git a/plugins/kotlin/uast/uast-kotlin-idea-fir/tests/BUILD.bazel b/plugins/kotlin/uast/uast-kotlin-idea-fir/tests/BUILD.bazel index 0b9e8f11d40f..2b06cd578973 100644 --- a/plugins/kotlin/uast/uast-kotlin-idea-fir/tests/BUILD.bazel +++ b/plugins/kotlin/uast/uast-kotlin-idea-fir/tests/BUILD.bazel @@ -4,7 +4,12 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "//plugins/kotlin/plugin/k2", + "@lib//:kotlinc-kotlin-compiler-common", + "//uast/uast-common:uast", + ] ) jvm_library( @@ -31,7 +36,8 @@ jvm_library( "//platform/testFramework", "//platform/testFramework:testFramework_test_lib", "//plugins/kotlin/uast/uast-kotlin-fir/tests:tests_test_lib", - ] + ], + runtime_deps = [":tests"] ) ### auto-generated section `build intellij.kotlin.uast.idea.tests` end diff --git a/plugins/kotlin/uast/uast-kotlin-idea/tests/BUILD.bazel b/plugins/kotlin/uast/uast-kotlin-idea/tests/BUILD.bazel index 1cd5d2262bf7..41c19889894a 100644 --- a/plugins/kotlin/uast/uast-kotlin-idea/tests/BUILD.bazel +++ b/plugins/kotlin/uast/uast-kotlin-idea/tests/BUILD.bazel @@ -4,7 +4,25 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "@lib//:kotlin-stdlib", + "@lib//:kotlinc-kotlin-compiler-common", + "//plugins/kotlin/core", + "//plugins/kotlin/frontend-independent", + "//plugins/kotlin/uast/uast-kotlin-idea", + "//platform/util-ex", + "//platform/core-impl", + "//platform/projectModel-api:projectModel", + "//uast/uast-common:uast", + "//plugins/kotlin/uast/uast-kotlin", + "//plugins/kotlin/uast/uast-kotlin/tests", + "//plugins/kotlin/uast/uast-kotlin-base", + "//plugins/kotlin/uast/uast-kotlin-fir:kotlin-uast", + "//plugins/kotlin/uast/uast-kotlin-base/tests", + "//uast/uast-common-ide:ide", + "//plugins/kotlin/uast/uast-kotlin-idea-base", + ] ) jvm_library( @@ -43,7 +61,8 @@ jvm_library( "//plugins/kotlin/uast/uast-kotlin-idea-base/tests:tests_test_lib", "//uast/uast-common-ide:ide", "//plugins/kotlin/uast/uast-kotlin-idea-base", - ] + ], + runtime_deps = [":tests"] ) ### auto-generated section `build kotlin.uast.uast-kotlin-idea.tests` end diff --git a/plugins/kotlin/uast/uast-kotlin/tests/BUILD.bazel b/plugins/kotlin/uast/uast-kotlin/tests/BUILD.bazel index cc2a44b7a7b1..ca7c9182e938 100644 --- a/plugins/kotlin/uast/uast-kotlin/tests/BUILD.bazel +++ b/plugins/kotlin/uast/uast-kotlin/tests/BUILD.bazel @@ -4,7 +4,21 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "//platform/core-api:core", + "@lib//:kotlin-stdlib", + "//libraries/asm", + "@lib//:kotlinc-kotlin-compiler-common", + "@lib//:kotlinc-kotlin-compiler-fe10", + "@lib//:kotlinc-kotlin-compiler-tests", + "//plugins/kotlin/base/psi", + "//plugins/kotlin/uast/uast-kotlin", + "//uast/uast-common:uast", + "//java/java-psi-impl:psi-impl", + "//uast/uast-java:java-uast", + "@lib//:vavr", + ] ) jvm_library( @@ -49,7 +63,8 @@ jvm_library( "//plugins/groovy/groovy-uast-tests:uast-tests_test_lib", "@lib//:vavr", "//plugins/kotlin/idea/tests:tests_test_lib", - ] + ], + runtime_deps = [":tests"] ) ### auto-generated section `build kotlin.uast.uast-kotlin.tests` end diff --git a/plugins/kotlin/util/test-generator-all/BUILD.bazel b/plugins/kotlin/util/test-generator-all/BUILD.bazel index 4b6c1d8b6455..4d0f8dc6470e 100644 --- a/plugins/kotlin/util/test-generator-all/BUILD.bazel +++ b/plugins/kotlin/util/test-generator-all/BUILD.bazel @@ -24,7 +24,8 @@ jvm_library( "//plugins/kotlin/tests-common:common-tests_test_lib", "//plugins/kotlin/util/project-model-updater", "//plugins/kotlin/intellij.kotlin.base.test:base-test_test_lib", - ] + ], + runtime_deps = [":test-generator-all"] ) ### auto-generated section `build kotlin.util.test-generator-all` end diff --git a/plugins/kotlin/util/test-generator-api/BUILD.bazel b/plugins/kotlin/util/test-generator-api/BUILD.bazel index 1b035a736953..f14829ab81fa 100644 --- a/plugins/kotlin/util/test-generator-api/BUILD.bazel +++ b/plugins/kotlin/util/test-generator-api/BUILD.bazel @@ -28,7 +28,8 @@ jvm_library( "//plugins/kotlin/test-framework:test-framework_test_lib", "//platform/util/jdom", "//java/java-runtime:rt", - ] + ], + runtime_deps = [":test-generator-api"] ) ### auto-generated section `build kotlin.util.test-generator-api` end diff --git a/plugins/kotlin/util/test-generator-fe10/BUILD.bazel b/plugins/kotlin/util/test-generator-fe10/BUILD.bazel index 69003927933c..4680ba97a5ea 100644 --- a/plugins/kotlin/util/test-generator-fe10/BUILD.bazel +++ b/plugins/kotlin/util/test-generator-fe10/BUILD.bazel @@ -56,7 +56,8 @@ jvm_library( "//plugins/gradle/tooling-extension-impl:toolingExtension-tests_test_lib", "//plugins/kotlin/gradle/scripting/kotlin.gradle.scripting.k1:kotlin-gradle-scripting-k1", "//plugins/kotlin/gradle/scripting/kotlin.gradle.scripting.k1:kotlin-gradle-scripting-k1_test_lib", - ] + ], + runtime_deps = [":test-generator-fe10"] ) ### auto-generated section `build kotlin.util.test-generator-fe10` end diff --git a/plugins/kotlin/util/test-generator-fir/BUILD.bazel b/plugins/kotlin/util/test-generator-fir/BUILD.bazel index 1e7263fee827..3cf7472d3b97 100644 --- a/plugins/kotlin/util/test-generator-fir/BUILD.bazel +++ b/plugins/kotlin/util/test-generator-fir/BUILD.bazel @@ -4,7 +4,8 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "test-generator-fir", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = ["//plugins/kotlin/copyright/fir-tests:kotlin-copyright-tests"] ) jvm_library( @@ -87,7 +88,8 @@ jvm_library( "//plugins/kotlin/gradle/code-insight-groovy/tests.k2:kotlin-gradle-codeInsight-groovy-tests_test_lib", "//plugins/kotlin/completion/tests-shared:kotlin-completion-tests-shared_test_lib", "//plugins/kotlin/intellij.kotlin.base.test:base-test_test_lib", - ] + ], + runtime_deps = [":test-generator-fir"] ) ### auto-generated section `build kotlin.util.test-generator-fir` end diff --git a/plugins/markdown/plugin/BUILD.bazel b/plugins/markdown/plugin/BUILD.bazel index 2d122477cf0a..bfe562c0ec94 100644 --- a/plugins/markdown/plugin/BUILD.bazel +++ b/plugins/markdown/plugin/BUILD.bazel @@ -24,17 +24,6 @@ jvm_library( module_name = "intellij.markdown.plugin.main", visibility = ["//visibility:public"], srcs = glob([], allow_empty = True), - runtime_deps = [ - "//plugins/markdown/fenceInjection", - "//plugins/markdown/frontmatter", - "//plugins/markdown/frontmatter/toml", - "//plugins/markdown/frontmatter/yaml", - "//plugins/markdown/images", - "//plugins/markdown/model", - "//plugins/markdown/spellchecker", - "//plugins/markdown/xml", - "//plugins/markdown/compose:compose-preview", - "//plugins/markdown/core/frontend", - ] + runtime_deps = [":plugin-main"] ) ### auto-generated section `build intellij.markdown.plugin.main` end \ No newline at end of file diff --git a/plugins/markdown/test/BUILD.bazel b/plugins/markdown/test/BUILD.bazel index 585d6da4db10..82c6619adde6 100644 --- a/plugins/markdown/test/BUILD.bazel +++ b/plugins/markdown/test/BUILD.bazel @@ -10,7 +10,36 @@ resourcegroup( jvm_library( name = "tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "//plugins/markdown/core:markdown", + "//plugins/markdown/fenceInjection", + "//plugins/markdown/frontmatter", + "//plugins/markdown/frontmatter/toml", + "//platform/core-impl", + "//plugins/markdown/frontmatter/yaml", + "//platform/editor-ui-ex:editor-ex", + "//plugins/markdown/images", + "//plugins/markdown/model", + "//plugins/markdown/spellchecker", + "//plugins/markdown/xml", + "//platform/usageView", + "//spellchecker", + "//plugins/yaml", + "//xml/xml-psi-impl:psi-impl", + "//platform/built-in-server-api:builtInServer", + "//platform/core-ui", + "//xml/xml-parser:parser", + "//platform/lang-impl", + "//platform/platform-util-netty:ide-util-netty", + "//libraries/jsoup", + "//libraries/jcef", + "//platform/util-ex", + "//libraries/markdown", + "//plugins/toml", + "//plugins/toml/core", + "//plugins/yaml/backend", + ] ) jvm_library( @@ -69,7 +98,8 @@ jvm_library( "//platform/testFramework/junit5:junit5_test_lib", "//xml/testFramework", "//platform/lang-api:lang", - ] + ], + runtime_deps = [":tests"] ) ### auto-generated section `build intellij.markdown.tests` end diff --git a/plugins/maven-server-api/test/BUILD.bazel b/plugins/maven-server-api/test/BUILD.bazel index 31d068e1b26c..227de0818045 100644 --- a/plugins/maven-server-api/test/BUILD.bazel +++ b/plugins/maven-server-api/test/BUILD.bazel @@ -17,7 +17,8 @@ jvm_library( "//platform/testFramework", "//platform/testFramework:testFramework_test_lib", "@lib//:assert_j", - ] + ], + runtime_deps = [":maven-server-tests"] ) ### auto-generated section `build intellij.maven.server.tests` end diff --git a/plugins/maven/src/test/BUILD.bazel b/plugins/maven/src/test/BUILD.bazel index bfc0aae4fd70..50b032c82212 100644 --- a/plugins/maven/src/test/BUILD.bazel +++ b/plugins/maven/src/test/BUILD.bazel @@ -10,7 +10,11 @@ resourcegroup( jvm_library( name = "maven-tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "//platform/vcs-api:vcs", + "//platform/util/progress", + ] ) jvm_library( @@ -84,7 +88,8 @@ jvm_library( "//xml/xml-psi-impl:psi-impl", "//xml/xml-ui-common:ui-common", "//platform/execution", - ] + ], + runtime_deps = [":maven-tests"] ) ### auto-generated section `build intellij.maven.tests` end diff --git a/plugins/mcp-server/tests/BUILD.bazel b/plugins/mcp-server/tests/BUILD.bazel index 103ecd5cd38f..4192380d53df 100644 --- a/plugins/mcp-server/tests/BUILD.bazel +++ b/plugins/mcp-server/tests/BUILD.bazel @@ -40,7 +40,8 @@ jvm_library( "//platform/testFramework/junit5", "//platform/testFramework/junit5:junit5_test_lib", "//plugins/terminal", - ] + ], + runtime_deps = [":tests"] ) ### auto-generated section `build intellij.mcpserver.tests` end diff --git a/plugins/mcp-server/tests/plugin/BUILD.bazel b/plugins/mcp-server/tests/plugin/BUILD.bazel index 2e206fc361ec..f6a2d9d28cf6 100644 --- a/plugins/mcp-server/tests/plugin/BUILD.bazel +++ b/plugins/mcp-server/tests/plugin/BUILD.bazel @@ -18,6 +18,7 @@ jvm_library( module_name = "intellij.mcpserver.tests.plugin", visibility = ["//visibility:public"], srcs = glob([], allow_empty = True), - resources = [":plugin_test_resources"] + resources = [":plugin_test_resources"], + runtime_deps = [":plugin"] ) ### auto-generated section `build intellij.mcpserver.tests.plugin` end \ No newline at end of file diff --git a/plugins/properties/tests/BUILD.bazel b/plugins/properties/tests/BUILD.bazel index 3432ea4570a8..fba59de3bd43 100644 --- a/plugins/properties/tests/BUILD.bazel +++ b/plugins/properties/tests/BUILD.bazel @@ -4,7 +4,8 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + exports = ["//plugins/properties:properties-backend"] ) jvm_library( @@ -52,7 +53,8 @@ jvm_library( "//libraries/fastutil", "@lib//:jet_check", ], - exports = ["//plugins/properties:properties-backend"] + exports = ["//plugins/properties:properties-backend"], + runtime_deps = [":tests"] ) ### auto-generated section `build intellij.properties.tests` end diff --git a/plugins/settings-repository/BUILD.bazel b/plugins/settings-repository/BUILD.bazel index 33a29b83af07..08134481ed3d 100644 --- a/plugins/settings-repository/BUILD.bazel +++ b/plugins/settings-repository/BUILD.bazel @@ -57,7 +57,20 @@ jvm_library( jvm_library( name = "settingsRepository-tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "//platform/platform-api:ide", + "//platform/platform-impl:ide-impl", + "//platform/vcs-impl", + "//platform/projectModel-impl", + "@lib//:kotlin-stdlib", + "@lib//:jna", + "//platform/core-impl", + "//platform/vcs-api:vcs", + "//platform/configuration-store-impl:configurationStore-impl", + "//plugins/settings-repository", + "//platform/workspace/jps", + ] ) jvm_library( @@ -92,7 +105,8 @@ jvm_library( "//libraries/fastutil", "//platform/util/jdom", "//platform/workspace/jps", - ] + ], + runtime_deps = [":settingsRepository-tests"] ) ### auto-generated section `build intellij.settingsRepository.tests` end diff --git a/plugins/sh/copyright/BUILD.bazel b/plugins/sh/copyright/BUILD.bazel index 1197daea4b97..d905cdd60321 100644 --- a/plugins/sh/copyright/BUILD.bazel +++ b/plugins/sh/copyright/BUILD.bazel @@ -29,7 +29,11 @@ jvm_library( jvm_library( name = "copyright-tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "//plugins/sh/plugin:plugin-main", + "//platform/projectModel-impl", + ] ) jvm_library( @@ -46,7 +50,8 @@ jvm_library( "//platform/projectModel-impl", "//platform/testFramework", "//platform/testFramework:testFramework_test_lib", - ] + ], + runtime_deps = [":copyright-tests"] ) ### auto-generated section `build intellij.sh.copyright.tests` end diff --git a/plugins/sh/core/BUILD.bazel b/plugins/sh/core/BUILD.bazel index 62a1929a8ae8..1c206efc093a 100644 --- a/plugins/sh/core/BUILD.bazel +++ b/plugins/sh/core/BUILD.bazel @@ -45,7 +45,16 @@ jvm_library( jvm_library( name = "tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "//plugins/sh/core", + "//platform/analysis-impl", + "//platform/lang-api:lang", + "//platform/lang-impl", + "//platform/eel", + "//platform/eel-provider", + "//platform/testRunner", + ] ) jvm_library( @@ -76,7 +85,8 @@ jvm_library( "//platform/eel-provider", "//platform/testRunner", "//platform/testRunner:testRunner_test_lib", - ] + ], + runtime_deps = [":tests"] ) ### auto-generated section `build intellij.sh.tests` end diff --git a/plugins/sh/plugin/BUILD.bazel b/plugins/sh/plugin/BUILD.bazel index 68cb4a64c57d..403cabc74fe2 100644 --- a/plugins/sh/plugin/BUILD.bazel +++ b/plugins/sh/plugin/BUILD.bazel @@ -36,14 +36,6 @@ jvm_library( module_name = "intellij.sh.plugin.main", visibility = ["//visibility:public"], srcs = glob([], allow_empty = True), - runtime_deps = [ - "//plugins/sh/plugin", - "//plugins/sh/core", - "//plugins/sh/backend", - "//plugins/sh/terminal", - "//plugins/sh/copyright", - "//plugins/sh/markdown", - "//plugins/sh/python", - ] + runtime_deps = [":plugin-main"] ) ### auto-generated section `build intellij.sh.plugin.main` end \ No newline at end of file diff --git a/plugins/stats-collector/BUILD.bazel b/plugins/stats-collector/BUILD.bazel index 424c524f566e..c86954d45a53 100644 --- a/plugins/stats-collector/BUILD.bazel +++ b/plugins/stats-collector/BUILD.bazel @@ -38,7 +38,8 @@ jvm_library( jvm_library( name = "statsCollector-tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = ["//platform/core-ui"] ) jvm_library( @@ -59,7 +60,8 @@ jvm_library( "//platform/testFramework", "//platform/testFramework:testFramework_test_lib", "//platform/core-ui", - ] + ], + runtime_deps = [":statsCollector-tests"] ) ### auto-generated section `build intellij.statsCollector.tests` end diff --git a/plugins/svn4idea/BUILD.bazel b/plugins/svn4idea/BUILD.bazel index bf2db9d4e6b4..d182244c3165 100644 --- a/plugins/svn4idea/BUILD.bazel +++ b/plugins/svn4idea/BUILD.bazel @@ -59,7 +59,19 @@ jvm_library( jvm_library( name = "vcs-svn-tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "//plugins/svn4idea:vcs-svn", + "//platform/vcs-api:vcs", + "//platform/vcs-impl", + "//platform/platform-impl:ide-impl", + "//platform/ide-core-impl", + "//platform/lang-api:lang", + "//platform/core-impl", + "//platform/core-ui", + "//platform/platform-util-io:ide-util-io", + "//platform/forms_rt:java-guiForms-rt", + ] ) jvm_library( @@ -91,7 +103,8 @@ jvm_library( "//platform/core-ui", "//platform/platform-util-io:ide-util-io", "//platform/forms_rt:java-guiForms-rt", - ] + ], + runtime_deps = [":vcs-svn-tests"] ) ### auto-generated section `build intellij.vcs.svn.tests` end diff --git a/plugins/tasks/tasks-tests/BUILD.bazel b/plugins/tasks/tasks-tests/BUILD.bazel index 0e922c4f4bf9..fb6030884620 100644 --- a/plugins/tasks/tasks-tests/BUILD.bazel +++ b/plugins/tasks/tasks-tests/BUILD.bazel @@ -4,7 +4,22 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "//plugins/tasks/tasks-api:tasks", + "//plugins/tasks/tasks-java:java", + "//plugins/tasks/tasks-compatibility:compatibility", + "//platform/vcs-api:vcs", + "//platform/ide-core-impl", + "//platform/dvcs-impl:vcs-dvcs-impl", + "//platform/vcs-impl", + "//libraries/xml-rpc", + "//spellchecker", + "//java/debugger/openapi:java-debugger", + "//plugins/xslt-debugger", + "//libraries/gson", + "//platform/core-ui", + ] ) jvm_library( @@ -59,7 +74,7 @@ jvm_library( "//platform/dvcs-impl/shared", "//plugins/tasks/tasks-core/trac", ], - runtime_deps = ["//spellchecker"] + runtime_deps = [":tests"] ) ### auto-generated section `build intellij.tasks.tests` end diff --git a/plugins/terminal/tests/BUILD.bazel b/plugins/terminal/tests/BUILD.bazel index a83950f0dfbe..e2a745014fed 100644 --- a/plugins/terminal/tests/BUILD.bazel +++ b/plugins/terminal/tests/BUILD.bazel @@ -10,7 +10,37 @@ resourcegroup( jvm_library( name = "tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "//platform/platform-impl:ide-impl", + "//platform/testFramework", + "//platform/configuration-store-impl:configurationStore-tests", + "//plugins/terminal", + "//plugins/terminal/backend", + "//plugins/terminal/frontend", + "//plugins/terminal/completion", + "//plugins/terminal/sh", + "//platform/core-api:core", + "//platform/editor-ui-api:editor-ui", + "//platform/core-impl", + "//platform/execution-impl", + "//platform/core-ui", + "//platform/platform-util-io:ide-util-io", + "//platform/analysis-api:analysis", + "//platform/lang-api:lang", + "//platform/util-ex", + "//platform/projectModel-api:projectModel", + "//platform/util/coroutines", + "//platform/platform-impl/internal", + "//plugins/sh/plugin", + "//platform/code-style-api:codeStyle", + "@lib//:assert_j", + "//libraries/jediterm-core", + "//libraries/jediterm-ui", + "//libraries/pty4j", + "//libraries/guava", + "@lib//:junit4", + ] ) jvm_library( @@ -59,7 +89,8 @@ jvm_library( "//platform/testFramework/junit5:junit5_test_lib", "//platform/platform-impl/eel:ide-impl-wsl", "//platform/execution", - ] + ], + runtime_deps = [":tests"] ) ### auto-generated section `build intellij.terminal.tests` end diff --git a/plugins/testng_rt/tests/BUILD.bazel b/plugins/testng_rt/tests/BUILD.bazel index 1db3dda28bc9..2f93dd9687cc 100644 --- a/plugins/testng_rt/tests/BUILD.bazel +++ b/plugins/testng_rt/tests/BUILD.bazel @@ -4,7 +4,11 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "//platform/lang-core", + "//platform/smRunner", + ] ) jvm_library( @@ -34,7 +38,8 @@ jvm_library( "//platform/core-ui", "//plugins/testng_rt:testng-rt", "//platform/platform-util-io:ide-util-io", - ] + ], + runtime_deps = [":tests"] ) ### auto-generated section `build intellij.testng.rt.tests` end diff --git a/plugins/textmate/core/tests/BUILD.bazel b/plugins/textmate/core/tests/BUILD.bazel index de126a00ee98..e6ae68fe0cb1 100644 --- a/plugins/textmate/core/tests/BUILD.bazel +++ b/plugins/textmate/core/tests/BUILD.bazel @@ -24,7 +24,8 @@ jvm_library( "//libraries/kotlinx/coroutines/core", "//libraries/kotlinx/collections-immutable:libraries-kotlinx-collections-immutable", "@lib//:kotlin-test-junit5", - ] + ], + runtime_deps = [":tests"] ) ### auto-generated section `build intellij.textmate.core.tests` end diff --git a/plugins/textmate/tests/BUILD.bazel b/plugins/textmate/tests/BUILD.bazel index 2f4d41f651f9..6e9f6c20f80a 100644 --- a/plugins/textmate/tests/BUILD.bazel +++ b/plugins/textmate/tests/BUILD.bazel @@ -43,7 +43,8 @@ jvm_library( "//plugins/textmate/backend", "//plugins/textmate/core/tests:tests_test_lib", "@lib//:kotlin-test-junit5", - ] + ], + runtime_deps = [":tests"] ) ### auto-generated section `build intellij.textmate.tests` end diff --git a/plugins/toml/tests/BUILD.bazel b/plugins/toml/tests/BUILD.bazel index 316f23cc4b0b..381176c13c08 100644 --- a/plugins/toml/tests/BUILD.bazel +++ b/plugins/toml/tests/BUILD.bazel @@ -10,7 +10,16 @@ resourcegroup( jvm_library( name = "tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "//plugins/toml", + "//plugins/toml/core", + "//plugins/toml/backend", + "//plugins/toml/frontend", + "//plugins/toml/json", + "//plugins/toml/grazie", + "//platform/testFramework", + ] ) jvm_library( @@ -35,7 +44,8 @@ jvm_library( "//platform/testFramework:testFramework_test_lib", "//java/testFramework", "//plugins/grazie/src/test:grazie-tests_test_lib", - ] + ], + runtime_deps = [":tests"] ) ### auto-generated section `build intellij.toml.tests` end diff --git a/plugins/turboComplete/BUILD.bazel b/plugins/turboComplete/BUILD.bazel index 4a5221de603b..b893bdc1fe04 100644 --- a/plugins/turboComplete/BUILD.bazel +++ b/plugins/turboComplete/BUILD.bazel @@ -51,7 +51,8 @@ jvm_library( "//platform/analysis-api:analysis", "//platform/ml-impl", "//platform/ml-impl:ml-impl_test_lib", - ] + ], + runtime_deps = [":turboComplete-tests"] ) ### auto-generated section `build intellij.turboComplete.tests` end diff --git a/plugins/ui-designer/jps-plugin/tests/BUILD.bazel b/plugins/ui-designer/jps-plugin/tests/BUILD.bazel index e680dcb65268..e349efb6fe78 100644 --- a/plugins/ui-designer/jps-plugin/tests/BUILD.bazel +++ b/plugins/ui-designer/jps-plugin/tests/BUILD.bazel @@ -22,7 +22,8 @@ jvm_library( "//platform/testFramework", "//platform/testFramework:testFramework_test_lib", "//jps/model-serialization:model-serialization-tests_test_lib", - ] + ], + runtime_deps = [":tests"] ) ### auto-generated section `build intellij.java.guiForms.jps.tests` end diff --git a/python/BUILD.bazel b/python/BUILD.bazel index 9b1cc7fb6685..a089e8866264 100644 --- a/python/BUILD.bazel +++ b/python/BUILD.bazel @@ -114,53 +114,7 @@ jvm_library( module_name = "intellij.pycharm.community.main", visibility = ["//visibility:public"], srcs = glob([], allow_empty = True), - runtime_deps = [ - "//platform/main/intellij.platform.monolith.main:monolith-main", - "//platform/bootstrap", - "//plugins/hg4idea:vcs-hg", - "//plugins/svn4idea:vcs-svn", - "//plugins/git4idea:vcs-git", - "//plugins/git4idea/shared", - "//plugins/git4idea/frontend", - "//plugins/git-features-trainer:vcs-git-featuresTrainer", - "//xml/relaxng", - "//plugins/github/github-core:vcs-github", - "//plugins/terminal", - "//plugins/terminal/frontend", - "//plugins/terminal/backend", - "//python:pycharm-community", - "//python:pycharm-community-customization", - "//python/pluginCore:community-plugin", - "//python:python-community-plugin-modules", - "//platform/starter", - "//plugins/tasks/tasks-core/jira", - "//plugins/settings-repository", - "//plugins/properties:properties-backend", - "//plugins/markdown/core:markdown", - "//plugins/markdown/plugin:plugin-main", - "//plugins/configuration-script", - "//plugins/completion-ml-ranking", - "//plugins/stats-collector", - "//plugins/sh/plugin:plugin-main", - "//plugins/terminal/sh", - "//xml/langInjection", - "//plugins/textmate/plugin", - "//plugins/completion-ml-ranking-models", - "//plugins/emojipicker", - "//plugins/grazie", - "//platform/lvcs-impl", - "//plugins/search-everywhere-ml", - "//notebooks/visualization", - "//plugins/color-schemes/monokai-color-scheme:color-scheme-monokai", - "//plugins/color-schemes/twilight-color-scheme:color-scheme-twilight", - "//plugins/color-schemes/warm-neon-color-scheme:color-scheme-warmNeon", - "//plugins/color-schemes/github-color-scheme:color-scheme-github", - "//plugins/dev:dev-noJava-plugin-main", - "//plugins/evaluation-plugin", - "//plugins/evaluation-plugin/languages/python", - "//platform/new-ui-onboarding", - "//python/intellij.python.ml.features:ml-features", - ] + runtime_deps = [":pycharm-community-main"] ) ### auto-generated section `build intellij.pycharm.community.main` end @@ -168,7 +122,8 @@ jvm_library( jvm_library( name = "python-commonTests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = ["//platform/util"] ) jvm_library( @@ -197,7 +152,8 @@ jvm_library( "//python/python-sdk:sdk", "//python/python-sdk:sdk_test_lib", "//platform/testFramework/core", - ] + ], + runtime_deps = [":python-commonTests"] ) ### auto-generated section `build intellij.python.commonTests` end @@ -436,15 +392,7 @@ jvm_library( module_name = "intellij.python.community.plugin.main", visibility = ["//visibility:public"], srcs = glob([], allow_empty = True), - runtime_deps = [ - "//:main", - "//java/openapi:java", - "//java/idea-ui:ui", - "//python/pluginCore:community-plugin", - "//python/pluginJava:community-plugin-java", - "//python/pluginMinor:community-plugin-minor", - "//python:python-community-plugin-modules", - ] + runtime_deps = [":python-community-plugin-main"] ) ### auto-generated section `build intellij.python.community.plugin.main` end @@ -474,7 +422,26 @@ resourcegroup( jvm_library( name = "python-community-tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "//platform/testFramework", + "//libraries/guava", + "//platform/editor-ui-ex:editor-ex", + "//platform/util/progress", + "//platform/observable", + "//platform/usageView", + "//python/python-psi-impl:psi-impl", + "//python/pluginCore/impl", + "//python:pycharm-community", + "//xml/langInjection", + "//python/IntelliLang-python:langInjection", + "//python/python-markdown:markdown", + "//notebooks/visualization", + "//python/python-features-trainer:featuresTrainer", + "//jupyter:notebooks-jupyter-core", + "//python/python-grazie:grazie", + "//platform/forms_rt:java-guiForms-rt", + ] ) jvm_library( @@ -581,16 +548,7 @@ jvm_library( "@lib//:jet_check", "//platform/forms_rt:java-guiForms-rt", ], - runtime_deps = [ - "//python/pluginCore/impl", - "//python:pycharm-community", - "//xml/langInjection", - "//python/IntelliLang-python:langInjection", - "//python/python-markdown:markdown", - "//notebooks/visualization", - "//python/python-features-trainer:featuresTrainer", - "//jupyter:notebooks-jupyter-core", - ] + runtime_deps = [":python-community-tests"] ) ### auto-generated section `build intellij.python.community.tests` end @@ -647,6 +605,7 @@ jvm_library( ":python-helpers-tests_test_resources_1", ], runtime_deps = [ + ":python-helpers-tests", "//python:python-helpers", "@lib//ant/lib:ant-antlr", "@lib//:kotlin-stdlib", diff --git a/python/junit5Tests-framework/BUILD.bazel b/python/junit5Tests-framework/BUILD.bazel index c0aaa0b81ec4..cdfec02e94a9 100644 --- a/python/junit5Tests-framework/BUILD.bazel +++ b/python/junit5Tests-framework/BUILD.bazel @@ -10,7 +10,12 @@ resourcegroup( jvm_library( name = "community-junit5Tests-framework", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + exports = [ + "//libraries/system-stubs-jupiter", + "//python/setup-test-environment:community-testFramework-testEnv", + ], + runtime_deps = ["//python/pluginCore:community-plugin"] ) jvm_library( @@ -69,7 +74,7 @@ jvm_library( "//libraries/system-stubs-jupiter", "//python/setup-test-environment:community-testFramework-testEnv", ], - runtime_deps = ["//python/pluginCore:community-plugin"] + runtime_deps = [":community-junit5Tests-framework"] ) ### auto-generated section `build intellij.python.community.junit5Tests.framework` end diff --git a/python/junit5Tests-framework/conda/BUILD.bazel b/python/junit5Tests-framework/conda/BUILD.bazel index e7e2f5386017..6ee3ff49bf26 100644 --- a/python/junit5Tests-framework/conda/BUILD.bazel +++ b/python/junit5Tests-framework/conda/BUILD.bazel @@ -29,7 +29,8 @@ jvm_library( "@lib//:jetbrains-annotations", "//platform/execution", "//platform/core-api:core", - ] + ], + runtime_deps = [":conda"] ) ### auto-generated section `build intellij.python.community.junit5Tests.framework.conda` end diff --git a/resources-en/BUILD.bazel b/resources-en/BUILD.bazel index ef915290f85d..319d8ceb0d5a 100644 --- a/resources-en/BUILD.bazel +++ b/resources-en/BUILD.bazel @@ -20,6 +20,6 @@ jvm_library( visibility = ["//visibility:public"], srcs = glob([], allow_empty = True), resources = [":java-resources-en_test_resources"], - runtime_deps = ["//platform/backend"] + runtime_deps = [":java-resources-en"] ) ### auto-generated section `build intellij.java.resources.en` end \ No newline at end of file diff --git a/tools/devLauncher/tests/BUILD.bazel b/tools/devLauncher/tests/BUILD.bazel index 375bd13fba13..8c652352c939 100644 --- a/tools/devLauncher/tests/BUILD.bazel +++ b/tools/devLauncher/tests/BUILD.bazel @@ -4,7 +4,8 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = ["@lib//:kotlin-stdlib"] ) jvm_library( @@ -20,7 +21,8 @@ jvm_library( "@lib//:junit5", "//platform/testFramework", "//platform/testFramework:testFramework_test_lib", - ] + ], + runtime_deps = [":tests"] ) ### auto-generated section `build intellij.tools.devLauncher.tests` end diff --git a/tools/intellij.lambda.sampleTests/BUILD.bazel b/tools/intellij.lambda.sampleTests/BUILD.bazel index 54468d30b85b..6004b4da5987 100644 --- a/tools/intellij.lambda.sampleTests/BUILD.bazel +++ b/tools/intellij.lambda.sampleTests/BUILD.bazel @@ -10,7 +10,11 @@ create_kotlinc_options( jvm_library( name = "lambda-sampleTests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "@lib//:kotlin-stdlib", + "//libraries/kotlinx/coroutines/core", + ] ) jvm_library( @@ -34,7 +38,8 @@ jvm_library( "//tools/intellij.tools.ide.starter.junit5:ide-starter-junit5_test_lib", "//tools/intellij.tools.ide.starter.driver:ide-starter-driver", "//tools/intellij.tools.ide.starter.build.server:ide-starter-build-server", - ] + ], + runtime_deps = [":lambda-sampleTests"] ) ### auto-generated section `build intellij.lambda.sampleTests` end diff --git a/tools/intellij.lambda.sampleTestsWithFixtures/BUILD.bazel b/tools/intellij.lambda.sampleTestsWithFixtures/BUILD.bazel index dc0cbd401f8a..8c1834019637 100644 --- a/tools/intellij.lambda.sampleTestsWithFixtures/BUILD.bazel +++ b/tools/intellij.lambda.sampleTestsWithFixtures/BUILD.bazel @@ -73,7 +73,8 @@ jvm_library( "//platform/testFramework", "//platform/testFramework:testFramework_test_lib", "//platform/projectModel-api:projectModel", - ] + ], + runtime_deps = [":lambda-sampleTestsWithFixtures"] ) ### auto-generated section `build intellij.lambda.sampleTestsWithFixtures` end diff --git a/tools/intellij.lambda.sampleTestsWithFixtures/plugin/BUILD.bazel b/tools/intellij.lambda.sampleTestsWithFixtures/plugin/BUILD.bazel index 305d45a81371..b5754f4c0a9d 100644 --- a/tools/intellij.lambda.sampleTestsWithFixtures/plugin/BUILD.bazel +++ b/tools/intellij.lambda.sampleTestsWithFixtures/plugin/BUILD.bazel @@ -18,6 +18,7 @@ jvm_library( module_name = "intellij.lambda.sampleTestsWithFixtures.plugin", visibility = ["//visibility:public"], srcs = glob([], allow_empty = True), - resources = [":plugin_test_resources"] + resources = [":plugin_test_resources"], + runtime_deps = [":plugin"] ) ### auto-generated section `build intellij.lambda.sampleTestsWithFixtures.plugin` end \ No newline at end of file diff --git a/tools/intellij.lambda.sampleTestsWithPlugin/BUILD.bazel b/tools/intellij.lambda.sampleTestsWithPlugin/BUILD.bazel index a474b371d550..9174488e6fbe 100644 --- a/tools/intellij.lambda.sampleTestsWithPlugin/BUILD.bazel +++ b/tools/intellij.lambda.sampleTestsWithPlugin/BUILD.bazel @@ -16,7 +16,41 @@ resourcegroup( jvm_library( name = "lambda-sampleTestsWithPlugin", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "@lib//:kodein-di-jvm", + "@lib//:kotlin-stdlib", + "@lib//:kotlin-test", + "@lib//:assert_j", + "//libraries/kotlin/reflect", + "//tools/intellij.tools.ide.starter:ide-starter", + "//tools/intellij.tools.ide.starter.driver:ide-starter-driver", + "//tools/intellij.tools.ide.starter.build.server:ide-starter-build-server", + "//platform/projectModel-api:projectModel", + "//platform/core-api:core", + "//platform/core-impl", + "//platform/core-ui", + "//platform/lang-api:lang", + "//platform/lang-impl", + "//platform/platform-api:ide", + "//platform/editor-ui-api:editor-ui", + "//platform/editor-ui-ex:editor-ex", + "//platform/testFramework/junit5", + "//platform/code-style-api:codeStyle", + "//platform/execution-impl", + "//platform/platform-impl:ide-impl", + "//platform/remoteDev-util", + "//platform/analysis-api:analysis", + "//plugins/performanceTesting/core:performanceTesting", + "//platform/platform-impl/codeinsight-inline:ide-codeinsight-inline", + "//platform/xdebugger-api:debugger", + "//platform/xdebugger-impl:debugger-impl", + "//platform/util/concurrency", + "//platform/usageView", + "//tools/intellij.lambda.testFramework:lambda-testFramework", + "//libraries/rd/framework", + "//libraries/rd/core", + ] ) jvm_library( @@ -70,7 +104,8 @@ jvm_library( "//libraries/junit5-pioneer", "//libraries/rd/framework", "//libraries/rd/core", - ] + ], + runtime_deps = [":lambda-sampleTestsWithPlugin"] ) ### auto-generated section `build intellij.lambda.sampleTestsWithPlugin` end diff --git a/tools/intellij.lambda.sampleTestsWithPlugin/plugin/BUILD.bazel b/tools/intellij.lambda.sampleTestsWithPlugin/plugin/BUILD.bazel index 013844e371e9..d079a69c86ad 100644 --- a/tools/intellij.lambda.sampleTestsWithPlugin/plugin/BUILD.bazel +++ b/tools/intellij.lambda.sampleTestsWithPlugin/plugin/BUILD.bazel @@ -18,6 +18,7 @@ jvm_library( module_name = "intellij.lambda.sampleTestsWithPlugin.plugin", visibility = ["//visibility:public"], srcs = glob([], allow_empty = True), - resources = [":plugin_test_resources"] + resources = [":plugin_test_resources"], + runtime_deps = [":plugin"] ) ### auto-generated section `build intellij.lambda.sampleTestsWithPlugin.plugin` end \ No newline at end of file diff --git a/tools/intellij.lambda.testFramework/plugin/BUILD.bazel b/tools/intellij.lambda.testFramework/plugin/BUILD.bazel index 52ada07ab38d..97c7725c98fc 100644 --- a/tools/intellij.lambda.testFramework/plugin/BUILD.bazel +++ b/tools/intellij.lambda.testFramework/plugin/BUILD.bazel @@ -18,6 +18,7 @@ jvm_library( module_name = "intellij.lambda.test.plugin", visibility = ["//visibility:public"], srcs = glob([], allow_empty = True), - resources = [":plugin_test_resources"] + resources = [":plugin_test_resources"], + runtime_deps = [":plugin"] ) ### auto-generated section `build intellij.lambda.test.plugin` end \ No newline at end of file diff --git a/uast/uast-tests/BUILD.bazel b/uast/uast-tests/BUILD.bazel index b93cbdf11de7..6a9cb904db8e 100644 --- a/uast/uast-tests/BUILD.bazel +++ b/uast/uast-tests/BUILD.bazel @@ -4,7 +4,25 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + exports = [ + "//uast/uast-common:uast", + "//uast/uast-java-ide:java-uast-ide", + "//uast/testFramework", + ], + runtime_deps = [ + "//uast/uast-common:uast", + "@lib//:kotlin-stdlib", + "@lib//:junit4", + "//platform/core-impl", + "//uast/uast-java-ide:java-uast-ide", + "//java/java-runtime:rt", + "//java/java-psi-impl:psi-impl", + "//platform/testFramework", + "//java/java-tests:tests", + "//java/testFramework", + "//platform/vcs-impl", + ] ) jvm_library( @@ -37,7 +55,7 @@ jvm_library( "//uast/uast-java-ide:java-uast-ide", "//uast/testFramework", ], - runtime_deps = ["//java/java-tests:tests"] + runtime_deps = [":tests"] ) ### auto-generated section `build intellij.platform.uast.tests` end diff --git a/xml/dom-tests/BUILD.bazel b/xml/dom-tests/BUILD.bazel index 8aab35a10592..8725ccf19535 100644 --- a/xml/dom-tests/BUILD.bazel +++ b/xml/dom-tests/BUILD.bazel @@ -4,7 +4,13 @@ load("@rules_jvm//:jvm.bzl", "jvm_library") jvm_library( name = "dom-tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "//xml/dom-impl", + "//xml/impl", + "//java/testFramework", + "//java/java-psi-impl:psi-impl", + ] ) jvm_library( @@ -34,7 +40,8 @@ jvm_library( "//xml/xml-psi-api:psi", "//platform/libraries/cglib", "//xml/xml-analysis-api:analysis", - ] + ], + runtime_deps = [":dom-tests"] ) ### auto-generated section `build intellij.xml.dom.tests` end diff --git a/xml/tests/BUILD.bazel b/xml/tests/BUILD.bazel index 228719970ffe..62cce66c31a9 100644 --- a/xml/tests/BUILD.bazel +++ b/xml/tests/BUILD.bazel @@ -10,7 +10,18 @@ resourcegroup( jvm_library( name = "tests", visibility = ["//visibility:public"], - srcs = glob([], allow_empty = True) + srcs = glob([], allow_empty = True), + runtime_deps = [ + "//xml/impl", + "//java/testFramework", + "//platform/editor-ui-ex:editor-ex", + "//platform/ide-core-impl", + "//RegExpSupport:regexp", + "//platform/util/nanoxml", + "//xml/langInjection", + "//java/langInjection", + "//platform/core-ui", + ] ) jvm_library( @@ -70,7 +81,7 @@ jvm_library( "//xml/xml-analysis-api:analysis", "//xml/emmet", ], - runtime_deps = ["//xml/langInjection"] + runtime_deps = [":tests"] ) ### auto-generated section `build intellij.xml.tests` end