blob: 173f65fed8728d9f547413bd4444608e7c9e2945 [file] [log] [blame]
Yun Peng6181a3c2021-10-28 03:11:19 -07001# To build Bazel with Bzlmod
2# 1. Copy WORKSPACE.bzlmod to replace the original WORKSPACE file.
3# 2. Run `bazel build --experimental_enable_bzlmod //src:bazel_nojdk`.
4
5module(
6 name = "bazel",
7 version = "6.0.0-pre",
8)
9
10bazel_dep(name = "bazel_skylib", version = "1.0.3")
pcloudy7a22b262022-01-12 06:20:12 -080011bazel_dep(name = "protobuf", version = "3.19.2", repo_name = "com_google_protobuf")
Yun Peng6181a3c2021-10-28 03:11:19 -070012bazel_dep(name = "grpc", version = "1.41.0", repo_name = "com_github_grpc_grpc")
13bazel_dep(name = "platforms", version = "0.0.4")
14bazel_dep(name = "rules_pkg", version = "0.5.1")
15bazel_dep(name = "stardoc", version = "0.5.0", repo_name = "io_bazel_skydoc")
Yun Peng89ea68b2021-11-23 11:24:51 -080016bazel_dep(name = "zstd-jni", version = "1.5.0-4")
Yun Peng6181a3c2021-10-28 03:11:19 -070017
18# TODO(pcloudy): Add remoteapis and googleapis as Bazel modules in the BCR.
19bazel_dep(name = "remoteapis", version = "")
20bazel_dep(name = "googleapis", version = "")
21local_path_override(
22 module_name = "remoteapis",
23 path = "./third_party/remoteapis",
24)
25local_path_override(
26 module_name = "googleapis",
27 path = "./third_party/googleapis",
28)
29
30# The following are required when building without WORKSPACE SUFFIX
Yun Peng6181a3c2021-10-28 03:11:19 -070031bazel_dep(name = "rules_cc", version = "0.0.1")
Yun Peng89ea68b2021-11-23 11:24:51 -080032bazel_dep(name = "rules_python", version = "0.4.0")
33bazel_dep(name = "rules_java", version = "5.0.0")
Yun Peng6181a3c2021-10-28 03:11:19 -070034bazel_dep(name = "rules_proto", version = "4.0.0")
Yun Peng4b16c412022-01-12 09:44:10 -080035
36# TODO(pcloudy): Remove this when rules_jvm_external adopts Bzlmod.
37single_version_override(
38 module_name = "protobuf",
39 patches = ["//third_party/protobuf:3.19.2.bzlmod.patch"],
40 patch_strip = 1,
41)