blob: 070b97616d2c989296912256831531db0159052a [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 Listcd3480e2020-11-18 06:22:24 -0800149 "java_tools_javac11_linux-v10.4.zip",
150 "java_tools_javac11_windows-v10.4.zip",
151 "java_tools_javac11_darwin-v10.4.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
aiutoea763e52020-11-12 04:25:44 -0800167 "b1c40e1de81913a3c40e5948f78719c28152486d.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",
cparsons871cd6f2018-08-16 09:10:38 -0700186 ],
cushonb6646232018-09-07 01:44:10 -0700187 dirname = "derived/distdir",
Klaus Aehlig3c9cd822018-05-24 03:35:42 -0700188 sha256 = {
Klaus Aehligd4a8a472018-12-06 07:34:02 -0800189 "e0b0291b2c51fbe5a7cfa14473a1ae850f94f021.zip": "fe2e04f91ce8c59d49d91b8102edc6627c6fa2906c1b0e7346f01419ec4f419d",
Ivo Listcd3480e2020-11-18 06:22:24 -0800190 "java_tools_javac11_linux-v10.4.zip": "7debb49457db2f10990f759b6984c6d4ccb4917a9a9fd402a6f224b5fb0e8e36",
191 "java_tools_javac11_windows-v10.4.zip": "3a7d802ccefffa6ecf6e190aaae081cf27fc0275e2a8dad7d3a943c63a4d0edc",
192 "java_tools_javac11_darwin-v10.4.zip": "587a7bc34c95a217a941b01a5a1f8ee48114fbe87e05872a41b7e019e5297a8a",
Charles Mitae9d883f2020-10-01 06:00:50 -0700193 "coverage_output_generator-v2.5.zip": "cd14f1cb4559e4723e63b7e7b06d09fcc3bd7ba58d03f354cdff1439bd936a7d",
wyv8062ca42020-05-25 00:21:00 -0700194 # bazelbuild/stardoc
195 "1ef781ced3b1443dca3ed05dec1989eca1a4e1cd.tar.gz": "5a725b777976b77aa122b707d1b6f0f39b6020f66cd427bb111a585599c857b1",
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800196 # rules_sass
197 "1.25.0.zip": "c78be58f5e0a29a04686b628cf54faaee0094322ae0ac99da5a8a8afca59a647",
198 # rules_nodejs
philwo3ff7def2020-11-09 07:30:06 -0800199 "rules_nodejs-2.2.2.tar.gz": "f2194102720e662dbf193546585d705e645314319554c6ce7e47d8b59f459e9c",
Donald Chaib69e1e52020-08-03 12:34:17 -0700200 "android_tools_pkg-0.19.0rc3.tar.gz": "ea5c0589a01e2a9f43c20e5c145d3530e3b3bdbe7322789bc5da38d0ca49b837",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800201 # bazelbuild/bazel-skylib
philwo7fcc26c2020-11-09 07:36:18 -0800202 "bazel-skylib-1.0.3.tar.gz": "1c531376ac7e5a180e0237938a2536de0c54d93f5c278634818e0efc952dd56c",
hlopkoaaf64572019-06-14 02:33:56 -0700203 # bazelbuild/platforms
aldersondrive64235c32019-11-18 08:50:39 -0800204 "46993efdd33b73649796c5fc5c9efb193ae19d51.zip": "66184688debeeefcc2a16a2f80b03f514deac8346fe888fb7e691a52c023dd88",
iirinae8260492019-07-03 05:16:09 -0700205 # bazelbuild/rules_java
206 "7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip": "bc81f1ba47ef5cc68ad32225c3d0e70b8c6f6077663835438da8d5733f917598",
oquenchil96068872019-07-08 07:01:39 -0700207 # bazelbuild/rules_cc
aiutoea763e52020-11-12 04:25:44 -0800208 "b1c40e1de81913a3c40e5948f78719c28152486d.zip": "d0c573b94a6ef20ef6ff20154a23d0efcb409fb0e1ff0979cec318dfe42f0cdd",
Jakob Buchgraber60df9052019-07-11 06:08:00 -0700209 # bazelbuild/bazel-toolchains
philwob7d98432020-05-29 06:41:31 -0700210 "bazel-toolchains-3.1.0.tar.gz": "726b5423e1c7a3866a3a6d68e7123b4a955e9fcbe912a51e0f737e6dab1d0af2",
iirinad26a3c12019-07-19 04:39:33 -0700211 # bazelbuild/rules_pkg
philwob14e4062020-01-27 03:02:32 -0800212 "rules_pkg-0.2.4.tar.gz": "4ba8f4ab0ff85f2484287ab06c0d871dcb31cc54d439457d28fd4ae14b18450a",
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700213 # bazelbuild/rules_proto
Yannic Bonenberger829b0852020-10-28 10:37:35 -0700214 "7e4afce6fe62dbff0a4a03450143146f9f2d7488.tar.gz": "8e7d59a5b12b233be5652e3d29f42fba01c7cbab09f6b3a8d0a57ed6d1e9a0da",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800215 # protocolbuffers/protobuf
Yannic Bonenbergerc656e652020-09-17 03:14:25 -0700216 "v3.13.0.tar.gz": "9b4ee22c250fe31b16f1a24d61467e40780a3fbb9b91c3b65be2a376ed913a1a",
Yun Penge2f11d72020-06-03 09:16:35 -0700217 # grpc/grpc
Dmitry Ivankova33de172020-10-16 05:00:01 -0700218 "v1.32.0.tar.gz": "f880ebeb2ccf0e47721526c10dd97469200e40b5f101a0d9774eb69efa0bd07a",
Yun Penge2f11d72020-06-03 09:16:35 -0700219 # c-ares/c-ares
220 "e982924acee7f7313b4baa4ee5ec000c5e373c30.tar.gz": "e8c2751ddc70fed9dc6f999acd92e232d5846f009ee1674f8aee81f19b2b915a",
221 # protocolbuffers/upb
Dmitry Ivankova33de172020-10-16 05:00:01 -0700222 "382d5afc60e05470c23e8de19b19fc5ad231e732.tar.gz": "7992217989f3156f8109931c1fc6db3434b7414957cb82371552377beaeb9d6c",
Dmitry Ivankova74096f2020-10-09 06:16:02 -0700223 # google/re2
224 "aecba11114cf1fac5497aeb844b6966106de3eb6.tar.gz": "9f385e146410a8150b6f4cb1a57eab7ec806ced48d427554b1e754877ff26c3e",
225 # abseil/abseil-cpp
226 "df3ea785d8c30a9503321a3d35ee7d35808f190d.tar.gz": "f368a8476f4e2e0eccf8a7318b98dafbe30b2600f4e3cf52636e5eb145aba06a",
cushonb6646232018-09-07 01:44:10 -0700227 },
228 urls = {
hlopko6b06acc2019-03-25 04:40:10 -0700229 "e0b0291b2c51fbe5a7cfa14473a1ae850f94f021.zip": [
230 "https://mirror.bazel.build/github.com/google/desugar_jdk_libs/archive/e0b0291b2c51fbe5a7cfa14473a1ae850f94f021.zip",
231 "https://github.com/google/desugar_jdk_libs/archive/e0b0291b2c51fbe5a7cfa14473a1ae850f94f021.zip",
232 ],
Ivo Listcd3480e2020-11-18 06:22:24 -0800233 "java_tools_javac11_linux-v10.4.zip": [
234 "https://mirror.bazel.build/bazel_java_tools/releases/javac11/v10.4/java_tools_javac11_linux-v10.4.zip",
hlopko6b06acc2019-03-25 04:40:10 -0700235 ],
Ivo Listcd3480e2020-11-18 06:22:24 -0800236 "java_tools_javac11_windows-v10.4.zip": [
237 "https://mirror.bazel.build/bazel_java_tools/releases/javac11/v10.4/java_tools_javac11_windows-v10.4.zip",
hlopko6b06acc2019-03-25 04:40:10 -0700238 ],
Ivo Listcd3480e2020-11-18 06:22:24 -0800239 "java_tools_javac11_darwin-v10.4.zip": [
240 "https://mirror.bazel.build/bazel_java_tools/releases/javac11/v10.4/java_tools_javac11_darwin-v10.4.zip",
hlopko6b06acc2019-03-25 04:40:10 -0700241 ],
Charles Mitae9d883f2020-10-01 06:00:50 -0700242 "coverage_output_generator-v2.5.zip": [
243 "https://mirror.bazel.build/bazel_coverage_output_generator/releases/coverage_output_generator-v2.5.zip",
iirinaec2b0802019-04-09 10:43:48 -0700244 ],
wyv8062ca42020-05-25 00:21:00 -0700245 "1ef781ced3b1443dca3ed05dec1989eca1a4e1cd.tar.gz": [
wyv408be522020-05-26 02:14:23 -0700246 "https://mirror.bazel.build/github.com/bazelbuild/stardoc/archive/1ef781ced3b1443dca3ed05dec1989eca1a4e1cd.tar.gz",
wyv8062ca42020-05-25 00:21:00 -0700247 "https://github.com/bazelbuild/stardoc/archive/1ef781ced3b1443dca3ed05dec1989eca1a4e1cd.tar.gz",
hlopko6b06acc2019-03-25 04:40:10 -0700248 ],
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800249 "1.25.0.zip": [
250 "https://mirror.bazel.build/github.com/bazelbuild/rules_sass/archive/1.25.0.zip",
251 "https://github.com/bazelbuild/rules_sass/archive/1.25.0.zip",
hlopko6b06acc2019-03-25 04:40:10 -0700252 ],
philwo3ff7def2020-11-09 07:30:06 -0800253 "rules_nodejs-2.2.2.tar.gz": [
254 "https://mirror.bazel.build/github.com/bazelbuild/rules_nodejs/releases/download/2.2.2/rules_nodejs-2.2.2.tar.gz",
255 "https://github.com/bazelbuild/rules_nodejs/releases/download/2.2.2/rules_nodejs-2.2.2.tar.gz",
hlopko6b06acc2019-03-25 04:40:10 -0700256 ],
Donald Chaib69e1e52020-08-03 12:34:17 -0700257 "android_tools_pkg-0.19.0rc3.tar.gz": [
258 "https://mirror.bazel.build/bazel_android_tools/android_tools_pkg-0.19.0rc3.tar.gz",
Jingwen Chen186929e2019-04-02 10:38:30 -0700259 ],
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800260 # bazelbuild/bazel-skylib
philwo7fcc26c2020-11-09 07:36:18 -0800261 "bazel-skylib-1.0.3.tar.gz": [
262 "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.0.3/bazel-skylib-1.0.3.tar.gz",
263 "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 -0800264 ],
hlopkoaaf64572019-06-14 02:33:56 -0700265 # bazelbuild/platforms
aldersondrive64235c32019-11-18 08:50:39 -0800266 "46993efdd33b73649796c5fc5c9efb193ae19d51.zip": [
267 "https://mirror.bazel.build/github.com/bazelbuild/platforms/archive/46993efdd33b73649796c5fc5c9efb193ae19d51.zip",
268 "https://github.com/bazelbuild/platforms/archive/46993efdd33b73649796c5fc5c9efb193ae19d51.zip",
hlopkoaaf64572019-06-14 02:33:56 -0700269 ],
iirinae8260492019-07-03 05:16:09 -0700270 # bazelbuild/rules_java
271 "7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip": [
oquenchil96068872019-07-08 07:01:39 -0700272 "https://mirror.bazel.build/github.com/bazelbuild/rules_java/archive/7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
iirinae8260492019-07-03 05:16:09 -0700273 "https://github.com/bazelbuild/rules_java/archive/7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
oquenchil96068872019-07-08 07:01:39 -0700274 ],
275 # bazelbuild/rules_cc
aiutoea763e52020-11-12 04:25:44 -0800276 "b1c40e1de81913a3c40e5948f78719c28152486d.zip": [
277 "https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/b1c40e1de81913a3c40e5948f78719c28152486d.zip",
278 "https://github.com/bazelbuild/rules_cc/archive/b1c40e1de81913a3c40e5948f78719c28152486d.zip",
oquenchil96068872019-07-08 07:01:39 -0700279 ],
Jakob Buchgraber60df9052019-07-11 06:08:00 -0700280 # bazelbuild/bazel-toolchains
philwob7d98432020-05-29 06:41:31 -0700281 "bazel-toolchains-3.1.0.tar.gz": [
282 "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 -0700283 "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 -0700284 ],
Tony Aiutoed8a5ec2019-07-17 08:33:48 -0700285 # bazelbuild/rules_pkg
philwob14e4062020-01-27 03:02:32 -0800286 "rules_pkg-0.2.4.tar.gz": [
287 "https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.2.4/rules_pkg-0.2.4.tar.gz",
288 "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 -0700289 ],
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700290 # bazelbuild/rules_proto
Yannic Bonenberger829b0852020-10-28 10:37:35 -0700291 "7e4afce6fe62dbff0a4a03450143146f9f2d7488.tar.gz": [
292 "https://mirror.bazel.build/github.com/bazelbuild/rules_proto/archive/7e4afce6fe62dbff0a4a03450143146f9f2d7488.tar.gz",
293 "https://github.com/bazelbuild/rules_proto/archive/7e4afce6fe62dbff0a4a03450143146f9f2d7488.tar.gz",
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700294 ],
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800295 # protocolbuffers/protobuf
Yannic Bonenbergerc656e652020-09-17 03:14:25 -0700296 "v3.13.0.tar.gz": [
297 "https://mirror.bazel.build/github.com/protocolbuffers/protobuf/archive/v3.13.0.tar.gz",
298 "https://github.com/protocolbuffers/protobuf/archive/v3.13.0.tar.gz",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800299 ],
Yun Penge2f11d72020-06-03 09:16:35 -0700300 # grpc/grpc
Dmitry Ivankova33de172020-10-16 05:00:01 -0700301 "v1.32.0.tar.gz": [
philwoaf3bd4a2020-11-09 07:32:38 -0800302 "https://mirror.bazel.build/github.com/grpc/grpc/archive/v1.32.0.tar.gz",
Dmitry Ivankova33de172020-10-16 05:00:01 -0700303 "https://github.com/grpc/grpc/archive/v1.32.0.tar.gz",
Yun Penge2f11d72020-06-03 09:16:35 -0700304 ],
305 # c-ares/c-ares
306 "e982924acee7f7313b4baa4ee5ec000c5e373c30.tar.gz": [
307 "https://mirror.bazel.build/github.com/c-ares/c-ares/archive/e982924acee7f7313b4baa4ee5ec000c5e373c30.tar.gz",
308 "https://github.com/c-ares/c-ares/archive/e982924acee7f7313b4baa4ee5ec000c5e373c30.tar.gz",
309 ],
310 # protocolbuffers/upb
Dmitry Ivankova33de172020-10-16 05:00:01 -0700311 "382d5afc60e05470c23e8de19b19fc5ad231e732.tar.gz": [
312 "https://mirror.bazel.build/github.com/protocolbuffers/upb/archive/382d5afc60e05470c23e8de19b19fc5ad231e732.tar.gz",
313 "https://github.com/protocolbuffers/upb/archive/382d5afc60e05470c23e8de19b19fc5ad231e732.tar.gz",
Dmitry Ivankova74096f2020-10-09 06:16:02 -0700314 ],
315 # google/re2
316 "aecba11114cf1fac5497aeb844b6966106de3eb6.tar.gz": [
317 "https://mirror.bazel.build/github.com/google/re2/archive/aecba11114cf1fac5497aeb844b6966106de3eb6.tar.gz",
318 "https://github.com/google/re2/archive/aecba11114cf1fac5497aeb844b6966106de3eb6.tar.gz",
319 ],
320 # abseil/abseil-cpp
321 "df3ea785d8c30a9503321a3d35ee7d35808f190d.tar.gz": [
322 "https://mirror.bazel.build/github.com/abseil/abseil-cpp/archive/df3ea785d8c30a9503321a3d35ee7d35808f190d.tar.gz",
323 "https://github.com/abseil/abseil-cpp/archive/df3ea785d8c30a9503321a3d35ee7d35808f190d.tar.gz",
Yun Penge2f11d72020-06-03 09:16:35 -0700324 ],
cushonb6646232018-09-07 01:44:10 -0700325 },
Klaus Aehlig3c9cd822018-05-24 03:35:42 -0700326)
327
Philipp Wollermann95048272017-03-17 15:11:58 +0000328# OpenJDK distributions used to create a version of Bazel bundled with the OpenJDK.
329http_file(
330 name = "openjdk_linux",
philwo75edd782019-01-29 05:02:44 -0800331 downloaded_file_path = "zulu-linux.tar.gz",
philwo3ac4af42020-02-14 07:58:55 -0800332 sha256 = "65bfe4e0ffa74a680ee4410db46b17e30cd9397b664a92a886599fe1f3530969",
333 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 +0000334)
335
Tobias Werth218e8f62018-12-13 04:44:35 -0800336http_file(
337 name = "openjdk_linux_vanilla",
philwo75edd782019-01-29 05:02:44 -0800338 downloaded_file_path = "zulu-linux-vanilla.tar.gz",
philwo3ac4af42020-02-14 07:58:55 -0800339 sha256 = "360626cc19063bc411bfed2914301b908a8f77a7919aaea007a977fa8fb3cde1",
340 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 -0800341)
342
Tobias Werthfbf8fb92019-01-09 11:22:11 -0800343http_file(
344 name = "openjdk_linux_minimal",
philwo75edd782019-01-29 05:02:44 -0800345 downloaded_file_path = "zulu-linux-minimal.tar.gz",
philwo3ac4af42020-02-14 07:58:55 -0800346 sha256 = "91f7d52f695c681d4e21499b4319d548aadef249a6b3053e306308992e1e29ae",
347 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 -0800348)
349
Philipp Wollermann95048272017-03-17 15:11:58 +0000350http_file(
philwo9f7fe692019-06-27 06:53:12 -0700351 name = "openjdk_linux_aarch64",
352 downloaded_file_path = "zulu-linux-aarch64.tar.gz",
philwo3ac4af42020-02-14 07:58:55 -0800353 sha256 = "6b245793087300db3ee82ab0d165614f193a73a60f2f011e347756c1e6ca5bac",
354 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 -0700355)
356
357http_file(
358 name = "openjdk_linux_aarch64_vanilla",
359 downloaded_file_path = "zulu-linux-aarch64-vanilla.tar.gz",
philwo3ac4af42020-02-14 07:58:55 -0800360 sha256 = "a452f1b9682d9f83c1c14e54d1446e1c51b5173a3a05dcb013d380f9508562e4",
361 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 -0700362)
363
364http_file(
365 name = "openjdk_linux_aarch64_minimal",
366 downloaded_file_path = "zulu-linux-aarch64-minimal.tar.gz",
philwo3ac4af42020-02-14 07:58:55 -0800367 sha256 = "06f6520a877704c77614bcfc4f846cc7cbcbf5eaad149bf7f19f4f16e285c9de",
368 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 -0700369)
370
371http_file(
Jason Furmanek04e073e2020-05-28 05:48:09 -0700372 name = "openjdk_linux_ppc64le_vanilla",
Ivo List4c6c9992020-09-23 09:25:05 -0700373 downloaded_file_path = "adoptopenjdk-ppc64le-vanilla.tar.gz",
Jason Furmanek04e073e2020-05-28 05:48:09 -0700374 sha256 = "a417db0295b1f4b538ecbaf7c774f3a177fab9657a665940170936c0eca4e71a",
375 urls = [
philwo66d84ef2020-06-05 06:52:20 -0700376 "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",
377 "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 -0700378 ],
379)
380
381http_file(
Ruixin Baoe14a6f22020-08-21 06:17:24 -0700382 name = "openjdk_linux_s390x_vanilla",
Ivo List4c6c9992020-09-23 09:25:05 -0700383 downloaded_file_path = "adoptopenjdk-s390x-vanilla.tar.gz",
Ruixin Baoe14a6f22020-08-21 06:17:24 -0700384 sha256 = "d9b72e87a1d3ebc0c9552f72ae5eb150fffc0298a7cb841f1ce7bfc70dcd1059",
385 urls = [
386 "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",
387 "https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.7+10/OpenJDK11U-jdk_s390x_linux_hotspot_11.0.7_10.tar.gz",
388 ],
389)
390
391http_file(
Philipp Wollermann95048272017-03-17 15:11:58 +0000392 name = "openjdk_macos",
philwo75edd782019-01-29 05:02:44 -0800393 downloaded_file_path = "zulu-macos.tar.gz",
philwo3ac4af42020-02-14 07:58:55 -0800394 sha256 = "8e283cfd23c7555be8e17295ed76eb8f00324c88ab904b8de37bbe08f90e569b",
395 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 +0000396)
397
398http_file(
Tobias Werth218e8f62018-12-13 04:44:35 -0800399 name = "openjdk_macos_vanilla",
philwo75edd782019-01-29 05:02:44 -0800400 downloaded_file_path = "zulu-macos-vanilla.tar.gz",
philwo3ac4af42020-02-14 07:58:55 -0800401 sha256 = "e1fe56769f32e2aaac95e0a8f86b5a323da5af3a3b4bba73f3086391a6cc056f",
402 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 -0800403)
404
405http_file(
Tobias Werthfbf8fb92019-01-09 11:22:11 -0800406 name = "openjdk_macos_minimal",
philwo75edd782019-01-29 05:02:44 -0800407 downloaded_file_path = "zulu-macos-minimal.tar.gz",
philwo3ac4af42020-02-14 07:58:55 -0800408 sha256 = "1bacb1c07035d4066d79f0b65b4ea0ebd1954f3662bdfe3618da382ac8fd23a6",
409 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 -0800410)
411
412http_file(
Philipp Wollermann95048272017-03-17 15:11:58 +0000413 name = "openjdk_win",
philwo75edd782019-01-29 05:02:44 -0800414 downloaded_file_path = "zulu-win.zip",
philwo3ac4af42020-02-14 07:58:55 -0800415 sha256 = "8e1604b3a27dcf639bc6d1a73103f1211848139e4cceb081d0a74a99e1e6f995",
416 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 +0000417)
Googler5f36bf82017-07-12 20:43:08 +0200418
Tobias Werth218e8f62018-12-13 04:44:35 -0800419http_file(
420 name = "openjdk_win_vanilla",
philwo75edd782019-01-29 05:02:44 -0800421 downloaded_file_path = "zulu-win-vanilla.zip",
philwo3ac4af42020-02-14 07:58:55 -0800422 sha256 = "a9695617b8374bfa171f166951214965b1d1d08f43218db9a2a780b71c665c18",
423 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 -0800424)
425
Tobias Werthfbf8fb92019-01-09 11:22:11 -0800426http_file(
427 name = "openjdk_win_minimal",
philwo75edd782019-01-29 05:02:44 -0800428 downloaded_file_path = "zulu-win-minimal.zip",
philwo3ac4af42020-02-14 07:58:55 -0800429 sha256 = "b90a713c9c2d9ea23cad44d2c2dfcc9af22faba9bde55dedc1c3bb9f556ac1ae",
430 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 -0800431)
432
Googler5f36bf82017-07-12 20:43:08 +0200433http_archive(
Keith Smiley7fcbeec2019-04-23 17:06:02 -0700434 name = "bazel_toolchains",
philwo17506af2020-01-28 04:20:39 -0800435 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
436 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
John Caterf47f83e2020-05-04 05:16:00 -0700437 sha256 = "726b5423e1c7a3866a3a6d68e7123b4a955e9fcbe912a51e0f737e6dab1d0af2",
438 strip_prefix = "bazel-toolchains-3.1.0",
Keith Smiley7fcbeec2019-04-23 17:06:02 -0700439 urls = [
philwob7d98432020-05-29 06:41:31 -0700440 "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 -0700441 "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 -0700442 ],
Googler5f36bf82017-07-12 20:43:08 +0200443)
ccalvarin1cbe62a2017-08-14 21:09:07 +0200444
Jakob Buchgraber60df9052019-07-11 06:08:00 -0700445load("@bazel_toolchains//rules:rbe_repo.bzl", "rbe_autoconfig")
446
447rbe_autoconfig(
448 name = "rbe_ubuntu1804_java11",
449 detect_java_home = True,
450 registry = "gcr.io",
philwo479857b2020-02-17 10:46:07 -0800451 repository = "bazel-public/ubuntu1804-bazel-java11",
452 tag = "latest",
Jakob Buchgraber60df9052019-07-11 06:08:00 -0700453)
454
455rbe_autoconfig(
456 name = "rbe_ubuntu1604_java8",
457 detect_java_home = True,
458 registry = "gcr.io",
philwo479857b2020-02-17 10:46:07 -0800459 repository = "bazel-public/ubuntu1604-bazel-java8",
460 tag = "latest",
Jakob Buchgraber3541ad62019-04-30 07:51:12 -0700461)
462
Googlerde0612a2019-03-07 06:06:55 -0800463# Creates toolchain configuration for remote execution with BuildKite CI
464# for rbe_ubuntu1604.
465# To run the tests with RBE on BuildKite CI uncomment the two lines below
466# load("@bazel_toolchains//rules:rbe_repo.bzl", "rbe_autoconfig")
467# rbe_autoconfig(name = "buildkite_config")
468
ccalvarin8e9f4a82018-03-23 08:19:37 -0700469http_archive(
470 name = "com_google_googletest",
Yannic Bonenberger5b4ab2d2019-10-15 05:38:04 -0700471 sha256 = "9dc9157a9a1551ec7a7e43daea9a694a0bb5fb8bec81235d8a1e6ef64c716dcb",
472 strip_prefix = "googletest-release-1.10.0",
ccalvarin8e9f4a82018-03-23 08:19:37 -0700473 urls = [
Yannic Bonenberger5b4ab2d2019-10-15 05:38:04 -0700474 "https://mirror.bazel.build/github.com/google/googletest/archive/release-1.10.0.tar.gz",
475 "https://github.com/google/googletest/archive/release-1.10.0.tar.gz",
ccalvarin8e9f4a82018-03-23 08:19:37 -0700476 ],
ccalvarin8e9f4a82018-03-23 08:19:37 -0700477)
478
cparsons871cd6f2018-08-16 09:10:38 -0700479http_archive(
480 name = "bazel_skylib",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800481 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
482 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
philwo7fcc26c2020-11-09 07:36:18 -0800483 sha256 = "1c531376ac7e5a180e0237938a2536de0c54d93f5c278634818e0efc952dd56c",
cparsons871cd6f2018-08-16 09:10:38 -0700484 urls = [
philwo7fcc26c2020-11-09 07:36:18 -0800485 "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.0.3/bazel-skylib-1.0.3.tar.gz",
486 "https://github.com/bazelbuild/bazel-skylib/releases/download/1.0.3/bazel-skylib-1.0.3.tar.gz",
cparsons871cd6f2018-08-16 09:10:38 -0700487 ],
cparsons871cd6f2018-08-16 09:10:38 -0700488)
cparsonsa5be6612018-08-27 13:21:21 -0700489
wyv8062ca42020-05-25 00:21:00 -0700490# Note that stardoc depends on being called io_bazel_skydoc
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700491# to work without being patched, as it hard-codes this name in its sources.
wyv8062ca42020-05-25 00:21:00 -0700492# TODO(wyv): Is the above still true? Try a different name and see if it works.
493# If it does, can we rename the workspace in bazelbuild/stardoc?
cparsonsa5be6612018-08-27 13:21:21 -0700494http_archive(
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700495 name = "io_bazel_skydoc",
wyv8062ca42020-05-25 00:21:00 -0700496 sha256 = "5a725b777976b77aa122b707d1b6f0f39b6020f66cd427bb111a585599c857b1",
497 strip_prefix = "stardoc-1ef781ced3b1443dca3ed05dec1989eca1a4e1cd",
wyv408be522020-05-26 02:14:23 -0700498 urls = [
499 "https://mirror.bazel.build/github.com/bazelbuild/stardoc/archive/1ef781ced3b1443dca3ed05dec1989eca1a4e1cd.tar.gz",
500 "https://github.com/bazelbuild/stardoc/archive/1ef781ced3b1443dca3ed05dec1989eca1a4e1cd.tar.gz",
501 ],
cparsonsa5be6612018-08-27 13:21:21 -0700502)
Klaus Aehligacafe5a2018-10-24 03:16:42 -0700503
John Catere2d67242020-10-16 07:45:45 -0700504# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
505# 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 -0700506http_archive(
507 name = "rules_cc",
philwo17506af2020-01-28 04:20:39 -0800508 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
509 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
aiutoea763e52020-11-12 04:25:44 -0800510 sha256 = "d0c573b94a6ef20ef6ff20154a23d0efcb409fb0e1ff0979cec318dfe42f0cdd",
511 strip_prefix = "rules_cc-b1c40e1de81913a3c40e5948f78719c28152486d",
oquenchil96068872019-07-08 07:01:39 -0700512 urls = [
aiutoea763e52020-11-12 04:25:44 -0800513 "https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/b1c40e1de81913a3c40e5948f78719c28152486d.zip",
514 "https://github.com/bazelbuild/rules_cc/archive/b1c40e1de81913a3c40e5948f78719c28152486d.zip",
oquenchil96068872019-07-08 07:01:39 -0700515 ],
516)
517
iirinab815b792019-07-17 05:47:01 -0700518http_archive(
519 name = "rules_java",
philwo17506af2020-01-28 04:20:39 -0800520 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
521 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
iirinab815b792019-07-17 05:47:01 -0700522 sha256 = "bc81f1ba47ef5cc68ad32225c3d0e70b8c6f6077663835438da8d5733f917598",
iirinad26a3c12019-07-19 04:39:33 -0700523 strip_prefix = "rules_java-7cf3cefd652008d0a64a419c34c13bdca6c8f178",
iirinab815b792019-07-17 05:47:01 -0700524 urls = [
iirinad26a3c12019-07-19 04:39:33 -0700525 "https://mirror.bazel.build/github.com/bazelbuild/rules_java/archive/7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
526 "https://github.com/bazelbuild/rules_java/archive/7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
iirinab815b792019-07-17 05:47:01 -0700527 ],
iirinab815b792019-07-17 05:47:01 -0700528)
529
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700530http_archive(
531 name = "rules_proto",
philwo17506af2020-01-28 04:20:39 -0800532 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
533 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
Yannic Bonenberger829b0852020-10-28 10:37:35 -0700534 sha256 = "8e7d59a5b12b233be5652e3d29f42fba01c7cbab09f6b3a8d0a57ed6d1e9a0da",
535 strip_prefix = "rules_proto-7e4afce6fe62dbff0a4a03450143146f9f2d7488",
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700536 urls = [
Yannic Bonenberger829b0852020-10-28 10:37:35 -0700537 "https://mirror.bazel.build/github.com/bazelbuild/rules_proto/archive/7e4afce6fe62dbff0a4a03450143146f9f2d7488.tar.gz",
538 "https://github.com/bazelbuild/rules_proto/archive/7e4afce6fe62dbff0a4a03450143146f9f2d7488.tar.gz",
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700539 ],
540)
541
Klaus Aehligacafe5a2018-10-24 03:16:42 -0700542# For testing, have an distdir_tar with all the archives implicit in every
543# WORKSPACE, to that they don't have to be refetched for every test
544# calling `bazel sync`.
545distdir_tar(
Jingwen Chen186929e2019-04-02 10:38:30 -0700546 name = "test_WORKSPACE_files",
philwo75edd782019-01-29 05:02:44 -0800547 archives = [
Ivo Listcd3480e2020-11-18 06:22:24 -0800548 "java_tools_javac11_linux-v10.4.zip",
549 "java_tools_javac11_windows-v10.4.zip",
550 "java_tools_javac11_darwin-v10.4.zip",
Charles Mitae9d883f2020-10-01 06:00:50 -0700551 "coverage_output_generator-v2.5.zip",
philwo3ac4af42020-02-14 07:58:55 -0800552 "zulu11.37.17-ca-jdk11.0.6-linux_x64.tar.gz",
553 "zulu11.37.48-ca-jdk11.0.6-linux_aarch64.tar.gz",
554 "zulu11.37.17-ca-jdk11.0.6-macosx_x64.tar.gz",
555 "zulu11.37.17-ca-jdk11.0.6-win_x64.zip",
Donald Chaib69e1e52020-08-03 12:34:17 -0700556 "android_tools_pkg-0.19.0rc3.tar.gz",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800557 # bazelbuild/bazel-skylib
philwo7fcc26c2020-11-09 07:36:18 -0800558 "bazel-skylib-1.0.3.tar.gz",
hlopkoaaf64572019-06-14 02:33:56 -0700559 # bazelbuild/platforms
aldersondrive64235c32019-11-18 08:50:39 -0800560 "46993efdd33b73649796c5fc5c9efb193ae19d51.zip",
iirinae8260492019-07-03 05:16:09 -0700561 # bazelbuild/rules_java
562 "7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
oquenchil96068872019-07-08 07:01:39 -0700563 # bazelbuild/rules_cc
aiutoea763e52020-11-12 04:25:44 -0800564 "b1c40e1de81913a3c40e5948f78719c28152486d.zip",
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700565 # bazelbuild/rules_proto
Yannic Bonenberger829b0852020-10-28 10:37:35 -0700566 "7e4afce6fe62dbff0a4a03450143146f9f2d7488.tar.gz",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800567 # protocolbuffers/protobuf
Yannic Bonenbergerc656e652020-09-17 03:14:25 -0700568 "v3.13.0.tar.gz",
Yun Penge2f11d72020-06-03 09:16:35 -0700569 # grpc/grpc
Dmitry Ivankova33de172020-10-16 05:00:01 -0700570 "v1.32.0.tar.gz",
Yun Penge2f11d72020-06-03 09:16:35 -0700571 # c-ares/c-ares
572 "e982924acee7f7313b4baa4ee5ec000c5e373c30.tar.gz",
573 # protocolbuffers/upb
Dmitry Ivankova33de172020-10-16 05:00:01 -0700574 "382d5afc60e05470c23e8de19b19fc5ad231e732.tar.gz",
Dmitry Ivankova74096f2020-10-09 06:16:02 -0700575 # google/re2
576 "aecba11114cf1fac5497aeb844b6966106de3eb6.tar.gz",
577 # abseil/abseil-cpp
578 "df3ea785d8c30a9503321a3d35ee7d35808f190d.tar.gz",
philwo75edd782019-01-29 05:02:44 -0800579 ],
Jingwen Chen186929e2019-04-02 10:38:30 -0700580 dirname = "test_WORKSPACE/distdir",
philwo75edd782019-01-29 05:02:44 -0800581 sha256 = {
Ivo Listcd3480e2020-11-18 06:22:24 -0800582 "java_tools_javac11_linux-v10.4.zip": "7debb49457db2f10990f759b6984c6d4ccb4917a9a9fd402a6f224b5fb0e8e36",
583 "java_tools_javac11_windows-v10.4.zip": "3a7d802ccefffa6ecf6e190aaae081cf27fc0275e2a8dad7d3a943c63a4d0edc",
584 "java_tools_javac11_darwin-v10.4.zip": "587a7bc34c95a217a941b01a5a1f8ee48114fbe87e05872a41b7e019e5297a8a",
Charles Mitae9d883f2020-10-01 06:00:50 -0700585 "coverage_output_generator-v2.5.zip": "cd14f1cb4559e4723e63b7e7b06d09fcc3bd7ba58d03f354cdff1439bd936a7d",
philwo3ac4af42020-02-14 07:58:55 -0800586 "zulu11.37.17-ca-jdk11.0.6-linux_x64.tar.gz": "360626cc19063bc411bfed2914301b908a8f77a7919aaea007a977fa8fb3cde1",
philwoe158fe72020-02-17 06:32:43 -0800587 "zulu11.37.48-ca-jdk11.0.6-linux_aarch64.tar.gz": "a452f1b9682d9f83c1c14e54d1446e1c51b5173a3a05dcb013d380f9508562e4",
philwo3ac4af42020-02-14 07:58:55 -0800588 "zulu11.37.17-ca-jdk11.0.6-macosx_x64.tar.gz": "e1fe56769f32e2aaac95e0a8f86b5a323da5af3a3b4bba73f3086391a6cc056f",
589 "zulu11.37.17-ca-jdk11.0.6-win_x64.zip": "a9695617b8374bfa171f166951214965b1d1d08f43218db9a2a780b71c665c18",
Donald Chaib69e1e52020-08-03 12:34:17 -0700590 "android_tools_pkg-0.19.0rc3.tar.gz": "ea5c0589a01e2a9f43c20e5c145d3530e3b3bdbe7322789bc5da38d0ca49b837",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800591 # bazelbuild/bazel-skylib
philwo7fcc26c2020-11-09 07:36:18 -0800592 "bazel-skylib-1.0.3.tar.gz": "1c531376ac7e5a180e0237938a2536de0c54d93f5c278634818e0efc952dd56c",
hlopkoaaf64572019-06-14 02:33:56 -0700593 # bazelbuild/platforms
aldersondrive64235c32019-11-18 08:50:39 -0800594 "46993efdd33b73649796c5fc5c9efb193ae19d51.zip": "66184688debeeefcc2a16a2f80b03f514deac8346fe888fb7e691a52c023dd88",
iirinae8260492019-07-03 05:16:09 -0700595 # bazelbuild/rules_java
596 "7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip": "bc81f1ba47ef5cc68ad32225c3d0e70b8c6f6077663835438da8d5733f917598",
oquenchil96068872019-07-08 07:01:39 -0700597 # bazelbuild/rules_cc
aiutoea763e52020-11-12 04:25:44 -0800598 "b1c40e1de81913a3c40e5948f78719c28152486d.zip": "d0c573b94a6ef20ef6ff20154a23d0efcb409fb0e1ff0979cec318dfe42f0cdd",
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700599 # bazelbuild/rules_proto
Yannic Bonenberger829b0852020-10-28 10:37:35 -0700600 "7e4afce6fe62dbff0a4a03450143146f9f2d7488.tar.gz": "8e7d59a5b12b233be5652e3d29f42fba01c7cbab09f6b3a8d0a57ed6d1e9a0da",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800601 # protocolbuffers/protobuf
Yannic Bonenbergerc656e652020-09-17 03:14:25 -0700602 "v3.13.0.tar.gz": "9b4ee22c250fe31b16f1a24d61467e40780a3fbb9b91c3b65be2a376ed913a1a",
Yun Penge2f11d72020-06-03 09:16:35 -0700603 # grpc/grpc
Dmitry Ivankova33de172020-10-16 05:00:01 -0700604 "v1.32.0.tar.gz": "f880ebeb2ccf0e47721526c10dd97469200e40b5f101a0d9774eb69efa0bd07a",
Yun Penge2f11d72020-06-03 09:16:35 -0700605 # c-ares/c-ares
606 "e982924acee7f7313b4baa4ee5ec000c5e373c30.tar.gz": "e8c2751ddc70fed9dc6f999acd92e232d5846f009ee1674f8aee81f19b2b915a",
607 # protocolbuffers/upb
Dmitry Ivankova33de172020-10-16 05:00:01 -0700608 "382d5afc60e05470c23e8de19b19fc5ad231e732.tar.gz": "7992217989f3156f8109931c1fc6db3434b7414957cb82371552377beaeb9d6c",
Dmitry Ivankova74096f2020-10-09 06:16:02 -0700609 # google/re2
610 "aecba11114cf1fac5497aeb844b6966106de3eb6.tar.gz": "9f385e146410a8150b6f4cb1a57eab7ec806ced48d427554b1e754877ff26c3e",
611 # abseil/abseil-cpp
612 "df3ea785d8c30a9503321a3d35ee7d35808f190d.tar.gz": "f368a8476f4e2e0eccf8a7318b98dafbe30b2600f4e3cf52636e5eb145aba06a",
philwo75edd782019-01-29 05:02:44 -0800613 },
614 urls = {
Ivo Listcd3480e2020-11-18 06:22:24 -0800615 "java_tools_javac11_linux-v10.4.zip": ["https://mirror.bazel.build/bazel_java_tools/releases/javac11/v10.4/java_tools_javac11_linux-v10.4.zip"],
616 "java_tools_javac11_windows-v10.4.zip": ["https://mirror.bazel.build/bazel_java_tools/releases/javac11/v10.4/java_tools_javac11_windows-v10.4.zip"],
617 "java_tools_javac11_darwin-v10.4.zip": ["https://mirror.bazel.build/bazel_java_tools/releases/javac11/v10.4/java_tools_javac11_darwin-v10.4.zip"],
Charles Mitae9d883f2020-10-01 06:00:50 -0700618 "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 -0800619 "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"],
620 "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"],
621 "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"],
622 "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 -0700623 "android_tools_pkg-0.19.0rc3.tar.gz": [
624 "https://mirror.bazel.build/bazel_android_tools/android_tools_pkg-0.19.0rc3.tar.gz",
Jingwen Chen186929e2019-04-02 10:38:30 -0700625 ],
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800626 # bazelbuild/bazel-skylib
philwo7fcc26c2020-11-09 07:36:18 -0800627 "bazel-skylib-1.0.3.tar.gz": [
628 "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.0.3/bazel-skylib-1.0.3.tar.gz",
629 "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 -0800630 ],
hlopkoaaf64572019-06-14 02:33:56 -0700631 # bazelbuild/platforms
aldersondrive64235c32019-11-18 08:50:39 -0800632 "46993efdd33b73649796c5fc5c9efb193ae19d51.zip": [
633 "https://mirror.bazel.build/github.com/bazelbuild/platforms/archive/46993efdd33b73649796c5fc5c9efb193ae19d51.zip",
634 "https://github.com/bazelbuild/platforms/archive/46993efdd33b73649796c5fc5c9efb193ae19d51.zip",
hlopkoaaf64572019-06-14 02:33:56 -0700635 ],
iirinae8260492019-07-03 05:16:09 -0700636 # bazelbuild/rules_java
637 "7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip": [
oquenchil96068872019-07-08 07:01:39 -0700638 "https://mirror.bazel.build/github.com/bazelbuild/rules_java/archive/7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
Jakob Buchgraber60df9052019-07-11 06:08:00 -0700639 "https://github.com/bazelbuild/rules_java/archive/7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
oquenchil96068872019-07-08 07:01:39 -0700640 ],
641 # bazelbuild/rules_cc
aiutoea763e52020-11-12 04:25:44 -0800642 "b1c40e1de81913a3c40e5948f78719c28152486d.zip": [
643 "https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/b1c40e1de81913a3c40e5948f78719c28152486d.zip",
644 "https://github.com/bazelbuild/rules_cc/archive/b1c40e1de81913a3c40e5948f78719c28152486d.zip",
oquenchil96068872019-07-08 07:01:39 -0700645 ],
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700646 # bazelbuild/rules_proto
Yannic Bonenberger829b0852020-10-28 10:37:35 -0700647 "7e4afce6fe62dbff0a4a03450143146f9f2d7488.tar.gz": [
648 "https://mirror.bazel.build/github.com/bazelbuild/rules_proto/archive/7e4afce6fe62dbff0a4a03450143146f9f2d7488.tar.gz",
649 "https://github.com/bazelbuild/rules_proto/archive/7e4afce6fe62dbff0a4a03450143146f9f2d7488.tar.gz",
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700650 ],
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800651 # protocolbuffers/protobuf
Yannic Bonenbergerc656e652020-09-17 03:14:25 -0700652 "v3.13.0.tar.gz": [
653 "https://mirror.bazel.build/github.com/protocolbuffers/protobuf/archive/v3.13.0.tar.gz",
654 "https://github.com/protocolbuffers/protobuf/archive/v3.13.0.tar.gz",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800655 ],
Yun Penge2f11d72020-06-03 09:16:35 -0700656 # grpc/grpc
Dmitry Ivankova33de172020-10-16 05:00:01 -0700657 "v1.32.0.tar.gz": [
philwoaf3bd4a2020-11-09 07:32:38 -0800658 "https://mirror.bazel.build/github.com/grpc/grpc/archive/v1.32.0.tar.gz",
Dmitry Ivankova33de172020-10-16 05:00:01 -0700659 "https://github.com/grpc/grpc/archive/v1.32.0.tar.gz",
Yun Penge2f11d72020-06-03 09:16:35 -0700660 ],
661 # c-ares/c-ares
662 "e982924acee7f7313b4baa4ee5ec000c5e373c30.tar.gz": [
663 "https://mirror.bazel.build/github.com/c-ares/c-ares/archive/e982924acee7f7313b4baa4ee5ec000c5e373c30.tar.gz",
664 "https://github.com/c-ares/c-ares/archive/e982924acee7f7313b4baa4ee5ec000c5e373c30.tar.gz",
665 ],
666 # protocolbuffers/upb
Dmitry Ivankova33de172020-10-16 05:00:01 -0700667 "382d5afc60e05470c23e8de19b19fc5ad231e732.tar.gz": [
668 "https://mirror.bazel.build/github.com/protocolbuffers/upb/archive/382d5afc60e05470c23e8de19b19fc5ad231e732.tar.gz",
669 "https://github.com/protocolbuffers/upb/archive/382d5afc60e05470c23e8de19b19fc5ad231e732.tar.gz",
Dmitry Ivankova74096f2020-10-09 06:16:02 -0700670 ],
671 # google/re2
672 "aecba11114cf1fac5497aeb844b6966106de3eb6.tar.gz": [
673 "https://mirror.bazel.build/github.com/google/re2/archive/aecba11114cf1fac5497aeb844b6966106de3eb6.tar.gz",
674 "https://github.com/google/re2/archive/aecba11114cf1fac5497aeb844b6966106de3eb6.tar.gz",
675 ],
676 # abseil/abseil-cpp
677 "df3ea785d8c30a9503321a3d35ee7d35808f190d.tar.gz": [
678 "https://mirror.bazel.build/github.com/abseil/abseil-cpp/archive/df3ea785d8c30a9503321a3d35ee7d35808f190d.tar.gz",
679 "https://github.com/abseil/abseil-cpp/archive/df3ea785d8c30a9503321a3d35ee7d35808f190d.tar.gz",
Yun Penge2f11d72020-06-03 09:16:35 -0700680 ],
philwo75edd782019-01-29 05:02:44 -0800681 },
Klaus Aehligacafe5a2018-10-24 03:16:42 -0700682)
Jingwen Chen186bdcd2018-12-14 10:27:23 -0800683
684load("//scripts/docs:doc_versions.bzl", "DOC_VERSIONS")
685
Jingwen Chen762c27d2020-05-14 03:07:03 -0700686# Load versioned documentation tarballs from GCS
Jingwen Chen186bdcd2018-12-14 10:27:23 -0800687[http_file(
Jingwen Chend3a5fd62020-05-05 14:43:23 -0700688 # Split on "-" to get the version without cherrypick commits.
689 name = "jekyll_tree_%s" % DOC_VERSION["version"].split("-")[0].replace(".", "_"),
Jingwen Chen186bdcd2018-12-14 10:27:23 -0800690 sha256 = DOC_VERSION["sha256"],
691 urls = ["https://mirror.bazel.build/bazel_versioned_docs/jekyll-tree-%s.tar" % DOC_VERSION["version"]],
692) for DOC_VERSION in DOC_VERSIONS]
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700693
Jingwen Chen762c27d2020-05-14 03:07:03 -0700694# Load shared base CSS theme from bazelbuild/bazel-website
695http_archive(
696 name = "bazel_website",
Jingwen Chen762c27d2020-05-14 03:07:03 -0700697 # TODO(https://github.com/bazelbuild/bazel/issues/10793)
698 # - Export files from bazel-website's BUILD, instead of doing it here.
699 # - Share more common stylesheets, like footer and navbar.
700 build_file_content = """
701exports_files(["_sass/style.scss"])
Ivo List4c6c9992020-09-23 09:25:05 -0700702""",
703 sha256 = "a5f531dd1d62e6947dcfc279656ffc2fdf6f447c163914c5eabf7961b4cb6eb4",
704 strip_prefix = "bazel-website-c174fa288aa079b68416d2ce2cc97268fa172f42",
705 urls = ["https://github.com/bazelbuild/bazel-website/archive/c174fa288aa079b68416d2ce2cc97268fa172f42.tar.gz"],
Jingwen Chen762c27d2020-05-14 03:07:03 -0700706)
707
wyv8062ca42020-05-25 00:21:00 -0700708# Stardoc recommends declaring its dependencies via "*_dependencies" functions.
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700709# This requires that the repositories these functions come from need to be
710# fetched unconditionally for everything (including just building bazel!), so
711# provide them as http_archives that can be shiped in the distdir, to keep the
712# distribution archive self-contained.
713http_archive(
714 name = "io_bazel_rules_sass",
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800715 sha256 = "c78be58f5e0a29a04686b628cf54faaee0094322ae0ac99da5a8a8afca59a647",
John Caterf47f83e2020-05-04 05:16:00 -0700716 strip_prefix = "rules_sass-1.25.0",
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700717 urls = [
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800718 "https://mirror.bazel.build/github.com/bazelbuild/rules_sass/archive/1.25.0.zip",
719 "https://github.com/bazelbuild/rules_sass/archive/1.25.0.zip",
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700720 ],
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700721)
iirinaf5c334262019-03-19 02:44:59 -0700722
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700723http_archive(
724 name = "build_bazel_rules_nodejs",
philwo3ff7def2020-11-09 07:30:06 -0800725 sha256 = "f2194102720e662dbf193546585d705e645314319554c6ce7e47d8b59f459e9c",
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700726 urls = [
philwo3ff7def2020-11-09 07:30:06 -0800727 "https://mirror.bazel.build/github.com/bazelbuild/rules_nodejs/releases/download/2.2.2/rules_nodejs-2.2.2.tar.gz",
728 "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 -0700729 ],
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700730)
731
iirina3ab4dbc2019-04-29 05:12:39 -0700732http_archive(
iirinaa6e92602019-05-13 06:20:12 -0700733 name = "java_tools_langtools_javac11",
iirinab815b792019-07-17 05:47:01 -0700734 sha256 = "cf0814fa002ef3d794582bb086516d8c9ed0958f83f19799cdb08949019fe4c7",
iirinaa6e92602019-05-13 06:20:12 -0700735 urls = [
iirinab815b792019-07-17 05:47:01 -0700736 "https://mirror.bazel.build/bazel_java_tools/jdk_langtools/langtools_jdk11_v2.zip",
iirinaa6e92602019-05-13 06:20:12 -0700737 ],
738)
739
iirina0eec6932019-06-12 07:48:22 -0700740http_archive(
hlopkoaaf64572019-06-14 02:33:56 -0700741 name = "platforms",
aldersondrive64235c32019-11-18 08:50:39 -0800742 sha256 = "66184688debeeefcc2a16a2f80b03f514deac8346fe888fb7e691a52c023dd88",
743 strip_prefix = "platforms-46993efdd33b73649796c5fc5c9efb193ae19d51",
hlopkoaaf64572019-06-14 02:33:56 -0700744 urls = [
aldersondrive64235c32019-11-18 08:50:39 -0800745 "https://mirror.bazel.build/github.com/bazelbuild/platforms/archive/46993efdd33b73649796c5fc5c9efb193ae19d51.zip",
746 "https://github.com/bazelbuild/platforms/archive/46993efdd33b73649796c5fc5c9efb193ae19d51.zip",
hlopkoaaf64572019-06-14 02:33:56 -0700747 ],
hlopkoaaf64572019-06-14 02:33:56 -0700748)
749
philwo17506af2020-01-28 04:20:39 -0800750# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/android/android_remote_tools.WORKSPACE
751http_archive(
752 name = "android_tools_for_testing",
753 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
754 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
Ivo List4c6c9992020-09-23 09:25:05 -0700755 sha256 = "ea5c0589a01e2a9f43c20e5c145d3530e3b3bdbe7322789bc5da38d0ca49b837", # DO_NOT_REMOVE_THIS_ANDROID_TOOLS_UPDATE_MARKER
Donald Chaib69e1e52020-08-03 12:34:17 -0700756 url = "https://mirror.bazel.build/bazel_android_tools/android_tools_pkg-0.19.0rc3.tar.gz",
philwo17506af2020-01-28 04:20:39 -0800757)
758
759# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/coverage.WORKSPACE.
760http_archive(
761 name = "remote_coverage_tools_for_testing",
762 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
763 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
Charles Mitae9d883f2020-10-01 06:00:50 -0700764 sha256 = "cd14f1cb4559e4723e63b7e7b06d09fcc3bd7ba58d03f354cdff1439bd936a7d",
philwo17506af2020-01-28 04:20:39 -0800765 urls = [
Charles Mitae9d883f2020-10-01 06:00:50 -0700766 "https://mirror.bazel.build/bazel_coverage_output_generator/releases/coverage_output_generator-v2.5.zip",
philwo17506af2020-01-28 04:20:39 -0800767 ],
768)
769
770# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
771http_archive(
philwo17506af2020-01-28 04:20:39 -0800772 name = "remotejdk11_linux_for_testing",
773 build_file = "@local_jdk//:BUILD.bazel",
774 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
775 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
philwo8b1ef422020-02-14 08:26:00 -0800776 sha256 = "360626cc19063bc411bfed2914301b908a8f77a7919aaea007a977fa8fb3cde1",
777 strip_prefix = "zulu11.37.17-ca-jdk11.0.6-linux_x64",
778 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 -0800779)
780
781# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
782http_archive(
783 name = "remotejdk11_linux_aarch64_for_testing",
784 build_file = "@local_jdk//:BUILD.bazel",
785 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
786 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
philwo8b1ef422020-02-14 08:26:00 -0800787 sha256 = "a452f1b9682d9f83c1c14e54d1446e1c51b5173a3a05dcb013d380f9508562e4",
788 strip_prefix = "zulu11.37.48-ca-jdk11.0.6-linux_aarch64",
789 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 -0800790)
791
792# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
793http_archive(
Jason Furmanek04e073e2020-05-28 05:48:09 -0700794 name = "remotejdk11_linux_ppc64le_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,
798 sha256 = "a417db0295b1f4b538ecbaf7c774f3a177fab9657a665940170936c0eca4e71a",
799 strip_prefix = "jdk-11.0.7+10",
800 urls = [
philwo66d84ef2020-06-05 06:52:20 -0700801 "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",
802 "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 -0700803 ],
804)
805
806# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
807http_archive(
Ruixin Baoe14a6f22020-08-21 06:17:24 -0700808 name = "remotejdk11_linux_s390x_for_testing",
809 build_file = "@local_jdk//:BUILD.bazel",
810 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
811 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
812 sha256 = "d9b72e87a1d3ebc0c9552f72ae5eb150fffc0298a7cb841f1ce7bfc70dcd1059",
813 strip_prefix = "jdk-11.0.7+10",
814 urls = [
815 "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",
816 "https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.7+10/OpenJDK11U-jdk_s390x_linux_hotspot_11.0.7_10.tar.gz",
817 ],
818)
819
820# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
821http_archive(
philwo17506af2020-01-28 04:20:39 -0800822 name = "remotejdk11_macos_for_testing",
823 build_file = "@local_jdk//:BUILD.bazel",
824 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
825 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
philwo8b1ef422020-02-14 08:26:00 -0800826 sha256 = "e1fe56769f32e2aaac95e0a8f86b5a323da5af3a3b4bba73f3086391a6cc056f",
827 strip_prefix = "zulu11.37.17-ca-jdk11.0.6-macosx_x64",
828 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 -0800829)
830
831# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
832http_archive(
833 name = "remotejdk11_win_for_testing",
834 build_file = "@local_jdk//:BUILD.bazel",
835 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
836 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
philwo8b1ef422020-02-14 08:26:00 -0800837 sha256 = "a9695617b8374bfa171f166951214965b1d1d08f43218db9a2a780b71c665c18",
838 strip_prefix = "zulu11.37.17-ca-jdk11.0.6-win_x64",
839 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 -0800840)
841
842# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
843http_archive(
David Ostrovskyfe291f72020-07-23 04:08:29 -0700844 name = "remotejdk14_linux_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,
848 sha256 = "48bb8947034cd079ad1ef83335e7634db4b12a26743a0dc314b6b861480777aa",
849 strip_prefix = "zulu14.28.21-ca-jdk14.0.1-linux_x64",
850 urls = ["https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu14.28.21-ca-jdk14.0.1-linux_x64.tar.gz"],
851)
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 = "remotejdk14_macos_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,
859 sha256 = "088bd4d0890acc9f032b738283bf0f26b2a55c50b02d1c8a12c451d8ddf080dd",
860 strip_prefix = "zulu14.28.21-ca-jdk14.0.1-macosx_x64",
861 urls = ["https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu14.28.21-ca-jdk14.0.1-macosx_x64.tar.gz"],
862)
863
864# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
865http_archive(
866 name = "remotejdk14_win_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 = "9cb078b5026a900d61239c866161f0d9558ec759aa15c5b4c7e905370e868284",
871 strip_prefix = "zulu14.28.21-ca-jdk14.0.1-win_x64",
872 urls = ["https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu14.28.21-ca-jdk14.0.1-win_x64.zip"],
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(
Jonathan Perry94505522020-10-07 12:45:34 -0700877 name = "remotejdk15_linux_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,
Dmitry Ivankov0bc92a02020-10-19 03:26:33 -0700881 sha256 = "0a38f1138c15a4f243b75eb82f8ef40855afcc402e3c2a6de97ce8235011b1ad",
Ivo List3f460b42020-10-27 05:48:19 -0700882 strip_prefix = "zulu15.27.17-ca-jdk15.0.0-linux_x64",
Jonathan Perry94505522020-10-07 12:45:34 -0700883 urls = [
884 "https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu15.27.17-ca-jdk15.0.0-linux_x64.tar.gz",
885 "https://cdn.azul.com/zulu/bin/zulu15.27.17-ca-jdk15.0.0-linux_x64.tar.gz",
886 ],
887)
888
889# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
890http_archive(
891 name = "remotejdk15_macos_for_testing",
892 build_file = "@local_jdk//:BUILD.bazel",
893 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
894 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
Dmitry Ivankov0bc92a02020-10-19 03:26:33 -0700895 sha256 = "f80b2e0512d9d8a92be24497334c974bfecc8c898fc215ce0e76594f00437482",
Ivo List3f460b42020-10-27 05:48:19 -0700896 strip_prefix = "zulu15.27.17-ca-jdk15.0.0-macosx_x64",
Jonathan Perry94505522020-10-07 12:45:34 -0700897 urls = [
898 "https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu15.27.17-ca-jdk15.0.0-macosx_x64.tar.gz",
899 "https://cdn.azul.com/zulu/bin/zulu15.27.17-ca-jdk15.0.0-macosx_x64.tar.gz",
900 ],
901)
902
903# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
904http_archive(
905 name = "remotejdk15_win_for_testing",
906 build_file = "@local_jdk//:BUILD.bazel",
907 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
908 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
Dmitry Ivankov0bc92a02020-10-19 03:26:33 -0700909 sha256 = "f535a530151e6c20de8a3078057e332b08887cb3ba1a4735717357e72765cad6",
Ivo List3f460b42020-10-27 05:48:19 -0700910 strip_prefix = "zulu15.27.17-ca-jdk15.0.0-win_x64",
Jonathan Perry94505522020-10-07 12:45:34 -0700911 urls = [
912 "https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu15.27.17-ca-jdk15.0.0-win_x64.zip",
913 "https://cdn.azul.com/zulu/bin/zulu15.27.17-ca-jdk15.0.0-win_x64.zip",
914 ],
915)
916
917# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
918http_archive(
philwo17506af2020-01-28 04:20:39 -0800919 name = "remote_java_tools_linux_for_testing",
920 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
921 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
Ivo Listcd3480e2020-11-18 06:22:24 -0800922 sha256 = "7debb49457db2f10990f759b6984c6d4ccb4917a9a9fd402a6f224b5fb0e8e36",
philwo17506af2020-01-28 04:20:39 -0800923 urls = [
Ivo Listcd3480e2020-11-18 06:22:24 -0800924 "https://mirror.bazel.build/bazel_java_tools/releases/javac11/v10.4/java_tools_javac11_linux-v10.4.zip",
925 "https://github.com/bazelbuild/java_tools/releases/download/javac11_v10.4/java_tools_javac11_linux-v10.4.zip",
philwo17506af2020-01-28 04:20:39 -0800926 ],
927)
928
929# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
930http_archive(
931 name = "remote_java_tools_windows_for_testing",
932 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
933 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
Ivo Listcd3480e2020-11-18 06:22:24 -0800934 sha256 = "3a7d802ccefffa6ecf6e190aaae081cf27fc0275e2a8dad7d3a943c63a4d0edc",
philwo17506af2020-01-28 04:20:39 -0800935 urls = [
Ivo Listcd3480e2020-11-18 06:22:24 -0800936 "https://mirror.bazel.build/bazel_java_tools/releases/javac11/v10.4/java_tools_javac11_windows-v10.4.zip",
937 "https://github.com/bazelbuild/java_tools/releases/download/javac11_v10.4/java_tools_javac11_windows-v10.4.zip",
philwo17506af2020-01-28 04:20:39 -0800938 ],
939)
940
941# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
942http_archive(
943 name = "remote_java_tools_darwin_for_testing",
944 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
945 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
Ivo Listcd3480e2020-11-18 06:22:24 -0800946 sha256 = "587a7bc34c95a217a941b01a5a1f8ee48114fbe87e05872a41b7e019e5297a8a",
philwo17506af2020-01-28 04:20:39 -0800947 urls = [
Ivo Listcd3480e2020-11-18 06:22:24 -0800948 "https://mirror.bazel.build/bazel_java_tools/releases/javac11/v10.4/java_tools_javac11_darwin-v10.4.zip",
949 "https://github.com/bazelbuild/java_tools/releases/download/javac11_v10.4/java_tools_javac11_darwin-v10.4.zip",
philwo17506af2020-01-28 04:20:39 -0800950 ],
951)
952
953# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
954http_archive(
philwo17506af2020-01-28 04:20:39 -0800955 name = "remote_java_tools_javac11_test_linux",
956 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
957 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
Ivo Listcd3480e2020-11-18 06:22:24 -0800958 sha256 = "7debb49457db2f10990f759b6984c6d4ccb4917a9a9fd402a6f224b5fb0e8e36",
philwo17506af2020-01-28 04:20:39 -0800959 urls = [
Ivo Listcd3480e2020-11-18 06:22:24 -0800960 "https://mirror.bazel.build/bazel_java_tools/releases/javac11/v10.4/java_tools_javac11_linux-v10.4.zip",
philwo17506af2020-01-28 04:20:39 -0800961 ],
962)
963
964# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
965http_archive(
966 name = "remote_java_tools_javac11_test_windows",
967 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
968 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
Ivo Listcd3480e2020-11-18 06:22:24 -0800969 sha256 = "3a7d802ccefffa6ecf6e190aaae081cf27fc0275e2a8dad7d3a943c63a4d0edc",
philwo17506af2020-01-28 04:20:39 -0800970 urls = [
Ivo Listcd3480e2020-11-18 06:22:24 -0800971 "https://mirror.bazel.build/bazel_java_tools/releases/javac11/v10.4/java_tools_javac11_windows-v10.4.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(
977 name = "remote_java_tools_javac11_test_darwin",
978 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
979 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
Ivo Listcd3480e2020-11-18 06:22:24 -0800980 sha256 = "587a7bc34c95a217a941b01a5a1f8ee48114fbe87e05872a41b7e019e5297a8a",
philwo17506af2020-01-28 04:20:39 -0800981 urls = [
Ivo Listcd3480e2020-11-18 06:22:24 -0800982 "https://mirror.bazel.build/bazel_java_tools/releases/javac11/v10.4/java_tools_javac11_darwin-v10.4.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(
philwo17506af2020-01-28 04:20:39 -0800988 name = "openjdk11_linux_archive",
989 build_file_content = """
990java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])
991exports_files(["WORKSPACE"], visibility = ["//visibility:public"])
992""",
philwo8b1ef422020-02-14 08:26:00 -0800993 sha256 = "360626cc19063bc411bfed2914301b908a8f77a7919aaea007a977fa8fb3cde1",
994 strip_prefix = "zulu11.37.17-ca-jdk11.0.6-linux_x64",
995 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 -0800996)
997
998# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
999http_archive(
1000 name = "openjdk11_darwin_archive",
1001 build_file_content = """
1002java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])
1003exports_files(["WORKSPACE"], visibility = ["//visibility:public"])
1004""",
philwo8b1ef422020-02-14 08:26:00 -08001005 sha256 = "e1fe56769f32e2aaac95e0a8f86b5a323da5af3a3b4bba73f3086391a6cc056f",
1006 strip_prefix = "zulu11.37.17-ca-jdk11.0.6-macosx_x64",
1007 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 -08001008)
1009
1010# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
1011http_archive(
1012 name = "openjdk11_windows_archive",
1013 build_file_content = """
1014java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])
1015exports_files(["WORKSPACE"], visibility = ["//visibility:public"])
1016""",
philwo8b1ef422020-02-14 08:26:00 -08001017 sha256 = "a9695617b8374bfa171f166951214965b1d1d08f43218db9a2a780b71c665c18",
1018 strip_prefix = "zulu11.37.17-ca-jdk11.0.6-win_x64",
1019 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 -08001020)
1021
David Ostrovskyfe291f72020-07-23 04:08:29 -07001022# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
1023http_archive(
1024 name = "openjdk14_linux_archive",
1025 build_file_content = """
1026java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])
1027exports_files(["WORKSPACE"], visibility = ["//visibility:public"])
1028""",
1029 sha256 = "48bb8947034cd079ad1ef83335e7634db4b12a26743a0dc314b6b861480777aa",
1030 strip_prefix = "zulu14.28.21-ca-jdk14.0.1-linux_x64",
1031 urls = ["https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu14.28.21-ca-jdk14.0.1-linux_x64.tar.gz"],
1032)
1033
1034# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
1035http_archive(
1036 name = "openjdk14_darwin_archive",
1037 build_file_content = """
1038java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])
1039exports_files(["WORKSPACE"], visibility = ["//visibility:public"])
1040""",
1041 sha256 = "088bd4d0890acc9f032b738283bf0f26b2a55c50b02d1c8a12c451d8ddf080dd",
1042 strip_prefix = "zulu14.28.21-ca-jdk14.0.1-macosx_x64",
1043 urls = ["https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu14.28.21-ca-jdk14.0.1-macosx_x64.tar.gz"],
1044)
1045
1046# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
1047http_archive(
1048 name = "openjdk14_windows_archive",
1049 build_file_content = """
1050java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])
1051exports_files(["WORKSPACE"], visibility = ["//visibility:public"])
1052""",
1053 sha256 = "9cb078b5026a900d61239c866161f0d9558ec759aa15c5b4c7e905370e868284",
1054 strip_prefix = "zulu14.28.21-ca-jdk14.0.1-win_x64",
1055 urls = ["https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu14.28.21-ca-jdk14.0.1-win_x64.zip"],
1056)
1057
Jonathan Perry94505522020-10-07 12:45:34 -07001058# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
1059http_archive(
1060 name = "openjdk15_linux_archive",
1061 build_file_content = """
1062java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])
1063exports_files(["WORKSPACE"], visibility = ["//visibility:public"])
1064""",
Dmitry Ivankov0bc92a02020-10-19 03:26:33 -07001065 sha256 = "0a38f1138c15a4f243b75eb82f8ef40855afcc402e3c2a6de97ce8235011b1ad",
Ivo List3f460b42020-10-27 05:48:19 -07001066 strip_prefix = "zulu15.27.17-ca-jdk15.0.0-linux_x64",
Jonathan Perry94505522020-10-07 12:45:34 -07001067 urls = [
1068 "https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu15.27.17-ca-jdk15.0.0-linux_x64.tar.gz",
1069 "https://cdn.azul.com/zulu/bin/zulu15.27.17-ca-jdk15.0.0-linux_x64.tar.gz",
1070 ],
1071)
1072
1073# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
1074http_archive(
1075 name = "openjdk15_darwin_archive",
1076 build_file_content = """
1077java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])
1078exports_files(["WORKSPACE"], visibility = ["//visibility:public"])
1079""",
Dmitry Ivankov0bc92a02020-10-19 03:26:33 -07001080 sha256 = "f80b2e0512d9d8a92be24497334c974bfecc8c898fc215ce0e76594f00437482",
Ivo List3f460b42020-10-27 05:48:19 -07001081 strip_prefix = "zulu15.27.17-ca-jdk15.0.0-macosx_x64",
Jonathan Perry94505522020-10-07 12:45:34 -07001082 urls = [
1083 "https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu15.27.17-ca-jdk15.0.0-macosx_x64.tar.gz",
1084 "https://cdn.azul.com/zulu/bin/zulu15.27.17-ca-jdk15.0.0-macosx_x64.tar.gz",
1085 ],
1086)
1087
1088# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
1089http_archive(
1090 name = "openjdk15_windows_archive",
1091 build_file_content = """
1092java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])
1093exports_files(["WORKSPACE"], visibility = ["//visibility:public"])
1094""",
Dmitry Ivankov0bc92a02020-10-19 03:26:33 -07001095 sha256 = "f535a530151e6c20de8a3078057e332b08887cb3ba1a4735717357e72765cad6",
Ivo List3f460b42020-10-27 05:48:19 -07001096 strip_prefix = "zulu15.27.17-ca-jdk15.0.0-win_x64",
Jonathan Perry94505522020-10-07 12:45:34 -07001097 urls = [
1098 "https://mirror.bazel.build/cdn.azul.com/zulu/bin/zulu15.27.17-ca-jdk15.0.0-win_x64.zip",
1099 "https://cdn.azul.com/zulu/bin/zulu15.27.17-ca-jdk15.0.0-win_x64.zip",
1100 ],
1101)
1102
wyv8062ca42020-05-25 00:21:00 -07001103load("@io_bazel_skydoc//:setup.bzl", "stardoc_repositories")
iirinaf5c334262019-03-19 02:44:59 -07001104
wyv8062ca42020-05-25 00:21:00 -07001105stardoc_repositories()
Klaus Aehlig6f52fca2019-03-18 03:43:40 -07001106
1107load("@io_bazel_rules_sass//:package.bzl", "rules_sass_dependencies")
iirinaf5c334262019-03-19 02:44:59 -07001108
Klaus Aehlig6f52fca2019-03-18 03:43:40 -07001109rules_sass_dependencies()
1110
Laurent Le Brunda3d9f02020-02-18 05:53:57 -08001111load("@build_bazel_rules_nodejs//:index.bzl", "node_repositories")
iirinaf5c334262019-03-19 02:44:59 -07001112
Klaus Aehlig6f52fca2019-03-18 03:43:40 -07001113node_repositories()
1114
1115load("@io_bazel_rules_sass//:defs.bzl", "sass_repositories")
iirinaf5c334262019-03-19 02:44:59 -07001116
Klaus Aehlig6f52fca2019-03-18 03:43:40 -07001117sass_repositories()
Jakob Buchgraber593c5302019-04-16 10:12:20 -07001118
Keith Smiley7fcbeec2019-04-23 17:06:02 -07001119register_execution_platforms("//:default_host_platform") # buildozer: disable=positional-args
Tony Aiutoed8a5ec2019-07-17 08:33:48 -07001120
1121# Tools for building deb, rpm and tar files.
1122http_archive(
1123 name = "rules_pkg",
philwo17506af2020-01-28 04:20:39 -08001124 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
1125 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
philwob14e4062020-01-27 03:02:32 -08001126 sha256 = "4ba8f4ab0ff85f2484287ab06c0d871dcb31cc54d439457d28fd4ae14b18450a",
Tony Aiutoed8a5ec2019-07-17 08:33:48 -07001127 urls = [
philwob14e4062020-01-27 03:02:32 -08001128 "https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.2.4/rules_pkg-0.2.4.tar.gz",
1129 "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 -07001130 ],
Tony Aiutoed8a5ec2019-07-17 08:33:48 -07001131)
iirinad26a3c12019-07-19 04:39:33 -07001132
Tony Aiutoed8a5ec2019-07-17 08:33:48 -07001133load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies")
iirinad26a3c12019-07-19 04:39:33 -07001134
Tony Aiutoed8a5ec2019-07-17 08:33:48 -07001135rules_pkg_dependencies()
Laszlo Csomor3e023182019-08-01 05:05:09 -07001136
1137# Toolchains for Resource Compilation (.rc files on Windows).
1138load("//src/main/res:winsdk_configure.bzl", "winsdk_configure")
1139
1140winsdk_configure(name = "local_config_winsdk")
1141
1142load("@local_config_winsdk//:toolchains.bzl", "register_local_rc_exe_toolchains")
1143
1144register_local_rc_exe_toolchains()
1145
1146register_toolchains("//src/main/res:empty_rc_toolchain")
Yun Peng01609b82020-05-04 11:12:33 -07001147
Yun Penge2f11d72020-06-03 09:16:35 -07001148http_archive(
1149 name = "com_github_grpc_grpc",
Ivo List4c6c9992020-09-23 09:25:05 -07001150 patch_args = ["-p1"],
Dmitry Ivankova33de172020-10-16 05:00:01 -07001151 patches = ["//third_party/grpc:grpc_1.32.0.patch"],
1152 sha256 = "f880ebeb2ccf0e47721526c10dd97469200e40b5f101a0d9774eb69efa0bd07a",
1153 strip_prefix = "grpc-1.32.0",
Yun Penge2f11d72020-06-03 09:16:35 -07001154 urls = [
philwoaf3bd4a2020-11-09 07:32:38 -08001155 "https://mirror.bazel.build/github.com/grpc/grpc/archive/v1.32.0.tar.gz",
Dmitry Ivankova33de172020-10-16 05:00:01 -07001156 "https://github.com/grpc/grpc/archive/v1.32.0.tar.gz",
Yun Penge2f11d72020-06-03 09:16:35 -07001157 ],
Yun Penge2f11d72020-06-03 09:16:35 -07001158)
1159
1160# Projects using gRPC as an external dependency must call both grpc_deps() and
1161# grpc_extra_deps().
1162load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps")
Ivo List4c6c9992020-09-23 09:25:05 -07001163
Yun Penge2f11d72020-06-03 09:16:35 -07001164grpc_deps()
1165
1166load("@com_github_grpc_grpc//bazel:grpc_extra_deps.bzl", "grpc_extra_deps")
Ivo List4c6c9992020-09-23 09:25:05 -07001167
Yun Penge2f11d72020-06-03 09:16:35 -07001168grpc_extra_deps()
1169
Yun Peng01609b82020-05-04 11:12:33 -07001170load("//tools/distributions/debian:deps.bzl", "debian_deps")
Ivo List4c6c9992020-09-23 09:25:05 -07001171
Yun Peng01609b82020-05-04 11:12:33 -07001172debian_deps()
Andrzej Guszak0f9a5922020-06-25 05:47:21 -07001173
1174load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
Ivo List4c6c9992020-09-23 09:25:05 -07001175
Andrzej Guszak0f9a5922020-06-25 05:47:21 -07001176bazel_skylib_workspace()