blob: e1e01e2e1a22213cec4b7f112240ef5fa2b6b391 [file] [log] [blame]
Kristina Chodorow93fbc3e2016-04-27 17:03:28 +00001workspace(name = "io_bazel")
philwo75edd782019-01-29 05:02:44 -08002
cparsonsc08e4df2020-03-27 13:44:14 -07003load("//tools/build_defs/repo:http.bzl", "http_archive", "http_file")
philwo17506af2020-01-28 04:20:39 -08004
5# These can be used as values for the patch_cmds and patch_cmds_win attributes
6# of http_archive, in order to export the WORKSPACE file from the BUILD or
7# BUILD.bazel file. This is useful for cases like //src:test_repos, where we
8# have to be able to trigger a fetch of a repo by depending on it, but we don't
9# actually want to build anything (so we can't depend on a target inside that
10# repo).
11EXPORT_WORKSPACE_IN_BUILD_FILE = [
12 "test -f BUILD && chmod u+w BUILD || true",
13 "echo >> BUILD",
14 "echo 'exports_files([\"WORKSPACE\"], visibility = [\"//visibility:public\"])' >> BUILD",
15]
16
17EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE = [
18 "test -f BUILD.bazel && chmod u+w BUILD.bazel || true",
19 "echo >> BUILD.bazel",
20 "echo 'exports_files([\"WORKSPACE\"], visibility = [\"//visibility:public\"])' >> BUILD.bazel",
21]
22
23EXPORT_WORKSPACE_IN_BUILD_FILE_WIN = [
24 "Add-Content -Path BUILD -Value \"`nexports_files([`\"WORKSPACE`\"], visibility = [`\"//visibility:public`\"])`n\" -Force",
25]
26
27EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN = [
28 "Add-Content -Path BUILD.bazel -Value \"`nexports_files([`\"WORKSPACE`\"], visibility = [`\"//visibility:public`\"])`n\" -Force",
29]
Kristina Chodorow93fbc3e2016-04-27 17:03:28 +000030
David Chenb78bbd52016-03-16 13:17:57 +000031# Protobuf expects an //external:python_headers label which would contain the
32# Python headers if fast Python protos is enabled. Since we are not using fast
33# Python protos, bind python_headers to a dummy target.
34bind(
35 name = "python_headers",
36 actual = "//:dummy",
37)
38
Alpha Lama1a79cb2016-05-15 19:13:52 +000039# Protobuf code generation for GRPC requires three external labels:
40# //external:grpc-java_plugin
41# //external:grpc-jar
42# //external:guava
43bind(
44 name = "grpc-java-plugin",
45 actual = "//third_party/grpc:grpc-java-plugin",
46)
47
48bind(
49 name = "grpc-jar",
50 actual = "//third_party/grpc:grpc-jar",
51)
52
53bind(
54 name = "guava",
55 actual = "//third_party:guava",
56)
57
Googler5b90b162017-08-31 16:29:34 +020058http_archive(
59 name = "bazel_j2objc",
iirinadcbad672019-07-17 04:45:21 -070060 # Computed using "shasum -a 256 j2objc-2.5.zip"
61 sha256 = "8d3403b5b7db57e347c943d214577f6879e5b175c2b59b7e075c0b6453330e9b",
62 strip_prefix = "j2objc-2.5",
hlopko6b06acc2019-03-25 04:40:10 -070063 urls = [
Jingwen Chen8d6eb832019-11-26 12:20:48 -080064 "https://mirror.bazel.build/github.com/google/j2objc/releases/download/2.5/j2objc-2.5.zip",
iirinadcbad672019-07-17 04:45:21 -070065 "https://github.com/google/j2objc/releases/download/2.5/j2objc-2.5.zip",
hlopko6b06acc2019-03-25 04:40:10 -070066 ],
Googler5b90b162017-08-31 16:29:34 +020067)
68
Damien Martin-Guillerez0baff0f2017-08-22 17:40:37 +020069# For src/test/shell/bazel:test_srcs
70load("//src/test/shell/bazel:list_source_repository.bzl", "list_source_repository")
cushonb6646232018-09-07 01:44:10 -070071
Damien Martin-Guillerez0baff0f2017-08-22 17:40:37 +020072list_source_repository(name = "local_bazel_source_list")
73
Adam Michael9b7330f2017-03-23 18:40:51 +000074# To run the Android integration tests in //src/test/shell/bazel/android:all or
75# build the Android sample app in //examples/android/java/bazel:hello_world
76#
77# 1. Install an Android SDK and NDK from https://developer.android.com
78# 2. Set the $ANDROID_HOME and $ANDROID_NDK_HOME environment variables
79# 3. Uncomment the two lines below
80#
81# android_sdk_repository(name = "androidsdk")
82# android_ndk_repository(name = "androidndk")
Cal Peyser2152bc12016-04-22 17:08:59 +000083
Adam Michael8a136d82016-11-16 23:04:46 +000084# In order to run //src/test/shell/bazel:maven_skylark_test, follow the
85# instructions above for the Android integration tests and uncomment the
86# following lines:
87# load("//tools/build_defs/repo:maven_rules.bzl", "maven_dependency_plugin")
88# maven_dependency_plugin()
89
gregceca48e9a2020-04-14 08:54:38 -070090# This allows rules written in Starlark to locate apple build tools.
philwo915fa8f2017-05-09 12:17:12 -040091bind(
92 name = "xcrunwrapper",
93 actual = "@bazel_tools//tools/objc:xcrunwrapper",
94)
Carmi Grushkobfaff292016-08-17 18:37:55 +000095
Yannic Bonenberger5e571d22020-02-13 07:29:58 -080096http_archive(
Carmi Grushko0fd73d62017-02-17 06:49:40 +000097 name = "com_google_protobuf",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -080098 patch_args = ["-p1"],
Yannic Bonenberger5e571d22020-02-13 07:29:58 -080099 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
100 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
Yannic Bonenbergerc656e652020-09-17 03:14:25 -0700101 patches = ["//third_party/protobuf:3.13.0.patch"],
102 sha256 = "9b4ee22c250fe31b16f1a24d61467e40780a3fbb9b91c3b65be2a376ed913a1a",
103 strip_prefix = "protobuf-3.13.0",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800104 urls = [
Yannic Bonenbergerc656e652020-09-17 03:14:25 -0700105 "https://mirror.bazel.build/github.com/protocolbuffers/protobuf/archive/v3.13.0.tar.gz",
106 "https://github.com/protocolbuffers/protobuf/archive/v3.13.0.tar.gz",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800107 ],
Carmi Grushko0fd73d62017-02-17 06:49:40 +0000108)
109
brandjoncb4ba072019-08-01 12:41:43 -0700110# This is a mock version of bazelbuild/rules_python that contains only
111# @rules_python//python:defs.bzl. It is used by protobuf.
112# TODO(#9029): We could potentially replace this with the real @rules_python.
113new_local_repository(
114 name = "rules_python",
brandjoncb4ba072019-08-01 12:41:43 -0700115 build_file = "//third_party/rules_python:BUILD",
laurentlbaf265672019-10-22 10:06:21 -0700116 path = "./third_party/rules_python",
brandjoncb4ba072019-08-01 12:41:43 -0700117 workspace_file = "//third_party/rules_python:rules_python.WORKSPACE",
118)
119
John Cater2f838922018-11-12 08:19:03 -0800120local_repository(
Jakob Buchgraber166f28c2017-05-30 16:41:18 +0200121 name = "googleapis",
cushonb6646232018-09-07 01:44:10 -0700122 path = "./third_party/googleapis/",
Jakob Buchgraber166f28c2017-05-30 16:41:18 +0200123)
124
John Cater2f838922018-11-12 08:19:03 -0800125local_repository(
Ola Rozenfeld930119a2018-08-10 11:04:44 -0700126 name = "remoteapis",
cushonb6646232018-09-07 01:44:10 -0700127 path = "./third_party/remoteapis/",
Ola Rozenfeld930119a2018-08-10 11:04:44 -0700128)
129
kmbbfd89d62018-04-11 14:26:56 -0700130http_archive(
131 name = "desugar_jdk_libs",
Klaus Aehligd4a8a472018-12-06 07:34:02 -0800132 # Commit e0b0291b2c51fbe5a7cfa14473a1ae850f94f021 of 2018-12-4
kmbbfd89d62018-04-11 14:26:56 -0700133 # Computed using "shasum -a 256 <zip>"
kmba9641252018-12-05 13:17:58 -0800134 sha256 = "fe2e04f91ce8c59d49d91b8102edc6627c6fa2906c1b0e7346f01419ec4f419d",
135 strip_prefix = "desugar_jdk_libs-e0b0291b2c51fbe5a7cfa14473a1ae850f94f021",
philwof443d092019-01-08 11:11:09 -0800136 urls = [
philwo75edd782019-01-29 05:02:44 -0800137 "https://mirror.bazel.build/github.com/google/desugar_jdk_libs/archive/e0b0291b2c51fbe5a7cfa14473a1ae850f94f021.zip",
138 "https://github.com/google/desugar_jdk_libs/archive/e0b0291b2c51fbe5a7cfa14473a1ae850f94f021.zip",
139 ],
kmbbfd89d62018-04-11 14:26:56 -0700140)
141
Klaus Aehlig3c9cd822018-05-24 03:35:42 -0700142load("//:distdir.bzl", "distdir_tar")
cushonb6646232018-09-07 01:44:10 -0700143
Klaus Aehlig3c9cd822018-05-24 03:35:42 -0700144distdir_tar(
145 name = "additional_distfiles",
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700146 # Keep in sync with the archives fetched as part of building bazel.
cparsons871cd6f2018-08-16 09:10:38 -0700147 archives = [
Klaus Aehligd4a8a472018-12-06 07:34:02 -0800148 "e0b0291b2c51fbe5a7cfa14473a1ae850f94f021.zip",
Ivo Listc2825262020-11-05 08:29:50 -0800149 "java_tools_javac11_linux-v10.3.zip",
150 "java_tools_javac11_windows-v10.3.zip",
151 "java_tools_javac11_darwin-v10.3.zip",
Charles Mitae9d883f2020-10-01 06:00:50 -0700152 "coverage_output_generator-v2.5.zip",
wyv8062ca42020-05-25 00:21:00 -0700153 # bazelbuid/stardoc
154 "1ef781ced3b1443dca3ed05dec1989eca1a4e1cd.tar.gz",
155 # rules_sass
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800156 "1.25.0.zip",
wyv8062ca42020-05-25 00:21:00 -0700157 # rules_nodejs
philwo3ff7def2020-11-09 07:30:06 -0800158 "rules_nodejs-2.2.2.tar.gz",
Donald Chaib69e1e52020-08-03 12:34:17 -0700159 "android_tools_pkg-0.19.0rc3.tar.gz",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800160 # bazelbuild/bazel-skylib
philwo7fcc26c2020-11-09 07:36:18 -0800161 "bazel-skylib-1.0.3.tar.gz",
hlopkoaaf64572019-06-14 02:33:56 -0700162 # bazelbuild/platforms
aldersondrive64235c32019-11-18 08:50:39 -0800163 "46993efdd33b73649796c5fc5c9efb193ae19d51.zip",
iirinae8260492019-07-03 05:16:09 -0700164 # bazelbuild/rules_java
165 "7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
oquenchil96068872019-07-08 07:01:39 -0700166 # bazelbuild/rules_cc
Marcel Hlopko02d19662019-11-11 21:55:16 -0800167 "8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip",
Jakob Buchgraber60df9052019-07-11 06:08:00 -0700168 # bazelbuild/bazel-toolchains
philwob7d98432020-05-29 06:41:31 -0700169 "bazel-toolchains-3.1.0.tar.gz",
iirinad26a3c12019-07-19 04:39:33 -0700170 # bazelbuild/rules_pkg
philwob14e4062020-01-27 03:02:32 -0800171 "rules_pkg-0.2.4.tar.gz",
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700172 # bazelbuild/rules_proto
Yannic Bonenberger829b0852020-10-28 10:37:35 -0700173 "7e4afce6fe62dbff0a4a03450143146f9f2d7488.tar.gz",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800174 # protocolbuffers/protobuf
Yannic Bonenbergerc656e652020-09-17 03:14:25 -0700175 "v3.13.0.tar.gz",
Yun Penge2f11d72020-06-03 09:16:35 -0700176 # grpc/grpc
Dmitry Ivankova33de172020-10-16 05:00:01 -0700177 "v1.32.0.tar.gz",
Yun Penge2f11d72020-06-03 09:16:35 -0700178 # c-ares/c-ares
179 "e982924acee7f7313b4baa4ee5ec000c5e373c30.tar.gz",
180 # protocolbuffers/upb
Dmitry Ivankova33de172020-10-16 05:00:01 -0700181 "382d5afc60e05470c23e8de19b19fc5ad231e732.tar.gz",
Dmitry Ivankova74096f2020-10-09 06:16:02 -0700182 # google/re2
183 "aecba11114cf1fac5497aeb844b6966106de3eb6.tar.gz",
184 # abseil/abseil-cpp
185 "df3ea785d8c30a9503321a3d35ee7d35808f190d.tar.gz",
Grzegorz Lukasik5137f362020-11-09 08:07:29 -0800186 # com_github_luben_zstd_jni
187 "v1.4.5-11.tar.gz",
cparsons871cd6f2018-08-16 09:10:38 -0700188 ],
cushonb6646232018-09-07 01:44:10 -0700189 dirname = "derived/distdir",
Klaus Aehlig3c9cd822018-05-24 03:35:42 -0700190 sha256 = {
Klaus Aehligd4a8a472018-12-06 07:34:02 -0800191 "e0b0291b2c51fbe5a7cfa14473a1ae850f94f021.zip": "fe2e04f91ce8c59d49d91b8102edc6627c6fa2906c1b0e7346f01419ec4f419d",
Ivo Listc2825262020-11-05 08:29:50 -0800192 "java_tools_javac11_linux-v10.3.zip": "bd6e8b7091c1f61f2de7dfdf0c47996ffb019582f7c4147a851f59eee7c04e15",
193 "java_tools_javac11_windows-v10.3.zip": "022cef618b138199d7b21740d495fbbd201483234b4818185aa6cdc6d162d9a4",
194 "java_tools_javac11_darwin-v10.3.zip": "cd8f319b46876e7c3a814095ad9d91dd8589821480548ad48da11949f45a38e6",
Charles Mitae9d883f2020-10-01 06:00:50 -0700195 "coverage_output_generator-v2.5.zip": "cd14f1cb4559e4723e63b7e7b06d09fcc3bd7ba58d03f354cdff1439bd936a7d",
wyv8062ca42020-05-25 00:21:00 -0700196 # bazelbuild/stardoc
197 "1ef781ced3b1443dca3ed05dec1989eca1a4e1cd.tar.gz": "5a725b777976b77aa122b707d1b6f0f39b6020f66cd427bb111a585599c857b1",
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800198 # rules_sass
199 "1.25.0.zip": "c78be58f5e0a29a04686b628cf54faaee0094322ae0ac99da5a8a8afca59a647",
200 # rules_nodejs
philwo3ff7def2020-11-09 07:30:06 -0800201 "rules_nodejs-2.2.2.tar.gz": "f2194102720e662dbf193546585d705e645314319554c6ce7e47d8b59f459e9c",
Donald Chaib69e1e52020-08-03 12:34:17 -0700202 "android_tools_pkg-0.19.0rc3.tar.gz": "ea5c0589a01e2a9f43c20e5c145d3530e3b3bdbe7322789bc5da38d0ca49b837",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800203 # bazelbuild/bazel-skylib
philwo7fcc26c2020-11-09 07:36:18 -0800204 "bazel-skylib-1.0.3.tar.gz": "1c531376ac7e5a180e0237938a2536de0c54d93f5c278634818e0efc952dd56c",
hlopkoaaf64572019-06-14 02:33:56 -0700205 # bazelbuild/platforms
aldersondrive64235c32019-11-18 08:50:39 -0800206 "46993efdd33b73649796c5fc5c9efb193ae19d51.zip": "66184688debeeefcc2a16a2f80b03f514deac8346fe888fb7e691a52c023dd88",
iirinae8260492019-07-03 05:16:09 -0700207 # bazelbuild/rules_java
208 "7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip": "bc81f1ba47ef5cc68ad32225c3d0e70b8c6f6077663835438da8d5733f917598",
oquenchil96068872019-07-08 07:01:39 -0700209 # bazelbuild/rules_cc
Marcel Hlopko02d19662019-11-11 21:55:16 -0800210 "8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip": "1d4dbbd1e1e9b57d40bb0ade51c9e882da7658d5bfbf22bbd15b68e7879d761f",
Jakob Buchgraber60df9052019-07-11 06:08:00 -0700211 # bazelbuild/bazel-toolchains
philwob7d98432020-05-29 06:41:31 -0700212 "bazel-toolchains-3.1.0.tar.gz": "726b5423e1c7a3866a3a6d68e7123b4a955e9fcbe912a51e0f737e6dab1d0af2",
iirinad26a3c12019-07-19 04:39:33 -0700213 # bazelbuild/rules_pkg
philwob14e4062020-01-27 03:02:32 -0800214 "rules_pkg-0.2.4.tar.gz": "4ba8f4ab0ff85f2484287ab06c0d871dcb31cc54d439457d28fd4ae14b18450a",
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700215 # bazelbuild/rules_proto
Yannic Bonenberger829b0852020-10-28 10:37:35 -0700216 "7e4afce6fe62dbff0a4a03450143146f9f2d7488.tar.gz": "8e7d59a5b12b233be5652e3d29f42fba01c7cbab09f6b3a8d0a57ed6d1e9a0da",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800217 # protocolbuffers/protobuf
Yannic Bonenbergerc656e652020-09-17 03:14:25 -0700218 "v3.13.0.tar.gz": "9b4ee22c250fe31b16f1a24d61467e40780a3fbb9b91c3b65be2a376ed913a1a",
Yun Penge2f11d72020-06-03 09:16:35 -0700219 # grpc/grpc
Dmitry Ivankova33de172020-10-16 05:00:01 -0700220 "v1.32.0.tar.gz": "f880ebeb2ccf0e47721526c10dd97469200e40b5f101a0d9774eb69efa0bd07a",
Yun Penge2f11d72020-06-03 09:16:35 -0700221 # c-ares/c-ares
222 "e982924acee7f7313b4baa4ee5ec000c5e373c30.tar.gz": "e8c2751ddc70fed9dc6f999acd92e232d5846f009ee1674f8aee81f19b2b915a",
223 # protocolbuffers/upb
Dmitry Ivankova33de172020-10-16 05:00:01 -0700224 "382d5afc60e05470c23e8de19b19fc5ad231e732.tar.gz": "7992217989f3156f8109931c1fc6db3434b7414957cb82371552377beaeb9d6c",
Dmitry Ivankova74096f2020-10-09 06:16:02 -0700225 # google/re2
226 "aecba11114cf1fac5497aeb844b6966106de3eb6.tar.gz": "9f385e146410a8150b6f4cb1a57eab7ec806ced48d427554b1e754877ff26c3e",
227 # abseil/abseil-cpp
228 "df3ea785d8c30a9503321a3d35ee7d35808f190d.tar.gz": "f368a8476f4e2e0eccf8a7318b98dafbe30b2600f4e3cf52636e5eb145aba06a",
Grzegorz Lukasik5137f362020-11-09 08:07:29 -0800229 # com_github_luben_zstd_jni
230 "v1.4.5-11.tar.gz": "9a33de540e4a10a080a22ff918c1bc2f585647f73ea30694eb095a1844b3f052",
cushonb6646232018-09-07 01:44:10 -0700231 },
232 urls = {
hlopko6b06acc2019-03-25 04:40:10 -0700233 "e0b0291b2c51fbe5a7cfa14473a1ae850f94f021.zip": [
234 "https://mirror.bazel.build/github.com/google/desugar_jdk_libs/archive/e0b0291b2c51fbe5a7cfa14473a1ae850f94f021.zip",
235 "https://github.com/google/desugar_jdk_libs/archive/e0b0291b2c51fbe5a7cfa14473a1ae850f94f021.zip",
236 ],
Ivo Listc2825262020-11-05 08:29:50 -0800237 "java_tools_javac11_linux-v10.3.zip": [
238 "https://mirror.bazel.build/bazel_java_tools/releases/javac11/v10.3/java_tools_javac11_linux-v10.3.zip",
hlopko6b06acc2019-03-25 04:40:10 -0700239 ],
Ivo Listc2825262020-11-05 08:29:50 -0800240 "java_tools_javac11_windows-v10.3.zip": [
241 "https://mirror.bazel.build/bazel_java_tools/releases/javac11/v10.3/java_tools_javac11_windows-v10.3.zip",
hlopko6b06acc2019-03-25 04:40:10 -0700242 ],
Ivo Listc2825262020-11-05 08:29:50 -0800243 "java_tools_javac11_darwin-v10.3.zip": [
244 "https://mirror.bazel.build/bazel_java_tools/releases/javac11/v10.3/java_tools_javac11_darwin-v10.3.zip",
hlopko6b06acc2019-03-25 04:40:10 -0700245 ],
Charles Mitae9d883f2020-10-01 06:00:50 -0700246 "coverage_output_generator-v2.5.zip": [
247 "https://mirror.bazel.build/bazel_coverage_output_generator/releases/coverage_output_generator-v2.5.zip",
iirinaec2b0802019-04-09 10:43:48 -0700248 ],
wyv8062ca42020-05-25 00:21:00 -0700249 "1ef781ced3b1443dca3ed05dec1989eca1a4e1cd.tar.gz": [
wyv408be522020-05-26 02:14:23 -0700250 "https://mirror.bazel.build/github.com/bazelbuild/stardoc/archive/1ef781ced3b1443dca3ed05dec1989eca1a4e1cd.tar.gz",
wyv8062ca42020-05-25 00:21:00 -0700251 "https://github.com/bazelbuild/stardoc/archive/1ef781ced3b1443dca3ed05dec1989eca1a4e1cd.tar.gz",
hlopko6b06acc2019-03-25 04:40:10 -0700252 ],
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800253 "1.25.0.zip": [
254 "https://mirror.bazel.build/github.com/bazelbuild/rules_sass/archive/1.25.0.zip",
255 "https://github.com/bazelbuild/rules_sass/archive/1.25.0.zip",
hlopko6b06acc2019-03-25 04:40:10 -0700256 ],
philwo3ff7def2020-11-09 07:30:06 -0800257 "rules_nodejs-2.2.2.tar.gz": [
258 "https://mirror.bazel.build/github.com/bazelbuild/rules_nodejs/releases/download/2.2.2/rules_nodejs-2.2.2.tar.gz",
259 "https://github.com/bazelbuild/rules_nodejs/releases/download/2.2.2/rules_nodejs-2.2.2.tar.gz",
hlopko6b06acc2019-03-25 04:40:10 -0700260 ],
Donald Chaib69e1e52020-08-03 12:34:17 -0700261 "android_tools_pkg-0.19.0rc3.tar.gz": [
262 "https://mirror.bazel.build/bazel_android_tools/android_tools_pkg-0.19.0rc3.tar.gz",
Jingwen Chen186929e2019-04-02 10:38:30 -0700263 ],
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800264 # bazelbuild/bazel-skylib
philwo7fcc26c2020-11-09 07:36:18 -0800265 "bazel-skylib-1.0.3.tar.gz": [
266 "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.0.3/bazel-skylib-1.0.3.tar.gz",
267 "https://github.com/bazelbuild/bazel-skylib/releases/download/1.0.3/bazel-skylib-1.0.3.tar.gz",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800268 ],
hlopkoaaf64572019-06-14 02:33:56 -0700269 # bazelbuild/platforms
aldersondrive64235c32019-11-18 08:50:39 -0800270 "46993efdd33b73649796c5fc5c9efb193ae19d51.zip": [
271 "https://mirror.bazel.build/github.com/bazelbuild/platforms/archive/46993efdd33b73649796c5fc5c9efb193ae19d51.zip",
272 "https://github.com/bazelbuild/platforms/archive/46993efdd33b73649796c5fc5c9efb193ae19d51.zip",
hlopkoaaf64572019-06-14 02:33:56 -0700273 ],
iirinae8260492019-07-03 05:16:09 -0700274 # bazelbuild/rules_java
275 "7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip": [
oquenchil96068872019-07-08 07:01:39 -0700276 "https://mirror.bazel.build/github.com/bazelbuild/rules_java/archive/7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
iirinae8260492019-07-03 05:16:09 -0700277 "https://github.com/bazelbuild/rules_java/archive/7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
oquenchil96068872019-07-08 07:01:39 -0700278 ],
279 # bazelbuild/rules_cc
Marcel Hlopko02d19662019-11-11 21:55:16 -0800280 "8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip": [
281 "https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip",
282 "https://github.com/bazelbuild/rules_cc/archive/8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip",
oquenchil96068872019-07-08 07:01:39 -0700283 ],
Jakob Buchgraber60df9052019-07-11 06:08:00 -0700284 # bazelbuild/bazel-toolchains
philwob7d98432020-05-29 06:41:31 -0700285 "bazel-toolchains-3.1.0.tar.gz": [
286 "https://mirror.bazel.build/github.com/bazelbuild/bazel-toolchains/releases/download/3.1.0/bazel-toolchains-3.1.0.tar.gz",
John Caterf47f83e2020-05-04 05:16:00 -0700287 "https://github.com/bazelbuild/bazel-toolchains/releases/download/3.1.0/bazel-toolchains-3.1.0.tar.gz",
Jakob Buchgraber60df9052019-07-11 06:08:00 -0700288 ],
Tony Aiutoed8a5ec2019-07-17 08:33:48 -0700289 # bazelbuild/rules_pkg
philwob14e4062020-01-27 03:02:32 -0800290 "rules_pkg-0.2.4.tar.gz": [
291 "https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.2.4/rules_pkg-0.2.4.tar.gz",
292 "https://github.com/bazelbuild/rules_pkg/releases/download/0.2.4/rules_pkg-0.2.4.tar.gz",
Tony Aiutoed8a5ec2019-07-17 08:33:48 -0700293 ],
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700294 # bazelbuild/rules_proto
Yannic Bonenberger829b0852020-10-28 10:37:35 -0700295 "7e4afce6fe62dbff0a4a03450143146f9f2d7488.tar.gz": [
296 "https://mirror.bazel.build/github.com/bazelbuild/rules_proto/archive/7e4afce6fe62dbff0a4a03450143146f9f2d7488.tar.gz",
297 "https://github.com/bazelbuild/rules_proto/archive/7e4afce6fe62dbff0a4a03450143146f9f2d7488.tar.gz",
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700298 ],
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800299 # protocolbuffers/protobuf
Yannic Bonenbergerc656e652020-09-17 03:14:25 -0700300 "v3.13.0.tar.gz": [
301 "https://mirror.bazel.build/github.com/protocolbuffers/protobuf/archive/v3.13.0.tar.gz",
302 "https://github.com/protocolbuffers/protobuf/archive/v3.13.0.tar.gz",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800303 ],
Yun Penge2f11d72020-06-03 09:16:35 -0700304 # grpc/grpc
Dmitry Ivankova33de172020-10-16 05:00:01 -0700305 "v1.32.0.tar.gz": [
philwoaf3bd4a2020-11-09 07:32:38 -0800306 "https://mirror.bazel.build/github.com/grpc/grpc/archive/v1.32.0.tar.gz",
Dmitry Ivankova33de172020-10-16 05:00:01 -0700307 "https://github.com/grpc/grpc/archive/v1.32.0.tar.gz",
Yun Penge2f11d72020-06-03 09:16:35 -0700308 ],
309 # c-ares/c-ares
310 "e982924acee7f7313b4baa4ee5ec000c5e373c30.tar.gz": [
311 "https://mirror.bazel.build/github.com/c-ares/c-ares/archive/e982924acee7f7313b4baa4ee5ec000c5e373c30.tar.gz",
312 "https://github.com/c-ares/c-ares/archive/e982924acee7f7313b4baa4ee5ec000c5e373c30.tar.gz",
313 ],
314 # protocolbuffers/upb
Dmitry Ivankova33de172020-10-16 05:00:01 -0700315 "382d5afc60e05470c23e8de19b19fc5ad231e732.tar.gz": [
316 "https://mirror.bazel.build/github.com/protocolbuffers/upb/archive/382d5afc60e05470c23e8de19b19fc5ad231e732.tar.gz",
317 "https://github.com/protocolbuffers/upb/archive/382d5afc60e05470c23e8de19b19fc5ad231e732.tar.gz",
Dmitry Ivankova74096f2020-10-09 06:16:02 -0700318 ],
319 # google/re2
320 "aecba11114cf1fac5497aeb844b6966106de3eb6.tar.gz": [
321 "https://mirror.bazel.build/github.com/google/re2/archive/aecba11114cf1fac5497aeb844b6966106de3eb6.tar.gz",
322 "https://github.com/google/re2/archive/aecba11114cf1fac5497aeb844b6966106de3eb6.tar.gz",
323 ],
324 # abseil/abseil-cpp
325 "df3ea785d8c30a9503321a3d35ee7d35808f190d.tar.gz": [
326 "https://mirror.bazel.build/github.com/abseil/abseil-cpp/archive/df3ea785d8c30a9503321a3d35ee7d35808f190d.tar.gz",
327 "https://github.com/abseil/abseil-cpp/archive/df3ea785d8c30a9503321a3d35ee7d35808f190d.tar.gz",
Yun Penge2f11d72020-06-03 09:16:35 -0700328 ],
Grzegorz Lukasik5137f362020-11-09 08:07:29 -0800329 # com_github_luben_zstd_jni
330 "v1.4.5-11.tar.gz": [
331 "https://mirror.bazel.build/github.com/luben/zstd-jni/archive/v1.4.5-11.tar.gz",
332 "https://github.com/luben/zstd-jni/archive/v1.4.5-11.tar.gz",
333 ],
cushonb6646232018-09-07 01:44:10 -0700334 },
Klaus Aehlig3c9cd822018-05-24 03:35:42 -0700335)
336
Philipp Wollermann95048272017-03-17 15:11:58 +0000337# OpenJDK distributions used to create a version of Bazel bundled with the OpenJDK.
338http_file(
339 name = "openjdk_linux",
philwo75edd782019-01-29 05:02:44 -0800340 downloaded_file_path = "zulu-linux.tar.gz",
philwo3ac4af42020-02-14 07:58:55 -0800341 sha256 = "65bfe4e0ffa74a680ee4410db46b17e30cd9397b664a92a886599fe1f3530969",
342 urls = ["https://mirror.bazel.build/openjdk/azul-zulu11.37.17-ca-jdk11.0.6/zulu11.37.17-ca-jdk11.0.6-linux_x64-linux_x64-allmodules-b23d4e05466f2aa1fdcd72d3d3a8e962206b64bf-1581689070.tar.gz"],
Philipp Wollermann95048272017-03-17 15:11:58 +0000343)
344
Tobias Werth218e8f62018-12-13 04:44:35 -0800345http_file(
346 name = "openjdk_linux_vanilla",
philwo75edd782019-01-29 05:02:44 -0800347 downloaded_file_path = "zulu-linux-vanilla.tar.gz",
philwo3ac4af42020-02-14 07:58:55 -0800348 sha256 = "360626cc19063bc411bfed2914301b908a8f77a7919aaea007a977fa8fb3cde1",
349 urls = ["https://mirror.bazel.build/openjdk/azul-zulu11.37.17-ca-jdk11.0.6/zulu11.37.17-ca-jdk11.0.6-linux_x64.tar.gz"],
Tobias Werth218e8f62018-12-13 04:44:35 -0800350)
351
Tobias Werthfbf8fb92019-01-09 11:22:11 -0800352http_file(
353 name = "openjdk_linux_minimal",
philwo75edd782019-01-29 05:02:44 -0800354 downloaded_file_path = "zulu-linux-minimal.tar.gz",
philwo3ac4af42020-02-14 07:58:55 -0800355 sha256 = "91f7d52f695c681d4e21499b4319d548aadef249a6b3053e306308992e1e29ae",
356 urls = ["https://mirror.bazel.build/openjdk/azul-zulu11.37.17-ca-jdk11.0.6/zulu11.37.17-ca-jdk11.0.6-linux_x64-minimal-b23d4e05466f2aa1fdcd72d3d3a8e962206b64bf-1581689068.tar.gz"],
Tobias Werthfbf8fb92019-01-09 11:22:11 -0800357)
358
Philipp Wollermann95048272017-03-17 15:11:58 +0000359http_file(
philwo9f7fe692019-06-27 06:53:12 -0700360 name = "openjdk_linux_aarch64",
361 downloaded_file_path = "zulu-linux-aarch64.tar.gz",
philwo3ac4af42020-02-14 07:58:55 -0800362 sha256 = "6b245793087300db3ee82ab0d165614f193a73a60f2f011e347756c1e6ca5bac",
363 urls = ["https://mirror.bazel.build/openjdk/azul-zulu11.37.48-ca-jdk11.0.6/zulu11.37.48-ca-jdk11.0.6-linux_aarch64-allmodules-b23d4e05466f2aa1fdcd72d3d3a8e962206b64bf-1581690750.tar.gz"],
philwo9f7fe692019-06-27 06:53:12 -0700364)
365
366http_file(
367 name = "openjdk_linux_aarch64_vanilla",
368 downloaded_file_path = "zulu-linux-aarch64-vanilla.tar.gz",
philwo3ac4af42020-02-14 07:58:55 -0800369 sha256 = "a452f1b9682d9f83c1c14e54d1446e1c51b5173a3a05dcb013d380f9508562e4",
370 urls = ["https://mirror.bazel.build/openjdk/azul-zulu11.37.48-ca-jdk11.0.6/zulu11.37.48-ca-jdk11.0.6-linux_aarch64.tar.gz"],
philwo9f7fe692019-06-27 06:53:12 -0700371)
372
373http_file(
374 name = "openjdk_linux_aarch64_minimal",
375 downloaded_file_path = "zulu-linux-aarch64-minimal.tar.gz",
philwo3ac4af42020-02-14 07:58:55 -0800376 sha256 = "06f6520a877704c77614bcfc4f846cc7cbcbf5eaad149bf7f19f4f16e285c9de",
377 urls = ["https://mirror.bazel.build/openjdk/azul-zulu11.37.48-ca-jdk11.0.6/zulu11.37.48-ca-jdk11.0.6-linux_aarch64-minimal-b23d4e05466f2aa1fdcd72d3d3a8e962206b64bf-1581690750.tar.gz"],
philwo9f7fe692019-06-27 06:53:12 -0700378)
379
380http_file(
Jason Furmanek04e073e2020-05-28 05:48:09 -0700381 name = "openjdk_linux_ppc64le_vanilla",
Ivo List4c6c9992020-09-23 09:25:05 -0700382 downloaded_file_path = "adoptopenjdk-ppc64le-vanilla.tar.gz",
Jason Furmanek04e073e2020-05-28 05:48:09 -0700383 sha256 = "a417db0295b1f4b538ecbaf7c774f3a177fab9657a665940170936c0eca4e71a",
384 urls = [
philwo66d84ef2020-06-05 06:52:20 -0700385 "https://mirror.bazel.build/openjdk/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.7+10/OpenJDK11U-jdk_ppc64le_linux_hotspot_11.0.7_10.tar.gz",
386 "https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.7+10/OpenJDK11U-jdk_ppc64le_linux_hotspot_11.0.7_10.tar.gz",
Jason Furmanek04e073e2020-05-28 05:48:09 -0700387 ],
388)
389
390http_file(
Ruixin Baoe14a6f22020-08-21 06:17:24 -0700391 name = "openjdk_linux_s390x_vanilla",
Ivo List4c6c9992020-09-23 09:25:05 -0700392 downloaded_file_path = "adoptopenjdk-s390x-vanilla.tar.gz",
Ruixin Baoe14a6f22020-08-21 06:17:24 -0700393 sha256 = "d9b72e87a1d3ebc0c9552f72ae5eb150fffc0298a7cb841f1ce7bfc70dcd1059",
394 urls = [
395 "https://mirror.bazel.build/github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.7+10/OpenJDK11U-jdk_s390x_linux_hotspot_11.0.7_10.tar.gz",
396 "https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.7+10/OpenJDK11U-jdk_s390x_linux_hotspot_11.0.7_10.tar.gz",
397 ],
398)
399
400http_file(
Philipp Wollermann95048272017-03-17 15:11:58 +0000401 name = "openjdk_macos",
philwo75edd782019-01-29 05:02:44 -0800402 downloaded_file_path = "zulu-macos.tar.gz",
philwo3ac4af42020-02-14 07:58:55 -0800403 sha256 = "8e283cfd23c7555be8e17295ed76eb8f00324c88ab904b8de37bbe08f90e569b",
404 urls = ["https://mirror.bazel.build/openjdk/azul-zulu11.37.17-ca-jdk11.0.6/zulu11.37.17-ca-jdk11.0.6-macosx_x64-allmodules-b23d4e05466f2aa1fdcd72d3d3a8e962206b64bf-1581689066.tar.gz"],
Philipp Wollermann95048272017-03-17 15:11:58 +0000405)
406
407http_file(
Tobias Werth218e8f62018-12-13 04:44:35 -0800408 name = "openjdk_macos_vanilla",
philwo75edd782019-01-29 05:02:44 -0800409 downloaded_file_path = "zulu-macos-vanilla.tar.gz",
philwo3ac4af42020-02-14 07:58:55 -0800410 sha256 = "e1fe56769f32e2aaac95e0a8f86b5a323da5af3a3b4bba73f3086391a6cc056f",
411 urls = ["https://mirror.bazel.build/openjdk/azul-zulu11.37.17-ca-jdk11.0.6/zulu11.37.17-ca-jdk11.0.6-macosx_x64.tar.gz"],
Tobias Werth218e8f62018-12-13 04:44:35 -0800412)
413
414http_file(
Tobias Werthfbf8fb92019-01-09 11:22:11 -0800415 name = "openjdk_macos_minimal",
philwo75edd782019-01-29 05:02:44 -0800416 downloaded_file_path = "zulu-macos-minimal.tar.gz",
philwo3ac4af42020-02-14 07:58:55 -0800417 sha256 = "1bacb1c07035d4066d79f0b65b4ea0ebd1954f3662bdfe3618da382ac8fd23a6",
418 urls = ["https://mirror.bazel.build/openjdk/azul-zulu11.37.17-ca-jdk11.0.6/zulu11.37.17-ca-jdk11.0.6-macosx_x64-minimal-b23d4e05466f2aa1fdcd72d3d3a8e962206b64bf-1581689063.tar.gz"],
Tobias Werthfbf8fb92019-01-09 11:22:11 -0800419)
420
421http_file(
Philipp Wollermann95048272017-03-17 15:11:58 +0000422 name = "openjdk_win",
philwo75edd782019-01-29 05:02:44 -0800423 downloaded_file_path = "zulu-win.zip",
philwo3ac4af42020-02-14 07:58:55 -0800424 sha256 = "8e1604b3a27dcf639bc6d1a73103f1211848139e4cceb081d0a74a99e1e6f995",
425 urls = ["https://mirror.bazel.build/openjdk/azul-zulu11.37.17-ca-jdk11.0.6/zulu11.37.17-ca-jdk11.0.6-win_x64-allmodules-b23d4e05466f2aa1fdcd72d3d3a8e962206b64bf-1581689080.zip"],
Philipp Wollermann95048272017-03-17 15:11:58 +0000426)
Googler5f36bf82017-07-12 20:43:08 +0200427
Tobias Werth218e8f62018-12-13 04:44:35 -0800428http_file(
429 name = "openjdk_win_vanilla",
philwo75edd782019-01-29 05:02:44 -0800430 downloaded_file_path = "zulu-win-vanilla.zip",
philwo3ac4af42020-02-14 07:58:55 -0800431 sha256 = "a9695617b8374bfa171f166951214965b1d1d08f43218db9a2a780b71c665c18",
432 urls = ["https://mirror.bazel.build/openjdk/azul-zulu11.37.17-ca-jdk11.0.6/zulu11.37.17-ca-jdk11.0.6-win_x64.zip"],
Tobias Werth218e8f62018-12-13 04:44:35 -0800433)
434
Tobias Werthfbf8fb92019-01-09 11:22:11 -0800435http_file(
436 name = "openjdk_win_minimal",
philwo75edd782019-01-29 05:02:44 -0800437 downloaded_file_path = "zulu-win-minimal.zip",
philwo3ac4af42020-02-14 07:58:55 -0800438 sha256 = "b90a713c9c2d9ea23cad44d2c2dfcc9af22faba9bde55dedc1c3bb9f556ac1ae",
439 urls = ["https://mirror.bazel.build/openjdk/azul-zulu11.37.17-ca-jdk11.0.6/zulu11.37.17-ca-jdk11.0.6-win_x64-minimal-b23d4e05466f2aa1fdcd72d3d3a8e962206b64bf-1581689080.zip"],
Tobias Werthfbf8fb92019-01-09 11:22:11 -0800440)
441
Googler5f36bf82017-07-12 20:43:08 +0200442http_archive(
Keith Smiley7fcbeec2019-04-23 17:06:02 -0700443 name = "bazel_toolchains",
philwo17506af2020-01-28 04:20:39 -0800444 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
445 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
John Caterf47f83e2020-05-04 05:16:00 -0700446 sha256 = "726b5423e1c7a3866a3a6d68e7123b4a955e9fcbe912a51e0f737e6dab1d0af2",
447 strip_prefix = "bazel-toolchains-3.1.0",
Keith Smiley7fcbeec2019-04-23 17:06:02 -0700448 urls = [
philwob7d98432020-05-29 06:41:31 -0700449 "https://mirror.bazel.build/github.com/bazelbuild/bazel-toolchains/releases/download/3.1.0/bazel-toolchains-3.1.0.tar.gz",
John Caterf47f83e2020-05-04 05:16:00 -0700450 "https://github.com/bazelbuild/bazel-toolchains/releases/download/3.1.0/bazel-toolchains-3.1.0.tar.gz",
Keith Smiley7fcbeec2019-04-23 17:06:02 -0700451 ],
Googler5f36bf82017-07-12 20:43:08 +0200452)
ccalvarin1cbe62a2017-08-14 21:09:07 +0200453
Jakob Buchgraber60df9052019-07-11 06:08:00 -0700454load("@bazel_toolchains//rules:rbe_repo.bzl", "rbe_autoconfig")
455
456rbe_autoconfig(
457 name = "rbe_ubuntu1804_java11",
458 detect_java_home = True,
459 registry = "gcr.io",
philwo479857b2020-02-17 10:46:07 -0800460 repository = "bazel-public/ubuntu1804-bazel-java11",
461 tag = "latest",
Jakob Buchgraber60df9052019-07-11 06:08:00 -0700462)
463
464rbe_autoconfig(
465 name = "rbe_ubuntu1604_java8",
466 detect_java_home = True,
467 registry = "gcr.io",
philwo479857b2020-02-17 10:46:07 -0800468 repository = "bazel-public/ubuntu1604-bazel-java8",
469 tag = "latest",
Jakob Buchgraber3541ad62019-04-30 07:51:12 -0700470)
471
Googlerde0612a2019-03-07 06:06:55 -0800472# Creates toolchain configuration for remote execution with BuildKite CI
473# for rbe_ubuntu1604.
474# To run the tests with RBE on BuildKite CI uncomment the two lines below
475# load("@bazel_toolchains//rules:rbe_repo.bzl", "rbe_autoconfig")
476# rbe_autoconfig(name = "buildkite_config")
477
ccalvarin8e9f4a82018-03-23 08:19:37 -0700478http_archive(
479 name = "com_google_googletest",
Yannic Bonenberger5b4ab2d2019-10-15 05:38:04 -0700480 sha256 = "9dc9157a9a1551ec7a7e43daea9a694a0bb5fb8bec81235d8a1e6ef64c716dcb",
481 strip_prefix = "googletest-release-1.10.0",
ccalvarin8e9f4a82018-03-23 08:19:37 -0700482 urls = [
Yannic Bonenberger5b4ab2d2019-10-15 05:38:04 -0700483 "https://mirror.bazel.build/github.com/google/googletest/archive/release-1.10.0.tar.gz",
484 "https://github.com/google/googletest/archive/release-1.10.0.tar.gz",
ccalvarin8e9f4a82018-03-23 08:19:37 -0700485 ],
ccalvarin8e9f4a82018-03-23 08:19:37 -0700486)
487
cparsons871cd6f2018-08-16 09:10:38 -0700488http_archive(
489 name = "bazel_skylib",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800490 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
491 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
philwo7fcc26c2020-11-09 07:36:18 -0800492 sha256 = "1c531376ac7e5a180e0237938a2536de0c54d93f5c278634818e0efc952dd56c",
cparsons871cd6f2018-08-16 09:10:38 -0700493 urls = [
philwo7fcc26c2020-11-09 07:36:18 -0800494 "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.0.3/bazel-skylib-1.0.3.tar.gz",
495 "https://github.com/bazelbuild/bazel-skylib/releases/download/1.0.3/bazel-skylib-1.0.3.tar.gz",
cparsons871cd6f2018-08-16 09:10:38 -0700496 ],
cparsons871cd6f2018-08-16 09:10:38 -0700497)
cparsonsa5be6612018-08-27 13:21:21 -0700498
wyv8062ca42020-05-25 00:21:00 -0700499# Note that stardoc depends on being called io_bazel_skydoc
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700500# to work without being patched, as it hard-codes this name in its sources.
wyv8062ca42020-05-25 00:21:00 -0700501# TODO(wyv): Is the above still true? Try a different name and see if it works.
502# If it does, can we rename the workspace in bazelbuild/stardoc?
cparsonsa5be6612018-08-27 13:21:21 -0700503http_archive(
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700504 name = "io_bazel_skydoc",
wyv8062ca42020-05-25 00:21:00 -0700505 sha256 = "5a725b777976b77aa122b707d1b6f0f39b6020f66cd427bb111a585599c857b1",
506 strip_prefix = "stardoc-1ef781ced3b1443dca3ed05dec1989eca1a4e1cd",
wyv408be522020-05-26 02:14:23 -0700507 urls = [
508 "https://mirror.bazel.build/github.com/bazelbuild/stardoc/archive/1ef781ced3b1443dca3ed05dec1989eca1a4e1cd.tar.gz",
509 "https://github.com/bazelbuild/stardoc/archive/1ef781ced3b1443dca3ed05dec1989eca1a4e1cd.tar.gz",
510 ],
cparsonsa5be6612018-08-27 13:21:21 -0700511)
Klaus Aehligacafe5a2018-10-24 03:16:42 -0700512
John Catere2d67242020-10-16 07:45:45 -0700513# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
514# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/cpp/cc_configure.WORKSPACE.
oquenchil96068872019-07-08 07:01:39 -0700515http_archive(
516 name = "rules_cc",
philwo17506af2020-01-28 04:20:39 -0800517 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
518 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
Marcel Hlopko02d19662019-11-11 21:55:16 -0800519 sha256 = "1d4dbbd1e1e9b57d40bb0ade51c9e882da7658d5bfbf22bbd15b68e7879d761f",
520 strip_prefix = "rules_cc-8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0",
oquenchil96068872019-07-08 07:01:39 -0700521 urls = [
Marcel Hlopko02d19662019-11-11 21:55:16 -0800522 "https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip",
523 "https://github.com/bazelbuild/rules_cc/archive/8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip",
oquenchil96068872019-07-08 07:01:39 -0700524 ],
525)
526
iirinab815b792019-07-17 05:47:01 -0700527http_archive(
528 name = "rules_java",
philwo17506af2020-01-28 04:20:39 -0800529 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
530 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
iirinab815b792019-07-17 05:47:01 -0700531 sha256 = "bc81f1ba47ef5cc68ad32225c3d0e70b8c6f6077663835438da8d5733f917598",
iirinad26a3c12019-07-19 04:39:33 -0700532 strip_prefix = "rules_java-7cf3cefd652008d0a64a419c34c13bdca6c8f178",
iirinab815b792019-07-17 05:47:01 -0700533 urls = [
iirinad26a3c12019-07-19 04:39:33 -0700534 "https://mirror.bazel.build/github.com/bazelbuild/rules_java/archive/7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
535 "https://github.com/bazelbuild/rules_java/archive/7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
iirinab815b792019-07-17 05:47:01 -0700536 ],
iirinab815b792019-07-17 05:47:01 -0700537)
538
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700539http_archive(
540 name = "rules_proto",
philwo17506af2020-01-28 04:20:39 -0800541 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
542 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
Yannic Bonenberger829b0852020-10-28 10:37:35 -0700543 sha256 = "8e7d59a5b12b233be5652e3d29f42fba01c7cbab09f6b3a8d0a57ed6d1e9a0da",
544 strip_prefix = "rules_proto-7e4afce6fe62dbff0a4a03450143146f9f2d7488",
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700545 urls = [
Yannic Bonenberger829b0852020-10-28 10:37:35 -0700546 "https://mirror.bazel.build/github.com/bazelbuild/rules_proto/archive/7e4afce6fe62dbff0a4a03450143146f9f2d7488.tar.gz",
547 "https://github.com/bazelbuild/rules_proto/archive/7e4afce6fe62dbff0a4a03450143146f9f2d7488.tar.gz",
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700548 ],
549)
550
Grzegorz Lukasik5137f362020-11-09 08:07:29 -0800551http_archive(
552 name = "com_github_luben_zstd_jni",
553 build_file = "//third_party/zstd-jni:BUILD.bazel",
554 patch_args = ["-p1"],
555 patches = ["//third_party/zstd-jni:zstd-jni_1.4.5-11.patch"],
556 sha256 = "9a33de540e4a10a080a22ff918c1bc2f585647f73ea30694eb095a1844b3f052",
557 strip_prefix = "zstd-jni-1.4.5-11",
558 urls = [
559 "https://mirror.bazel.build/github.com/luben/zstd-jni/archive/v1.4.5-11.tar.gz",
560 "https://github.com/luben/zstd-jni/archive/v1.4.5-11.tar.gz",
561 ],
562)
563
Klaus Aehligacafe5a2018-10-24 03:16:42 -0700564# For testing, have an distdir_tar with all the archives implicit in every
565# WORKSPACE, to that they don't have to be refetched for every test
566# calling `bazel sync`.
567distdir_tar(
Jingwen Chen186929e2019-04-02 10:38:30 -0700568 name = "test_WORKSPACE_files",
philwo75edd782019-01-29 05:02:44 -0800569 archives = [
Ivo Listc2825262020-11-05 08:29:50 -0800570 "java_tools_javac11_linux-v10.3.zip",
571 "java_tools_javac11_windows-v10.3.zip",
572 "java_tools_javac11_darwin-v10.3.zip",
Charles Mitae9d883f2020-10-01 06:00:50 -0700573 "coverage_output_generator-v2.5.zip",
philwo3ac4af42020-02-14 07:58:55 -0800574 "zulu11.37.17-ca-jdk11.0.6-linux_x64.tar.gz",
575 "zulu11.37.48-ca-jdk11.0.6-linux_aarch64.tar.gz",
576 "zulu11.37.17-ca-jdk11.0.6-macosx_x64.tar.gz",
577 "zulu11.37.17-ca-jdk11.0.6-win_x64.zip",
Donald Chaib69e1e52020-08-03 12:34:17 -0700578 "android_tools_pkg-0.19.0rc3.tar.gz",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800579 # bazelbuild/bazel-skylib
philwo7fcc26c2020-11-09 07:36:18 -0800580 "bazel-skylib-1.0.3.tar.gz",
hlopkoaaf64572019-06-14 02:33:56 -0700581 # bazelbuild/platforms
aldersondrive64235c32019-11-18 08:50:39 -0800582 "46993efdd33b73649796c5fc5c9efb193ae19d51.zip",
iirinae8260492019-07-03 05:16:09 -0700583 # bazelbuild/rules_java
584 "7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
oquenchil96068872019-07-08 07:01:39 -0700585 # bazelbuild/rules_cc
Marcel Hlopko02d19662019-11-11 21:55:16 -0800586 "8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip",
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700587 # bazelbuild/rules_proto
Yannic Bonenberger829b0852020-10-28 10:37:35 -0700588 "7e4afce6fe62dbff0a4a03450143146f9f2d7488.tar.gz",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800589 # protocolbuffers/protobuf
Yannic Bonenbergerc656e652020-09-17 03:14:25 -0700590 "v3.13.0.tar.gz",
Yun Penge2f11d72020-06-03 09:16:35 -0700591 # grpc/grpc
Dmitry Ivankova33de172020-10-16 05:00:01 -0700592 "v1.32.0.tar.gz",
Yun Penge2f11d72020-06-03 09:16:35 -0700593 # c-ares/c-ares
594 "e982924acee7f7313b4baa4ee5ec000c5e373c30.tar.gz",
595 # protocolbuffers/upb
Dmitry Ivankova33de172020-10-16 05:00:01 -0700596 "382d5afc60e05470c23e8de19b19fc5ad231e732.tar.gz",
Dmitry Ivankova74096f2020-10-09 06:16:02 -0700597 # google/re2
598 "aecba11114cf1fac5497aeb844b6966106de3eb6.tar.gz",
599 # abseil/abseil-cpp
600 "df3ea785d8c30a9503321a3d35ee7d35808f190d.tar.gz",
philwo75edd782019-01-29 05:02:44 -0800601 ],
Jingwen Chen186929e2019-04-02 10:38:30 -0700602 dirname = "test_WORKSPACE/distdir",
philwo75edd782019-01-29 05:02:44 -0800603 sha256 = {
Ivo Listc2825262020-11-05 08:29:50 -0800604 "java_tools_javac11_linux-v10.3.zip": "bd6e8b7091c1f61f2de7dfdf0c47996ffb019582f7c4147a851f59eee7c04e15",
605 "java_tools_javac11_windows-v10.3.zip": "022cef618b138199d7b21740d495fbbd201483234b4818185aa6cdc6d162d9a4",
606 "java_tools_javac11_darwin-v10.3.zip": "cd8f319b46876e7c3a814095ad9d91dd8589821480548ad48da11949f45a38e6",
Charles Mitae9d883f2020-10-01 06:00:50 -0700607 "coverage_output_generator-v2.5.zip": "cd14f1cb4559e4723e63b7e7b06d09fcc3bd7ba58d03f354cdff1439bd936a7d",
philwo3ac4af42020-02-14 07:58:55 -0800608 "zulu11.37.17-ca-jdk11.0.6-linux_x64.tar.gz": "360626cc19063bc411bfed2914301b908a8f77a7919aaea007a977fa8fb3cde1",
philwoe158fe72020-02-17 06:32:43 -0800609 "zulu11.37.48-ca-jdk11.0.6-linux_aarch64.tar.gz": "a452f1b9682d9f83c1c14e54d1446e1c51b5173a3a05dcb013d380f9508562e4",
philwo3ac4af42020-02-14 07:58:55 -0800610 "zulu11.37.17-ca-jdk11.0.6-macosx_x64.tar.gz": "e1fe56769f32e2aaac95e0a8f86b5a323da5af3a3b4bba73f3086391a6cc056f",
611 "zulu11.37.17-ca-jdk11.0.6-win_x64.zip": "a9695617b8374bfa171f166951214965b1d1d08f43218db9a2a780b71c665c18",
Donald Chaib69e1e52020-08-03 12:34:17 -0700612 "android_tools_pkg-0.19.0rc3.tar.gz": "ea5c0589a01e2a9f43c20e5c145d3530e3b3bdbe7322789bc5da38d0ca49b837",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800613 # bazelbuild/bazel-skylib
philwo7fcc26c2020-11-09 07:36:18 -0800614 "bazel-skylib-1.0.3.tar.gz": "1c531376ac7e5a180e0237938a2536de0c54d93f5c278634818e0efc952dd56c",
hlopkoaaf64572019-06-14 02:33:56 -0700615 # bazelbuild/platforms
aldersondrive64235c32019-11-18 08:50:39 -0800616 "46993efdd33b73649796c5fc5c9efb193ae19d51.zip": "66184688debeeefcc2a16a2f80b03f514deac8346fe888fb7e691a52c023dd88",
iirinae8260492019-07-03 05:16:09 -0700617 # bazelbuild/rules_java
618 "7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip": "bc81f1ba47ef5cc68ad32225c3d0e70b8c6f6077663835438da8d5733f917598",
oquenchil96068872019-07-08 07:01:39 -0700619 # bazelbuild/rules_cc
Marcel Hlopko02d19662019-11-11 21:55:16 -0800620 "8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip": "1d4dbbd1e1e9b57d40bb0ade51c9e882da7658d5bfbf22bbd15b68e7879d761f",
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700621 # bazelbuild/rules_proto
Yannic Bonenberger829b0852020-10-28 10:37:35 -0700622 "7e4afce6fe62dbff0a4a03450143146f9f2d7488.tar.gz": "8e7d59a5b12b233be5652e3d29f42fba01c7cbab09f6b3a8d0a57ed6d1e9a0da",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800623 # protocolbuffers/protobuf
Yannic Bonenbergerc656e652020-09-17 03:14:25 -0700624 "v3.13.0.tar.gz": "9b4ee22c250fe31b16f1a24d61467e40780a3fbb9b91c3b65be2a376ed913a1a",
Yun Penge2f11d72020-06-03 09:16:35 -0700625 # grpc/grpc
Dmitry Ivankova33de172020-10-16 05:00:01 -0700626 "v1.32.0.tar.gz": "f880ebeb2ccf0e47721526c10dd97469200e40b5f101a0d9774eb69efa0bd07a",
Yun Penge2f11d72020-06-03 09:16:35 -0700627 # c-ares/c-ares
628 "e982924acee7f7313b4baa4ee5ec000c5e373c30.tar.gz": "e8c2751ddc70fed9dc6f999acd92e232d5846f009ee1674f8aee81f19b2b915a",
629 # protocolbuffers/upb
Dmitry Ivankova33de172020-10-16 05:00:01 -0700630 "382d5afc60e05470c23e8de19b19fc5ad231e732.tar.gz": "7992217989f3156f8109931c1fc6db3434b7414957cb82371552377beaeb9d6c",
Dmitry Ivankova74096f2020-10-09 06:16:02 -0700631 # google/re2
632 "aecba11114cf1fac5497aeb844b6966106de3eb6.tar.gz": "9f385e146410a8150b6f4cb1a57eab7ec806ced48d427554b1e754877ff26c3e",
633 # abseil/abseil-cpp
634 "df3ea785d8c30a9503321a3d35ee7d35808f190d.tar.gz": "f368a8476f4e2e0eccf8a7318b98dafbe30b2600f4e3cf52636e5eb145aba06a",
philwo75edd782019-01-29 05:02:44 -0800635 },
636 urls = {
Ivo Listc2825262020-11-05 08:29:50 -0800637 "java_tools_javac11_linux-v10.3.zip": ["https://mirror.bazel.build/bazel_java_tools/releases/javac11/v10.3/java_tools_javac11_linux-v10.3.zip"],
638 "java_tools_javac11_windows-v10.3.zip": ["https://mirror.bazel.build/bazel_java_tools/releases/javac11/v10.3/java_tools_javac11_windows-v10.3.zip"],
639 "java_tools_javac11_darwin-v10.3.zip": ["https://mirror.bazel.build/bazel_java_tools/releases/javac11/v10.3/java_tools_javac11_darwin-v10.3.zip"],
Charles Mitae9d883f2020-10-01 06:00:50 -0700640 "coverage_output_generator-v2.5.zip": ["https://mirror.bazel.build/bazel_coverage_output_generator/releases/coverage_output_generator-v2.5.zip"],
philwo3ac4af42020-02-14 07:58:55 -0800641 "zulu11.37.17-ca-jdk11.0.6-linux_x64.tar.gz": ["https://mirror.bazel.build/openjdk/azul-zulu11.37.17-ca-jdk11.0.6/zulu11.37.17-ca-jdk11.0.6-linux_x64.tar.gz"],
642 "zulu11.37.48-ca-jdk11.0.6-linux_aarch64.tar.gz": ["https://mirror.bazel.build/openjdk/azul-zulu11.37.48-ca-jdk11.0.6/zulu11.37.48-ca-jdk11.0.6-linux_aarch64.tar.gz"],
643 "zulu11.37.17-ca-jdk11.0.6-macosx_x64.tar.gz": ["https://mirror.bazel.build/openjdk/azul-zulu11.37.17-ca-jdk11.0.6/zulu11.37.17-ca-jdk11.0.6-macosx_x64.tar.gz"],
644 "zulu11.37.17-ca-jdk11.0.6-win_x64.zip": ["https://mirror.bazel.build/openjdk/azul-zulu11.37.17-ca-jdk11.0.6/zulu11.37.17-ca-jdk11.0.6-win_x64.zip"],
Donald Chaib69e1e52020-08-03 12:34:17 -0700645 "android_tools_pkg-0.19.0rc3.tar.gz": [
646 "https://mirror.bazel.build/bazel_android_tools/android_tools_pkg-0.19.0rc3.tar.gz",
Jingwen Chen186929e2019-04-02 10:38:30 -0700647 ],
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800648 # bazelbuild/bazel-skylib
philwo7fcc26c2020-11-09 07:36:18 -0800649 "bazel-skylib-1.0.3.tar.gz": [
650 "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.0.3/bazel-skylib-1.0.3.tar.gz",
651 "https://github.com/bazelbuild/bazel-skylib/releases/download/1.0.3/bazel-skylib-1.0.3.tar.gz",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800652 ],
hlopkoaaf64572019-06-14 02:33:56 -0700653 # bazelbuild/platforms
aldersondrive64235c32019-11-18 08:50:39 -0800654 "46993efdd33b73649796c5fc5c9efb193ae19d51.zip": [
655 "https://mirror.bazel.build/github.com/bazelbuild/platforms/archive/46993efdd33b73649796c5fc5c9efb193ae19d51.zip",
656 "https://github.com/bazelbuild/platforms/archive/46993efdd33b73649796c5fc5c9efb193ae19d51.zip",
hlopkoaaf64572019-06-14 02:33:56 -0700657 ],
iirinae8260492019-07-03 05:16:09 -0700658 # bazelbuild/rules_java
659 "7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip": [
oquenchil96068872019-07-08 07:01:39 -0700660 "https://mirror.bazel.build/github.com/bazelbuild/rules_java/archive/7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
Jakob Buchgraber60df9052019-07-11 06:08:00 -0700661 "https://github.com/bazelbuild/rules_java/archive/7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
oquenchil96068872019-07-08 07:01:39 -0700662 ],
663 # bazelbuild/rules_cc
Marcel Hlopko02d19662019-11-11 21:55:16 -0800664 "8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip": [
665 "https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip",
666 "https://github.com/bazelbuild/rules_cc/archive/8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip",
oquenchil96068872019-07-08 07:01:39 -0700667 ],
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700668 # bazelbuild/rules_proto
Yannic Bonenberger829b0852020-10-28 10:37:35 -0700669 "7e4afce6fe62dbff0a4a03450143146f9f2d7488.tar.gz": [
670 "https://mirror.bazel.build/github.com/bazelbuild/rules_proto/archive/7e4afce6fe62dbff0a4a03450143146f9f2d7488.tar.gz",
671 "https://github.com/bazelbuild/rules_proto/archive/7e4afce6fe62dbff0a4a03450143146f9f2d7488.tar.gz",
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700672 ],
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800673 # protocolbuffers/protobuf
Yannic Bonenbergerc656e652020-09-17 03:14:25 -0700674 "v3.13.0.tar.gz": [
675 "https://mirror.bazel.build/github.com/protocolbuffers/protobuf/archive/v3.13.0.tar.gz",
676 "https://github.com/protocolbuffers/protobuf/archive/v3.13.0.tar.gz",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800677 ],
Yun Penge2f11d72020-06-03 09:16:35 -0700678 # grpc/grpc
Dmitry Ivankova33de172020-10-16 05:00:01 -0700679 "v1.32.0.tar.gz": [
philwoaf3bd4a2020-11-09 07:32:38 -0800680 "https://mirror.bazel.build/github.com/grpc/grpc/archive/v1.32.0.tar.gz",
Dmitry Ivankova33de172020-10-16 05:00:01 -0700681 "https://github.com/grpc/grpc/archive/v1.32.0.tar.gz",
Yun Penge2f11d72020-06-03 09:16:35 -0700682 ],
683 # c-ares/c-ares
684 "e982924acee7f7313b4baa4ee5ec000c5e373c30.tar.gz": [
685 "https://mirror.bazel.build/github.com/c-ares/c-ares/archive/e982924acee7f7313b4baa4ee5ec000c5e373c30.tar.gz",
686 "https://github.com/c-ares/c-ares/archive/e982924acee7f7313b4baa4ee5ec000c5e373c30.tar.gz",
687 ],
688 # protocolbuffers/upb
Dmitry Ivankova33de172020-10-16 05:00:01 -0700689 "382d5afc60e05470c23e8de19b19fc5ad231e732.tar.gz": [
690 "https://mirror.bazel.build/github.com/protocolbuffers/upb/archive/382d5afc60e05470c23e8de19b19fc5ad231e732.tar.gz",
691 "https://github.com/protocolbuffers/upb/archive/382d5afc60e05470c23e8de19b19fc5ad231e732.tar.gz",
Dmitry Ivankova74096f2020-10-09 06:16:02 -0700692 ],
693 # google/re2
694 "aecba11114cf1fac5497aeb844b6966106de3eb6.tar.gz": [
695 "https://mirror.bazel.build/github.com/google/re2/archive/aecba11114cf1fac5497aeb844b6966106de3eb6.tar.gz",
696 "https://github.com/google/re2/archive/aecba11114cf1fac5497aeb844b6966106de3eb6.tar.gz",
697 ],
698 # abseil/abseil-cpp
699 "df3ea785d8c30a9503321a3d35ee7d35808f190d.tar.gz": [
700 "https://mirror.bazel.build/github.com/abseil/abseil-cpp/archive/df3ea785d8c30a9503321a3d35ee7d35808f190d.tar.gz",
701 "https://github.com/abseil/abseil-cpp/archive/df3ea785d8c30a9503321a3d35ee7d35808f190d.tar.gz",
Yun Penge2f11d72020-06-03 09:16:35 -0700702 ],
philwo75edd782019-01-29 05:02:44 -0800703 },
Klaus Aehligacafe5a2018-10-24 03:16:42 -0700704)
Jingwen Chen186bdcd2018-12-14 10:27:23 -0800705
706load("//scripts/docs:doc_versions.bzl", "DOC_VERSIONS")
707
Jingwen Chen762c27d2020-05-14 03:07:03 -0700708# Load versioned documentation tarballs from GCS
Jingwen Chen186bdcd2018-12-14 10:27:23 -0800709[http_file(
Jingwen Chend3a5fd62020-05-05 14:43:23 -0700710 # Split on "-" to get the version without cherrypick commits.
711 name = "jekyll_tree_%s" % DOC_VERSION["version"].split("-")[0].replace(".", "_"),
Jingwen Chen186bdcd2018-12-14 10:27:23 -0800712 sha256 = DOC_VERSION["sha256"],
713 urls = ["https://mirror.bazel.build/bazel_versioned_docs/jekyll-tree-%s.tar" % DOC_VERSION["version"]],
714) for DOC_VERSION in DOC_VERSIONS]
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700715
Jingwen Chen762c27d2020-05-14 03:07:03 -0700716# Load shared base CSS theme from bazelbuild/bazel-website
717http_archive(
718 name = "bazel_website",
Jingwen Chen762c27d2020-05-14 03:07:03 -0700719 # TODO(https://github.com/bazelbuild/bazel/issues/10793)
720 # - Export files from bazel-website's BUILD, instead of doing it here.
721 # - Share more common stylesheets, like footer and navbar.
722 build_file_content = """
723exports_files(["_sass/style.scss"])
Ivo List4c6c9992020-09-23 09:25:05 -0700724""",
725 sha256 = "a5f531dd1d62e6947dcfc279656ffc2fdf6f447c163914c5eabf7961b4cb6eb4",
726 strip_prefix = "bazel-website-c174fa288aa079b68416d2ce2cc97268fa172f42",
727 urls = ["https://github.com/bazelbuild/bazel-website/archive/c174fa288aa079b68416d2ce2cc97268fa172f42.tar.gz"],
Jingwen Chen762c27d2020-05-14 03:07:03 -0700728)
729
wyv8062ca42020-05-25 00:21:00 -0700730# Stardoc recommends declaring its dependencies via "*_dependencies" functions.
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700731# This requires that the repositories these functions come from need to be
732# fetched unconditionally for everything (including just building bazel!), so
733# provide them as http_archives that can be shiped in the distdir, to keep the
734# distribution archive self-contained.
735http_archive(
736 name = "io_bazel_rules_sass",
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800737 sha256 = "c78be58f5e0a29a04686b628cf54faaee0094322ae0ac99da5a8a8afca59a647",
John Caterf47f83e2020-05-04 05:16:00 -0700738 strip_prefix = "rules_sass-1.25.0",
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700739 urls = [
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800740 "https://mirror.bazel.build/github.com/bazelbuild/rules_sass/archive/1.25.0.zip",
741 "https://github.com/bazelbuild/rules_sass/archive/1.25.0.zip",
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700742 ],
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700743)
iirinaf5c334262019-03-19 02:44:59 -0700744
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700745http_archive(
746 name = "build_bazel_rules_nodejs",
philwo3ff7def2020-11-09 07:30:06 -0800747 sha256 = "f2194102720e662dbf193546585d705e645314319554c6ce7e47d8b59f459e9c",
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700748 urls = [
philwo3ff7def2020-11-09 07:30:06 -0800749 "https://mirror.bazel.build/github.com/bazelbuild/rules_nodejs/releases/download/2.2.2/rules_nodejs-2.2.2.tar.gz",
750 "https://github.com/bazelbuild/rules_nodejs/releases/download/2.2.2/rules_nodejs-2.2.2.tar.gz",
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700751 ],
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700752)
753
iirina3ab4dbc2019-04-29 05:12:39 -0700754http_archive(
iirinaa6e92602019-05-13 06:20:12 -0700755 name = "java_tools_langtools_javac11",
iirinab815b792019-07-17 05:47:01 -0700756 sha256 = "cf0814fa002ef3d794582bb086516d8c9ed0958f83f19799cdb08949019fe4c7",
iirinaa6e92602019-05-13 06:20:12 -0700757 urls = [
iirinab815b792019-07-17 05:47:01 -0700758 "https://mirror.bazel.build/bazel_java_tools/jdk_langtools/langtools_jdk11_v2.zip",
iirinaa6e92602019-05-13 06:20:12 -0700759 ],
760)
761
iirina0eec6932019-06-12 07:48:22 -0700762http_archive(
hlopkoaaf64572019-06-14 02:33:56 -0700763 name = "platforms",
aldersondrive64235c32019-11-18 08:50:39 -0800764 sha256 = "66184688debeeefcc2a16a2f80b03f514deac8346fe888fb7e691a52c023dd88",
765 strip_prefix = "platforms-46993efdd33b73649796c5fc5c9efb193ae19d51",
hlopkoaaf64572019-06-14 02:33:56 -0700766 urls = [
aldersondrive64235c32019-11-18 08:50:39 -0800767 "https://mirror.bazel.build/github.com/bazelbuild/platforms/archive/46993efdd33b73649796c5fc5c9efb193ae19d51.zip",
768 "https://github.com/bazelbuild/platforms/archive/46993efdd33b73649796c5fc5c9efb193ae19d51.zip",
hlopkoaaf64572019-06-14 02:33:56 -0700769 ],
hlopkoaaf64572019-06-14 02:33:56 -0700770)
771
philwo17506af2020-01-28 04:20:39 -0800772# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/android/android_remote_tools.WORKSPACE
773http_archive(
774 name = "android_tools_for_testing",
775 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
776 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
Ivo List4c6c9992020-09-23 09:25:05 -0700777 sha256 = "ea5c0589a01e2a9f43c20e5c145d3530e3b3bdbe7322789bc5da38d0ca49b837", # DO_NOT_REMOVE_THIS_ANDROID_TOOLS_UPDATE_MARKER
Donald Chaib69e1e52020-08-03 12:34:17 -0700778 url = "https://mirror.bazel.build/bazel_android_tools/android_tools_pkg-0.19.0rc3.tar.gz",
philwo17506af2020-01-28 04:20:39 -0800779)
780
781# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/coverage.WORKSPACE.
782http_archive(
783 name = "remote_coverage_tools_for_testing",
784 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
785 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
Charles Mitae9d883f2020-10-01 06:00:50 -0700786 sha256 = "cd14f1cb4559e4723e63b7e7b06d09fcc3bd7ba58d03f354cdff1439bd936a7d",
philwo17506af2020-01-28 04:20:39 -0800787 urls = [
Charles Mitae9d883f2020-10-01 06:00:50 -0700788 "https://mirror.bazel.build/bazel_coverage_output_generator/releases/coverage_output_generator-v2.5.zip",
philwo17506af2020-01-28 04:20:39 -0800789 ],
790)
791
792# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
793http_archive(
philwo17506af2020-01-28 04:20:39 -0800794 name = "remotejdk11_linux_for_testing",
795 build_file = "@local_jdk//:BUILD.bazel",
796 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
797 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
philwo8b1ef422020-02-14 08:26:00 -0800798 sha256 = "360626cc19063bc411bfed2914301b908a8f77a7919aaea007a977fa8fb3cde1",
799 strip_prefix = "zulu11.37.17-ca-jdk11.0.6-linux_x64",
800 urls = ["https://mirror.bazel.build/openjdk/azul-zulu11.37.17-ca-jdk11.0.6/zulu11.37.17-ca-jdk11.0.6-linux_x64.tar.gz"],
philwo17506af2020-01-28 04:20:39 -0800801)
802
803# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
804http_archive(
805 name = "remotejdk11_linux_aarch64_for_testing",
806 build_file = "@local_jdk//:BUILD.bazel",
807 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
808 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
philwo8b1ef422020-02-14 08:26:00 -0800809 sha256 = "a452f1b9682d9f83c1c14e54d1446e1c51b5173a3a05dcb013d380f9508562e4",
810 strip_prefix = "zulu11.37.48-ca-jdk11.0.6-linux_aarch64",
811 urls = ["https://mirror.bazel.build/openjdk/azul-zulu11.37.48-ca-jdk11.0.6/zulu11.37.48-ca-jdk11.0.6-linux_aarch64.tar.gz"],
philwo17506af2020-01-28 04:20:39 -0800812)
813
814# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
815http_archive(
Jason Furmanek04e073e2020-05-28 05:48:09 -0700816 name = "remotejdk11_linux_ppc64le_for_testing",
817 build_file = "@local_jdk//:BUILD.bazel",
818 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
819 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
820 sha256 = "a417db0295b1f4b538ecbaf7c774f3a177fab9657a665940170936c0eca4e71a",
821 strip_prefix = "jdk-11.0.7+10",
822 urls = [
philwo66d84ef2020-06-05 06:52:20 -0700823 "https://mirror.bazel.build/openjdk/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.7+10/OpenJDK11U-jdk_ppc64le_linux_hotspot_11.0.7_10.tar.gz",
824 "https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.7+10/OpenJDK11U-jdk_ppc64le_linux_hotspot_11.0.7_10.tar.gz",
Jason Furmanek04e073e2020-05-28 05:48:09 -0700825 ],
826)
827
828# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
829http_archive(
Ruixin Baoe14a6f22020-08-21 06:17:24 -0700830 name = "remotejdk11_linux_s390x_for_testing",
831 build_file = "@local_jdk//:BUILD.bazel",
832 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
833 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
834 sha256 = "d9b72e87a1d3ebc0c9552f72ae5eb150fffc0298a7cb841f1ce7bfc70dcd1059",
835 strip_prefix = "jdk-11.0.7+10",
836 urls = [
837 "https://mirror.bazel.build/github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.7+10/OpenJDK11U-jdk_s390x_linux_hotspot_11.0.7_10.tar.gz",
838 "https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.7+10/OpenJDK11U-jdk_s390x_linux_hotspot_11.0.7_10.tar.gz",
839 ],
840)
841
842# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
843http_archive(
philwo17506af2020-01-28 04:20:39 -0800844 name = "remotejdk11_macos_for_testing",
845 build_file = "@local_jdk//:BUILD.bazel",
846 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
847 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
philwo8b1ef422020-02-14 08:26:00 -0800848 sha256 = "e1fe56769f32e2aaac95e0a8f86b5a323da5af3a3b4bba73f3086391a6cc056f",
849 strip_prefix = "zulu11.37.17-ca-jdk11.0.6-macosx_x64",
850 urls = ["https://mirror.bazel.build/openjdk/azul-zulu11.37.17-ca-jdk11.0.6/zulu11.37.17-ca-jdk11.0.6-macosx_x64.tar.gz"],
philwo17506af2020-01-28 04:20:39 -0800851)
852
853# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
854http_archive(
855 name = "remotejdk11_win_for_testing",
856 build_file = "@local_jdk//:BUILD.bazel",
857 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
858 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
philwo8b1ef422020-02-14 08:26:00 -0800859 sha256 = "a9695617b8374bfa171f166951214965b1d1d08f43218db9a2a780b71c665c18",
860 strip_prefix = "zulu11.37.17-ca-jdk11.0.6-win_x64",
861 urls = ["https://mirror.bazel.build/openjdk/azul-zulu11.37.17-ca-jdk11.0.6/zulu11.37.17-ca-jdk11.0.6-win_x64.zip"],
philwo17506af2020-01-28 04:20:39 -0800862)
863
864# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
865http_archive(
David Ostrovskyfe291f72020-07-23 04:08:29 -0700866 name = "remotejdk14_linux_for_testing",
867 build_file = "@local_jdk//:BUILD.bazel",
868 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
869 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
870 sha256 = "48bb8947034cd079ad1ef83335e7634db4b12a26743a0dc314b6b861480777aa",
871 strip_prefix = "zulu14.28.21-ca-jdk14.0.1-linux_x64",
872 urls = ["https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu14.28.21-ca-jdk14.0.1-linux_x64.tar.gz"],
873)
874
875# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
876http_archive(
877 name = "remotejdk14_macos_for_testing",
878 build_file = "@local_jdk//:BUILD.bazel",
879 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
880 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
881 sha256 = "088bd4d0890acc9f032b738283bf0f26b2a55c50b02d1c8a12c451d8ddf080dd",
882 strip_prefix = "zulu14.28.21-ca-jdk14.0.1-macosx_x64",
883 urls = ["https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu14.28.21-ca-jdk14.0.1-macosx_x64.tar.gz"],
884)
885
886# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
887http_archive(
888 name = "remotejdk14_win_for_testing",
889 build_file = "@local_jdk//:BUILD.bazel",
890 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
891 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
892 sha256 = "9cb078b5026a900d61239c866161f0d9558ec759aa15c5b4c7e905370e868284",
893 strip_prefix = "zulu14.28.21-ca-jdk14.0.1-win_x64",
894 urls = ["https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu14.28.21-ca-jdk14.0.1-win_x64.zip"],
895)
896
897# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
898http_archive(
Jonathan Perry94505522020-10-07 12:45:34 -0700899 name = "remotejdk15_linux_for_testing",
900 build_file = "@local_jdk//:BUILD.bazel",
901 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
902 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
Dmitry Ivankov0bc92a02020-10-19 03:26:33 -0700903 sha256 = "0a38f1138c15a4f243b75eb82f8ef40855afcc402e3c2a6de97ce8235011b1ad",
Ivo List3f460b42020-10-27 05:48:19 -0700904 strip_prefix = "zulu15.27.17-ca-jdk15.0.0-linux_x64",
Jonathan Perry94505522020-10-07 12:45:34 -0700905 urls = [
906 "https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu15.27.17-ca-jdk15.0.0-linux_x64.tar.gz",
907 "https://cdn.azul.com/zulu/bin/zulu15.27.17-ca-jdk15.0.0-linux_x64.tar.gz",
908 ],
909)
910
911# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
912http_archive(
913 name = "remotejdk15_macos_for_testing",
914 build_file = "@local_jdk//:BUILD.bazel",
915 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
916 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
Dmitry Ivankov0bc92a02020-10-19 03:26:33 -0700917 sha256 = "f80b2e0512d9d8a92be24497334c974bfecc8c898fc215ce0e76594f00437482",
Ivo List3f460b42020-10-27 05:48:19 -0700918 strip_prefix = "zulu15.27.17-ca-jdk15.0.0-macosx_x64",
Jonathan Perry94505522020-10-07 12:45:34 -0700919 urls = [
920 "https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu15.27.17-ca-jdk15.0.0-macosx_x64.tar.gz",
921 "https://cdn.azul.com/zulu/bin/zulu15.27.17-ca-jdk15.0.0-macosx_x64.tar.gz",
922 ],
923)
924
925# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
926http_archive(
927 name = "remotejdk15_win_for_testing",
928 build_file = "@local_jdk//:BUILD.bazel",
929 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
930 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
Dmitry Ivankov0bc92a02020-10-19 03:26:33 -0700931 sha256 = "f535a530151e6c20de8a3078057e332b08887cb3ba1a4735717357e72765cad6",
Ivo List3f460b42020-10-27 05:48:19 -0700932 strip_prefix = "zulu15.27.17-ca-jdk15.0.0-win_x64",
Jonathan Perry94505522020-10-07 12:45:34 -0700933 urls = [
934 "https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu15.27.17-ca-jdk15.0.0-win_x64.zip",
935 "https://cdn.azul.com/zulu/bin/zulu15.27.17-ca-jdk15.0.0-win_x64.zip",
936 ],
937)
938
939# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
940http_archive(
philwo17506af2020-01-28 04:20:39 -0800941 name = "remote_java_tools_linux_for_testing",
942 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
943 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
Ivo Listc2825262020-11-05 08:29:50 -0800944 sha256 = "bd6e8b7091c1f61f2de7dfdf0c47996ffb019582f7c4147a851f59eee7c04e15",
philwo17506af2020-01-28 04:20:39 -0800945 urls = [
Ivo Listc2825262020-11-05 08:29:50 -0800946 "https://mirror.bazel.build/bazel_java_tools/releases/javac11/v10.3/java_tools_javac11_linux-v10.3.zip",
947 "https://github.com/bazelbuild/java_tools/releases/download/javac11_v10.3/java_tools_javac11_linux-v10.3.zip",
philwo17506af2020-01-28 04:20:39 -0800948 ],
949)
950
951# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
952http_archive(
953 name = "remote_java_tools_windows_for_testing",
954 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
955 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
Ivo Listc2825262020-11-05 08:29:50 -0800956 sha256 = "022cef618b138199d7b21740d495fbbd201483234b4818185aa6cdc6d162d9a4",
philwo17506af2020-01-28 04:20:39 -0800957 urls = [
Ivo Listc2825262020-11-05 08:29:50 -0800958 "https://mirror.bazel.build/bazel_java_tools/releases/javac11/v10.3/java_tools_javac11_windows-v10.3.zip",
959 "https://github.com/bazelbuild/java_tools/releases/download/javac11_v10.3/java_tools_javac11_windows-v10.3.zip",
philwo17506af2020-01-28 04:20:39 -0800960 ],
961)
962
963# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
964http_archive(
965 name = "remote_java_tools_darwin_for_testing",
966 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
967 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
Ivo Listc2825262020-11-05 08:29:50 -0800968 sha256 = "cd8f319b46876e7c3a814095ad9d91dd8589821480548ad48da11949f45a38e6",
philwo17506af2020-01-28 04:20:39 -0800969 urls = [
Ivo Listc2825262020-11-05 08:29:50 -0800970 "https://mirror.bazel.build/bazel_java_tools/releases/javac11/v10.3/java_tools_javac11_darwin-v10.3.zip",
971 "https://github.com/bazelbuild/java_tools/releases/download/javac11_v10.3/java_tools_javac11_darwin-v10.3.zip",
philwo17506af2020-01-28 04:20:39 -0800972 ],
973)
974
975# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
976http_archive(
philwo17506af2020-01-28 04:20:39 -0800977 name = "remote_java_tools_javac11_test_linux",
978 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
979 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
Ivo Listc2825262020-11-05 08:29:50 -0800980 sha256 = "bd6e8b7091c1f61f2de7dfdf0c47996ffb019582f7c4147a851f59eee7c04e15",
philwo17506af2020-01-28 04:20:39 -0800981 urls = [
Ivo Listc2825262020-11-05 08:29:50 -0800982 "https://mirror.bazel.build/bazel_java_tools/releases/javac11/v10.3/java_tools_javac11_linux-v10.3.zip",
philwo17506af2020-01-28 04:20:39 -0800983 ],
984)
985
986# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
987http_archive(
988 name = "remote_java_tools_javac11_test_windows",
989 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
990 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
Ivo Listc2825262020-11-05 08:29:50 -0800991 sha256 = "022cef618b138199d7b21740d495fbbd201483234b4818185aa6cdc6d162d9a4",
philwo17506af2020-01-28 04:20:39 -0800992 urls = [
Ivo Listc2825262020-11-05 08:29:50 -0800993 "https://mirror.bazel.build/bazel_java_tools/releases/javac11/v10.3/java_tools_javac11_windows-v10.3.zip",
philwo17506af2020-01-28 04:20:39 -0800994 ],
995)
996
997# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
998http_archive(
999 name = "remote_java_tools_javac11_test_darwin",
1000 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
1001 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
Ivo Listc2825262020-11-05 08:29:50 -08001002 sha256 = "cd8f319b46876e7c3a814095ad9d91dd8589821480548ad48da11949f45a38e6",
philwo17506af2020-01-28 04:20:39 -08001003 urls = [
Ivo Listc2825262020-11-05 08:29:50 -08001004 "https://mirror.bazel.build/bazel_java_tools/releases/javac11/v10.3/java_tools_javac11_darwin-v10.3.zip",
philwo17506af2020-01-28 04:20:39 -08001005 ],
1006)
1007
1008# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
1009http_archive(
philwo17506af2020-01-28 04:20:39 -08001010 name = "openjdk11_linux_archive",
1011 build_file_content = """
1012java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])
1013exports_files(["WORKSPACE"], visibility = ["//visibility:public"])
1014""",
philwo8b1ef422020-02-14 08:26:00 -08001015 sha256 = "360626cc19063bc411bfed2914301b908a8f77a7919aaea007a977fa8fb3cde1",
1016 strip_prefix = "zulu11.37.17-ca-jdk11.0.6-linux_x64",
1017 urls = ["https://mirror.bazel.build/openjdk/azul-zulu11.37.17-ca-jdk11.0.6/zulu11.37.17-ca-jdk11.0.6-linux_x64.tar.gz"],
philwo17506af2020-01-28 04:20:39 -08001018)
1019
1020# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
1021http_archive(
1022 name = "openjdk11_darwin_archive",
1023 build_file_content = """
1024java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])
1025exports_files(["WORKSPACE"], visibility = ["//visibility:public"])
1026""",
philwo8b1ef422020-02-14 08:26:00 -08001027 sha256 = "e1fe56769f32e2aaac95e0a8f86b5a323da5af3a3b4bba73f3086391a6cc056f",
1028 strip_prefix = "zulu11.37.17-ca-jdk11.0.6-macosx_x64",
1029 urls = ["https://mirror.bazel.build/openjdk/azul-zulu11.37.17-ca-jdk11.0.6/zulu11.37.17-ca-jdk11.0.6-macosx_x64.tar.gz"],
philwo17506af2020-01-28 04:20:39 -08001030)
1031
1032# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
1033http_archive(
1034 name = "openjdk11_windows_archive",
1035 build_file_content = """
1036java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])
1037exports_files(["WORKSPACE"], visibility = ["//visibility:public"])
1038""",
philwo8b1ef422020-02-14 08:26:00 -08001039 sha256 = "a9695617b8374bfa171f166951214965b1d1d08f43218db9a2a780b71c665c18",
1040 strip_prefix = "zulu11.37.17-ca-jdk11.0.6-win_x64",
1041 urls = ["https://mirror.bazel.build/openjdk/azul-zulu11.37.17-ca-jdk11.0.6/zulu11.37.17-ca-jdk11.0.6-win_x64.zip"],
philwo17506af2020-01-28 04:20:39 -08001042)
1043
David Ostrovskyfe291f72020-07-23 04:08:29 -07001044# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
1045http_archive(
1046 name = "openjdk14_linux_archive",
1047 build_file_content = """
1048java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])
1049exports_files(["WORKSPACE"], visibility = ["//visibility:public"])
1050""",
1051 sha256 = "48bb8947034cd079ad1ef83335e7634db4b12a26743a0dc314b6b861480777aa",
1052 strip_prefix = "zulu14.28.21-ca-jdk14.0.1-linux_x64",
1053 urls = ["https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu14.28.21-ca-jdk14.0.1-linux_x64.tar.gz"],
1054)
1055
1056# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
1057http_archive(
1058 name = "openjdk14_darwin_archive",
1059 build_file_content = """
1060java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])
1061exports_files(["WORKSPACE"], visibility = ["//visibility:public"])
1062""",
1063 sha256 = "088bd4d0890acc9f032b738283bf0f26b2a55c50b02d1c8a12c451d8ddf080dd",
1064 strip_prefix = "zulu14.28.21-ca-jdk14.0.1-macosx_x64",
1065 urls = ["https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu14.28.21-ca-jdk14.0.1-macosx_x64.tar.gz"],
1066)
1067
1068# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
1069http_archive(
1070 name = "openjdk14_windows_archive",
1071 build_file_content = """
1072java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])
1073exports_files(["WORKSPACE"], visibility = ["//visibility:public"])
1074""",
1075 sha256 = "9cb078b5026a900d61239c866161f0d9558ec759aa15c5b4c7e905370e868284",
1076 strip_prefix = "zulu14.28.21-ca-jdk14.0.1-win_x64",
1077 urls = ["https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu14.28.21-ca-jdk14.0.1-win_x64.zip"],
1078)
1079
Jonathan Perry94505522020-10-07 12:45:34 -07001080# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
1081http_archive(
1082 name = "openjdk15_linux_archive",
1083 build_file_content = """
1084java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])
1085exports_files(["WORKSPACE"], visibility = ["//visibility:public"])
1086""",
Dmitry Ivankov0bc92a02020-10-19 03:26:33 -07001087 sha256 = "0a38f1138c15a4f243b75eb82f8ef40855afcc402e3c2a6de97ce8235011b1ad",
Ivo List3f460b42020-10-27 05:48:19 -07001088 strip_prefix = "zulu15.27.17-ca-jdk15.0.0-linux_x64",
Jonathan Perry94505522020-10-07 12:45:34 -07001089 urls = [
1090 "https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu15.27.17-ca-jdk15.0.0-linux_x64.tar.gz",
1091 "https://cdn.azul.com/zulu/bin/zulu15.27.17-ca-jdk15.0.0-linux_x64.tar.gz",
1092 ],
1093)
1094
1095# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
1096http_archive(
1097 name = "openjdk15_darwin_archive",
1098 build_file_content = """
1099java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])
1100exports_files(["WORKSPACE"], visibility = ["//visibility:public"])
1101""",
Dmitry Ivankov0bc92a02020-10-19 03:26:33 -07001102 sha256 = "f80b2e0512d9d8a92be24497334c974bfecc8c898fc215ce0e76594f00437482",
Ivo List3f460b42020-10-27 05:48:19 -07001103 strip_prefix = "zulu15.27.17-ca-jdk15.0.0-macosx_x64",
Jonathan Perry94505522020-10-07 12:45:34 -07001104 urls = [
1105 "https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu15.27.17-ca-jdk15.0.0-macosx_x64.tar.gz",
1106 "https://cdn.azul.com/zulu/bin/zulu15.27.17-ca-jdk15.0.0-macosx_x64.tar.gz",
1107 ],
1108)
1109
1110# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
1111http_archive(
1112 name = "openjdk15_windows_archive",
1113 build_file_content = """
1114java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])
1115exports_files(["WORKSPACE"], visibility = ["//visibility:public"])
1116""",
Dmitry Ivankov0bc92a02020-10-19 03:26:33 -07001117 sha256 = "f535a530151e6c20de8a3078057e332b08887cb3ba1a4735717357e72765cad6",
Ivo List3f460b42020-10-27 05:48:19 -07001118 strip_prefix = "zulu15.27.17-ca-jdk15.0.0-win_x64",
Jonathan Perry94505522020-10-07 12:45:34 -07001119 urls = [
1120 "https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu15.27.17-ca-jdk15.0.0-win_x64.zip",
1121 "https://cdn.azul.com/zulu/bin/zulu15.27.17-ca-jdk15.0.0-win_x64.zip",
1122 ],
1123)
1124
wyv8062ca42020-05-25 00:21:00 -07001125load("@io_bazel_skydoc//:setup.bzl", "stardoc_repositories")
iirinaf5c334262019-03-19 02:44:59 -07001126
wyv8062ca42020-05-25 00:21:00 -07001127stardoc_repositories()
Klaus Aehlig6f52fca2019-03-18 03:43:40 -07001128
1129load("@io_bazel_rules_sass//:package.bzl", "rules_sass_dependencies")
iirinaf5c334262019-03-19 02:44:59 -07001130
Klaus Aehlig6f52fca2019-03-18 03:43:40 -07001131rules_sass_dependencies()
1132
Laurent Le Brunda3d9f02020-02-18 05:53:57 -08001133load("@build_bazel_rules_nodejs//:index.bzl", "node_repositories")
iirinaf5c334262019-03-19 02:44:59 -07001134
Klaus Aehlig6f52fca2019-03-18 03:43:40 -07001135node_repositories()
1136
1137load("@io_bazel_rules_sass//:defs.bzl", "sass_repositories")
iirinaf5c334262019-03-19 02:44:59 -07001138
Klaus Aehlig6f52fca2019-03-18 03:43:40 -07001139sass_repositories()
Jakob Buchgraber593c5302019-04-16 10:12:20 -07001140
Keith Smiley7fcbeec2019-04-23 17:06:02 -07001141register_execution_platforms("//:default_host_platform") # buildozer: disable=positional-args
Tony Aiutoed8a5ec2019-07-17 08:33:48 -07001142
1143# Tools for building deb, rpm and tar files.
1144http_archive(
1145 name = "rules_pkg",
philwo17506af2020-01-28 04:20:39 -08001146 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
1147 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
philwob14e4062020-01-27 03:02:32 -08001148 sha256 = "4ba8f4ab0ff85f2484287ab06c0d871dcb31cc54d439457d28fd4ae14b18450a",
Tony Aiutoed8a5ec2019-07-17 08:33:48 -07001149 urls = [
philwob14e4062020-01-27 03:02:32 -08001150 "https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.2.4/rules_pkg-0.2.4.tar.gz",
1151 "https://github.com/bazelbuild/rules_pkg/releases/download/0.2.4/rules_pkg-0.2.4.tar.gz",
Tony Aiutoed8a5ec2019-07-17 08:33:48 -07001152 ],
Tony Aiutoed8a5ec2019-07-17 08:33:48 -07001153)
iirinad26a3c12019-07-19 04:39:33 -07001154
Tony Aiutoed8a5ec2019-07-17 08:33:48 -07001155load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies")
iirinad26a3c12019-07-19 04:39:33 -07001156
Tony Aiutoed8a5ec2019-07-17 08:33:48 -07001157rules_pkg_dependencies()
Laszlo Csomor3e023182019-08-01 05:05:09 -07001158
1159# Toolchains for Resource Compilation (.rc files on Windows).
1160load("//src/main/res:winsdk_configure.bzl", "winsdk_configure")
1161
1162winsdk_configure(name = "local_config_winsdk")
1163
1164load("@local_config_winsdk//:toolchains.bzl", "register_local_rc_exe_toolchains")
1165
1166register_local_rc_exe_toolchains()
1167
1168register_toolchains("//src/main/res:empty_rc_toolchain")
Yun Peng01609b82020-05-04 11:12:33 -07001169
Yun Penge2f11d72020-06-03 09:16:35 -07001170http_archive(
1171 name = "com_github_grpc_grpc",
Ivo List4c6c9992020-09-23 09:25:05 -07001172 patch_args = ["-p1"],
Dmitry Ivankova33de172020-10-16 05:00:01 -07001173 patches = ["//third_party/grpc:grpc_1.32.0.patch"],
1174 sha256 = "f880ebeb2ccf0e47721526c10dd97469200e40b5f101a0d9774eb69efa0bd07a",
1175 strip_prefix = "grpc-1.32.0",
Yun Penge2f11d72020-06-03 09:16:35 -07001176 urls = [
philwoaf3bd4a2020-11-09 07:32:38 -08001177 "https://mirror.bazel.build/github.com/grpc/grpc/archive/v1.32.0.tar.gz",
Dmitry Ivankova33de172020-10-16 05:00:01 -07001178 "https://github.com/grpc/grpc/archive/v1.32.0.tar.gz",
Yun Penge2f11d72020-06-03 09:16:35 -07001179 ],
Yun Penge2f11d72020-06-03 09:16:35 -07001180)
1181
1182# Projects using gRPC as an external dependency must call both grpc_deps() and
1183# grpc_extra_deps().
1184load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps")
Ivo List4c6c9992020-09-23 09:25:05 -07001185
Yun Penge2f11d72020-06-03 09:16:35 -07001186grpc_deps()
1187
1188load("@com_github_grpc_grpc//bazel:grpc_extra_deps.bzl", "grpc_extra_deps")
Ivo List4c6c9992020-09-23 09:25:05 -07001189
Yun Penge2f11d72020-06-03 09:16:35 -07001190grpc_extra_deps()
1191
Yun Peng01609b82020-05-04 11:12:33 -07001192load("//tools/distributions/debian:deps.bzl", "debian_deps")
Ivo List4c6c9992020-09-23 09:25:05 -07001193
Yun Peng01609b82020-05-04 11:12:33 -07001194debian_deps()
Andrzej Guszak0f9a5922020-06-25 05:47:21 -07001195
1196load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
Ivo List4c6c9992020-09-23 09:25:05 -07001197
Andrzej Guszak0f9a5922020-06-25 05:47:21 -07001198bazel_skylib_workspace()