forked from JetBrains/intellij-community
-
-
Notifications
You must be signed in to change notification settings - Fork 182
Expand file tree
/
Copy pathMODULE.bazel
More file actions
132 lines (109 loc) · 4.15 KB
/
Copy pathMODULE.bazel
File metadata and controls
132 lines (109 loc) · 4.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
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",
)