Files
openide/MODULE.bazel
T
Eugene Zhuravlev 3ef008a103 make monorepo compilable with both "rules_jvm" and upstream "rules_kotlin" (MRI-4417)
- corrected assertion in toolbox/daemon parts: allow kotlin_stdlib and annotations libraries from the declared kotlin toolchain
- updated expected jar names
- use toolbox-scoped aliases for the toolbox repo so @tb_maven no longer depends on @@//daemon

GitOrigin-RevId: a91b56df58accdea6ff11340733277d928ca5953
2026-06-06 00:00:37 +00:00

133 lines
4.2 KiB
Python

module(name = "community")
bazel_dep(name = "bazel_features", version = "1.43.0")
bazel_dep(name = "bazel_skylib", version = "1.9.0")
bazel_dep(name = "platforms", version = "1.1.0")
bazel_dep(name = "rules_kotlin", version = "2.2.2")
archive_override(
module_name = "rules_kotlin",
sha256 = "5c9b4664b3f926624a405f1d39ce74bcfc0a46b319df4f20d2ee63bdfed9c43e",
strip_prefix = "rules_kotlin-ffbc4307c3a55f61e05c12481b6dcb929d6e2b1f",
url = "https://github.com/JetBrains/rules_kotlin/archive/ffbc4307c3a55f61e05c12481b6dcb929d6e2b1f.zip",
)
bazel_dep(name = "rules_java", version = "9.6.1")
bazel_dep(name = "rules_jvm", version = "0.0.1")
bazel_dep(name = "protobuf", version = "33.4")
single_version_override(
module_name = "protobuf",
patch_strip = 1,
patches = [
"//:build/jvm-rules/protobuf-33.4-reuse-win64-for-arm.patch",
],
version = "33.4",
)
bazel_dep(name = "aspect_rules_lint", version = "2.5.0")
bazel_dep(name = "buildifier_prebuilt", version = "8.5.1.1")
single_version_override(
module_name = "rules_jvm_external",
patches = [
"//:build/jvm-rules/rules-jvm-external-6.10-make-coursier-repo-targets-shell-free-and-hermetic.patch",
"//:build/jvm-rules/rules-jvm-external-6.10-default-to-maven-resolver.patch",
],
version = "6.10",
)
single_version_override(
module_name = "rules_android",
patches = [
"//:build/jvm-rules/rules-android-0.7.1-pin-maven-installs.patch",
],
version = "0.7.1",
)
single_version_override(
module_name = "bazel_worker_java",
patches = [
"//:build/jvm-rules/worker-java-0.0.9-pin-bazel-worker-maven.patch",
],
version = "0.0.10",
)
bazel_dep(name = "xml.bzl", version = "0.2.3")
bazel_dep(name = "lib")
local_path_override(
module_name = "lib",
path = "lib",
)
bazel_dep(name = "jps_to_bazel")
local_path_override(
module_name = "jps_to_bazel",
path = "platform/build-scripts/bazel",
)
local_path_override(
module_name = "rules_jvm",
path = "build/jvm-rules",
)
bazel_dep(name = "windows_support", version = "0.1.7")
bazel_dep(name = "llvm", version = "0.8.1")
single_version_override(
module_name = "llvm",
patch_strip = 1,
patches = [
"//:build/llvm_msvc.patch", # TODO: remove that once merged to upstream
],
)
register_toolchains(
"@llvm//toolchain:all",
dev_dependency = True,
) # `dev_dependency = True` to avoid registering toolchains in modules using that module, see https://github.com/bazel-contrib/toolchains_llvm/issues/569
bazel_dep(name = "rules_python", version = "1.7.0")
kotlin_test_deps = use_repo_rule("//plugins/kotlin:kotlin_test_dependencies.bzl", "kotlin_test_deps")
kotlin_test_deps(name = "kotlin_test_deps")
include("//:debugger_test_deps.MODULE.bazel")
jbr_toolchains = use_extension("@community//build:jbr-toolchains.bzl", "jbr_toolchains")
REMOTE_JBR25_REPOS = ["remotejbr25_" + platform for platform in [
"linux",
"linux_aarch64",
"macos",
"macos_aarch64",
"win",
"win_arm64",
]]
[use_repo(
jbr_toolchains,
repo + "_toolchain_config_repo",
) for repo in REMOTE_JBR25_REPOS]
[register_toolchains("@" + repo + "_toolchain_config_repo//:all") for repo in REMOTE_JBR25_REPOS]
# Use custom remote_java_tools_windows with vc_redist .dll files due to https://github.com/bazelbuild/rules_java/issues/316
http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "remote_java_tools_windows_with_vc_redist",
sha256 = "82203dfae9f75a268e5e0e643ce5696a7c035ce9626938601fb410ee11849b1b",
url = "https://packages.jetbrains.team/files/p/ij/intellij-build-dependencies/rules-java/java_tools_windows-v19.0-with-vc_redist.zip",
)
override_repo(
use_extension("@rules_java//java:extensions.bzl", "toolchains"),
remote_java_tools_windows = "remote_java_tools_windows_with_vc_redist",
)
# Register the extension that runs jps-to-bazel converter and provides target lists for dev-build.
# This creates the @jps_dynamic_deps_community repository.
use_repo(
use_extension("//build:jps_dynamic_deps_community.bzl", "jps_dynamic_deps_community_extension"),
"jps_dynamic_deps_community",
)