[bazel] Use custom remote_java_tools_windows with vc_redist .dll files (IJI-3004)

https://github.com/bazelbuild/rules_java/issues/316

GitOrigin-RevId: b1456985c53e8d11dcde08f60a855734abc46353
This commit is contained in:
Ilia Kirianovskii
2025-09-04 16:31:51 +02:00
committed by intellij-monorepo-bot
parent 6a99721620
commit 6589b48ae5
2 changed files with 25 additions and 1 deletions

View File

@@ -72,3 +72,15 @@ REMOTE_JBR21_REPOS = ["remotejbr21_" + platform for platform in [
) for repo in REMOTE_JBR21_REPOS]
[register_toolchains("@" + repo + "_toolchain_config_repo//:all") for repo in REMOTE_JBR21_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 = "9ec4e41ebbb2b7259eb14f1ad708e8ee60087f33515bdec4876c675205e6950f",
url = "https://packages.jetbrains.team/files/p/ij/intellij-build-dependencies/rules-java/java_tools_windows-v13.18-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",
)

View File

@@ -60,4 +60,16 @@ git_override(
module_name = "rules_python",
remote = "https://github.com/JetBrains/rules_python.git",
commit = "92bf73a6867f143c5af49274f02140d118b84bb0"
)
)
# 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 = "9ec4e41ebbb2b7259eb14f1ad708e8ee60087f33515bdec4876c675205e6950f",
url = "https://packages.jetbrains.team/files/p/ij/intellij-build-dependencies/rules-java/java_tools_windows-v13.18-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",
)