Files
openide/java/testFramework/BUILD.bazel
Alexander Koshevoy be70b2c8c7 [eel][sdk] IJPL-214464 Resolve SDKs via environment‑scoped lookup interface
Introduce `EnvironmentScopedProjectJdkLookup` interface for environment‑aware SDK resolution and make `ProjectJdkTableImpl` implement it. Add `findJdk(String, InternalEnvironmentName)` and `findJdk(String, String, InternalEnvironmentName)` methods that delegate to `SdkTableImplementationDelegate#findSdkByName(String, InternalEnvironmentName)`. Update `ProjectJdkTableProjectView.findJdk(...)` (both overloads) to use the interface methods with environment from the project descriptor. This enables per‑environment SDK separation, reduces unnecessary cross‑environment lookups, and improves correctness without changing external behavior.


(cherry picked from commit 73fefa0c54c2156e824da9f081f70efea262b933)

IJ-CR-180956

GitOrigin-RevId: 160cfcffeea6209e974d137a0cc144d52170c62b
2025-11-03 20:36:23 +00:00

74 lines
2.4 KiB
Python

### auto-generated section `build intellij.java.testFramework` start
load("@rules_jvm//:jvm.bzl", "jvm_library", "resourcegroup")
resourcegroup(
name = "testFramework_resources",
srcs = glob(["resources/**/*"]),
strip_prefix = "resources"
)
jvm_library(
name = "testFramework",
module_name = "intellij.java.testFramework",
visibility = ["//visibility:public"],
srcs = glob(["src/**/*.kt", "src/**/*.java", "src/**/*.form"], allow_empty = True),
resources = [":testFramework_resources"],
deps = [
"//java/openapi:java",
"//java/testFramework/shared",
"//platform/analysis-api:analysis",
"//platform/code-style-api:codeStyle",
"//platform/core-api:core",
"//platform/editor-ui-api:editor-ui",
"//platform/indexing-api:indexing",
"//jps/model-api:model",
"//platform/lang-core",
"//platform/projectModel-api:projectModel",
"//platform/refactoring",
"//platform/structure-view-impl:structureView-impl",
"//platform/util",
"//libraries/junit4",
"//platform/util/jdom",
"//platform/lang-api:lang",
"//platform/backend/workspace",
"//platform/lang-impl",
"//java/compiler/impl",
"//java/debugger/openapi:java-debugger",
"//java/java-impl:impl",
"//platform/ide-core-impl",
"//java/execution/impl",
"//platform/editor-ui-ex:editor-ex",
"//platform/testFramework",
"//platform/workspace/storage",
"//java/idea-ui:ui",
"//java/debugger/impl",
"//java/execution/openapi:java-execution",
"//jps/jps-builders:build",
"//libraries/stream",
"//libraries/fastutil",
"//platform/core-ui",
"//platform/code-style-impl:codeStyle-impl",
"//platform/platform-util-io:ide-util-io",
"//libraries/asm",
"@lib//:org-codehaus-groovy-groovy",
"//java/java-impl-refactorings:impl-refactorings",
"//platform/xdebugger-impl:debugger-impl",
"//platform/backend/observation",
"//java/debugger/shared",
"//platform/xdebugger-testFramework:debugger-testFramework",
"//xml/xml-psi-api:psi",
"//java/java-syntax:syntax",
"//platform/eel",
],
exports = [
"//java/testFramework/shared",
"//platform/util",
"//platform/lang-api:lang",
"//java/java-impl:impl",
],
runtime_deps = [
"//java/plugin",
"//platform/external-system-impl:externalSystem-impl",
]
)
### auto-generated section `build intellij.java.testFramework` end