blob: 52c2e4d38cfa252d00cfa17550ea6db80e60bb99 [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
Tony Aiutodb2cf1e2022-06-03 10:35:30 -070010bazel_dep(name = "rules_license", version = "0.0.3")
Yun Peng6181a3c2021-10-28 03:11:19 -070011bazel_dep(name = "bazel_skylib", version = "1.0.3")
pcloudy7a22b262022-01-12 06:20:12 -080012bazel_dep(name = "protobuf", version = "3.19.2", repo_name = "com_google_protobuf")
Yun Peng6181a3c2021-10-28 03:11:19 -070013bazel_dep(name = "grpc", version = "1.41.0", repo_name = "com_github_grpc_grpc")
14bazel_dep(name = "platforms", version = "0.0.4")
15bazel_dep(name = "rules_pkg", version = "0.5.1")
16bazel_dep(name = "stardoc", version = "0.5.0", repo_name = "io_bazel_skydoc")
Yun Peng89ea68b2021-11-23 11:24:51 -080017bazel_dep(name = "zstd-jni", version = "1.5.0-4")
Yun Peng6181a3c2021-10-28 03:11:19 -070018
19# TODO(pcloudy): Add remoteapis and googleapis as Bazel modules in the BCR.
20bazel_dep(name = "remoteapis", version = "")
21bazel_dep(name = "googleapis", version = "")
22local_path_override(
23 module_name = "remoteapis",
24 path = "./third_party/remoteapis",
25)
26local_path_override(
27 module_name = "googleapis",
28 path = "./third_party/googleapis",
29)
30
31# The following are required when building without WORKSPACE SUFFIX
Yun Peng6181a3c2021-10-28 03:11:19 -070032bazel_dep(name = "rules_cc", version = "0.0.1")
Yun Peng89ea68b2021-11-23 11:24:51 -080033bazel_dep(name = "rules_python", version = "0.4.0")
34bazel_dep(name = "rules_java", version = "5.0.0")
Yun Peng6181a3c2021-10-28 03:11:19 -070035bazel_dep(name = "rules_proto", version = "4.0.0")
Yun Peng4b16c412022-01-12 09:44:10 -080036
pcloudy5f9ca4a2022-05-11 06:11:13 -070037# In-direct dependencies
38# - abseil-cpp: Bazel doesn't need to see abseil-cpp directly, but it does
39# need a newer version to be able to build on latest macOS.
40bazel_dep(name = "abseil-cpp", version = "20211102.0")
41
42
Yun Peng4b16c412022-01-12 09:44:10 -080043# TODO(pcloudy): Remove this when rules_jvm_external adopts Bzlmod.
44single_version_override(
45 module_name = "protobuf",
46 patches = ["//third_party/protobuf:3.19.2.bzlmod.patch"],
47 patch_strip = 1,
48)