blob: cd0eb7782b6bfc398226bb4cf94d533eb1a4b439 [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
Cal Peyser2152bc12016-04-22 17:08:59 +000090# This allows rules written in skylark 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"],
99 patches = ["@io_bazel//third_party/protobuf:3.11.3.patch"],
100 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
101 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
102 sha256 = "cf754718b0aa945b00550ed7962ddc167167bd922b842199eeb6505e6f344852",
103 strip_prefix = "protobuf-3.11.3",
104 urls = [
105 "https://mirror.bazel.build/github.com/protocolbuffers/protobuf/archive/v3.11.3.tar.gz",
106 "https://github.com/protocolbuffers/protobuf/archive/v3.11.3.tar.gz",
107 ],
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",
elenairina623fe582020-02-18 07:53:40 -0800149 "java_tools_javac11_linux-v8.0.zip",
150 "java_tools_javac11_windows-v8.0.zip",
151 "java_tools_javac11_darwin-v8.0.zip",
Ulf Adams9588a9e2019-12-10 07:29:54 -0800152 "coverage_output_generator-v2.1.zip",
cparsons8121d852019-08-14 08:52:13 -0700153 "c7bbde2950769aac9a99364b0926230060a3ce04.tar.gz",
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800154 "1.25.0.zip",
155 "rules_nodejs-1.3.0.tar.gz",
Jingwen Chene91e1812020-03-20 07:44:28 -0700156 "android_tools_pkg-0.16.0.tar.gz",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800157 # bazelbuild/bazel-skylib
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800158 "2d4c9528e0f453b5950eeaeac11d8d09f5a504d4.tar.gz",
hlopkoaaf64572019-06-14 02:33:56 -0700159 # bazelbuild/platforms
aldersondrive64235c32019-11-18 08:50:39 -0800160 "46993efdd33b73649796c5fc5c9efb193ae19d51.zip",
iirinae8260492019-07-03 05:16:09 -0700161 # bazelbuild/rules_java
162 "7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
oquenchil96068872019-07-08 07:01:39 -0700163 # bazelbuild/rules_cc
Marcel Hlopko02d19662019-11-11 21:55:16 -0800164 "8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip",
Jakob Buchgraber60df9052019-07-11 06:08:00 -0700165 # bazelbuild/bazel-toolchains
philwo25f10692020-02-14 04:18:20 -0800166 "2.1.0.tar.gz",
iirinad26a3c12019-07-19 04:39:33 -0700167 # bazelbuild/rules_pkg
philwob14e4062020-01-27 03:02:32 -0800168 "rules_pkg-0.2.4.tar.gz",
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700169 # bazelbuild/rules_proto
Yannic Bonenbergercb44f662019-08-06 02:56:18 -0700170 "97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800171 # protocolbuffers/protobuf
172 "v3.11.3.tar.gz",
cparsons871cd6f2018-08-16 09:10:38 -0700173 ],
cushonb6646232018-09-07 01:44:10 -0700174 dirname = "derived/distdir",
Klaus Aehlig3c9cd822018-05-24 03:35:42 -0700175 sha256 = {
Klaus Aehligd4a8a472018-12-06 07:34:02 -0800176 "e0b0291b2c51fbe5a7cfa14473a1ae850f94f021.zip": "fe2e04f91ce8c59d49d91b8102edc6627c6fa2906c1b0e7346f01419ec4f419d",
elenairina623fe582020-02-18 07:53:40 -0800177 "java_tools_javac11_linux-v8.0.zip": "c24aef916cc5a8e9f6d53db1f93c54fe5790a58996a1099592e1dfe992acc81e",
178 "java_tools_javac11_windows-v8.0.zip": "444c391977e50af4e10549a28d021069d2ca7745a0e7b9b968a7b153fe3ea430",
179 "java_tools_javac11_darwin-v8.0.zip": "e0291e8956ac295143da4a673ca50727f7376665ee82b649a4ee810b64ff76c1",
Ulf Adams9588a9e2019-12-10 07:29:54 -0800180 "coverage_output_generator-v2.1.zip": "96ac6bc9b9fbc67b532bcae562da1642409791e6a4b8e522f04946ee5cc3ff8e",
cparsons8121d852019-08-14 08:52:13 -0700181 "c7bbde2950769aac9a99364b0926230060a3ce04.tar.gz": "e6a76586b264f30679688f65f7e71ac112d1446681010a13bf22d9ca071f34b7",
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800182 # rules_sass
183 "1.25.0.zip": "c78be58f5e0a29a04686b628cf54faaee0094322ae0ac99da5a8a8afca59a647",
184 # rules_nodejs
185 "rules_nodejs-1.3.0.tar.gz": "b6670f9f43faa66e3009488bbd909bc7bc46a5a9661a33f6bc578068d1837f37",
Jingwen Chene91e1812020-03-20 07:44:28 -0700186 "android_tools_pkg-0.16.0.tar.gz": "e2cbd43a9d23aa32197c29d689a7e017f205acb07053f5dd584f500a1a9d4361",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800187 # bazelbuild/bazel-skylib
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800188 "2d4c9528e0f453b5950eeaeac11d8d09f5a504d4.tar.gz": "c00ceec469dbcf7929972e3c79f20c14033824538038a554952f5c31d8832f96",
hlopkoaaf64572019-06-14 02:33:56 -0700189 # bazelbuild/platforms
aldersondrive64235c32019-11-18 08:50:39 -0800190 "46993efdd33b73649796c5fc5c9efb193ae19d51.zip": "66184688debeeefcc2a16a2f80b03f514deac8346fe888fb7e691a52c023dd88",
iirinae8260492019-07-03 05:16:09 -0700191 # bazelbuild/rules_java
192 "7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip": "bc81f1ba47ef5cc68ad32225c3d0e70b8c6f6077663835438da8d5733f917598",
oquenchil96068872019-07-08 07:01:39 -0700193 # bazelbuild/rules_cc
Marcel Hlopko02d19662019-11-11 21:55:16 -0800194 "8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip": "1d4dbbd1e1e9b57d40bb0ade51c9e882da7658d5bfbf22bbd15b68e7879d761f",
Jakob Buchgraber60df9052019-07-11 06:08:00 -0700195 # bazelbuild/bazel-toolchains
philwo25f10692020-02-14 04:18:20 -0800196 "2.1.0.tar.gz": "4d348abfaddbcee0c077fc51bb1177065c3663191588ab3d958f027cbfe1818b",
iirinad26a3c12019-07-19 04:39:33 -0700197 # bazelbuild/rules_pkg
philwob14e4062020-01-27 03:02:32 -0800198 "rules_pkg-0.2.4.tar.gz": "4ba8f4ab0ff85f2484287ab06c0d871dcb31cc54d439457d28fd4ae14b18450a",
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700199 # bazelbuild/rules_proto
Yannic Bonenbergercb44f662019-08-06 02:56:18 -0700200 "97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz": "602e7161d9195e50246177e7c55b2f39950a9cf7366f74ed5f22fd45750cd208",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800201 # protocolbuffers/protobuf
202 "v3.11.3.tar.gz": "cf754718b0aa945b00550ed7962ddc167167bd922b842199eeb6505e6f344852",
cushonb6646232018-09-07 01:44:10 -0700203 },
204 urls = {
hlopko6b06acc2019-03-25 04:40:10 -0700205 "e0b0291b2c51fbe5a7cfa14473a1ae850f94f021.zip": [
206 "https://mirror.bazel.build/github.com/google/desugar_jdk_libs/archive/e0b0291b2c51fbe5a7cfa14473a1ae850f94f021.zip",
207 "https://github.com/google/desugar_jdk_libs/archive/e0b0291b2c51fbe5a7cfa14473a1ae850f94f021.zip",
208 ],
elenairina623fe582020-02-18 07:53:40 -0800209 "java_tools_javac11_linux-v8.0.zip": [
210 "https://mirror.bazel.build/bazel_java_tools/releases/javac11/v8.0/java_tools_javac11_linux-v8.0.zip",
hlopko6b06acc2019-03-25 04:40:10 -0700211 ],
elenairina623fe582020-02-18 07:53:40 -0800212 "java_tools_javac11_windows-v8.0.zip": [
213 "https://mirror.bazel.build/bazel_java_tools/releases/javac11/v8.0/java_tools_javac11_windows-v8.0.zip",
hlopko6b06acc2019-03-25 04:40:10 -0700214 ],
elenairina623fe582020-02-18 07:53:40 -0800215 "java_tools_javac11_darwin-v8.0.zip": [
216 "https://mirror.bazel.build/bazel_java_tools/releases/javac11/v8.0/java_tools_javac11_darwin-v8.0.zip",
hlopko6b06acc2019-03-25 04:40:10 -0700217 ],
Ulf Adams9588a9e2019-12-10 07:29:54 -0800218 "coverage_output_generator-v2.1.zip": [
219 "https://mirror.bazel.build/bazel_coverage_output_generator/releases/coverage_output_generator-v2.1.zip",
iirinaec2b0802019-04-09 10:43:48 -0700220 ],
cparsons8121d852019-08-14 08:52:13 -0700221 "c7bbde2950769aac9a99364b0926230060a3ce04.tar.gz": [
222 "https://mirror.bazel.build/github.com/bazelbuild/skydoc/archive/c7bbde2950769aac9a99364b0926230060a3ce04.tar.gz",
223 "https://github.com/bazelbuild/skydoc/archive/c7bbde2950769aac9a99364b0926230060a3ce04.tar.gz",
hlopko6b06acc2019-03-25 04:40:10 -0700224 ],
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800225 "1.25.0.zip": [
226 "https://mirror.bazel.build/github.com/bazelbuild/rules_sass/archive/1.25.0.zip",
227 "https://github.com/bazelbuild/rules_sass/archive/1.25.0.zip",
hlopko6b06acc2019-03-25 04:40:10 -0700228 ],
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800229 "rules_nodejs-1.3.0.tar.gz": [
230 "https://mirror.bazel.build/github.com/bazelbuild/rules_nodejs/archive/rules_nodejs-1.3.0.tar.gz",
231 "https://github.com/bazelbuild/rules_nodejs/archive/rules_nodejs-1.3.0.tar.gz",
hlopko6b06acc2019-03-25 04:40:10 -0700232 ],
Jingwen Chene91e1812020-03-20 07:44:28 -0700233 "android_tools_pkg-0.16.0.tar.gz": [
234 "https://mirror.bazel.build/bazel_android_tools/android_tools_pkg-0.16.0.tar.gz",
Jingwen Chen186929e2019-04-02 10:38:30 -0700235 ],
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800236 # bazelbuild/bazel-skylib
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800237 "2d4c9528e0f453b5950eeaeac11d8d09f5a504d4.tar.gz": [
238 "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/archive/2d4c9528e0f453b5950eeaeac11d8d09f5a504d4.tar.gz",
239 "https://github.com/bazelbuild/bazel-skylib/archive/2d4c9528e0f453b5950eeaeac11d8d09f5a504d4.tar.gz",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800240 ],
hlopkoaaf64572019-06-14 02:33:56 -0700241 # bazelbuild/platforms
aldersondrive64235c32019-11-18 08:50:39 -0800242 "46993efdd33b73649796c5fc5c9efb193ae19d51.zip": [
243 "https://mirror.bazel.build/github.com/bazelbuild/platforms/archive/46993efdd33b73649796c5fc5c9efb193ae19d51.zip",
244 "https://github.com/bazelbuild/platforms/archive/46993efdd33b73649796c5fc5c9efb193ae19d51.zip",
hlopkoaaf64572019-06-14 02:33:56 -0700245 ],
iirinae8260492019-07-03 05:16:09 -0700246 # bazelbuild/rules_java
247 "7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip": [
oquenchil96068872019-07-08 07:01:39 -0700248 "https://mirror.bazel.build/github.com/bazelbuild/rules_java/archive/7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
iirinae8260492019-07-03 05:16:09 -0700249 "https://github.com/bazelbuild/rules_java/archive/7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
oquenchil96068872019-07-08 07:01:39 -0700250 ],
251 # bazelbuild/rules_cc
Marcel Hlopko02d19662019-11-11 21:55:16 -0800252 "8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip": [
253 "https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip",
254 "https://github.com/bazelbuild/rules_cc/archive/8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip",
oquenchil96068872019-07-08 07:01:39 -0700255 ],
Jakob Buchgraber60df9052019-07-11 06:08:00 -0700256 # bazelbuild/bazel-toolchains
philwo25f10692020-02-14 04:18:20 -0800257 "2.1.0.tar.gz": [
258 "https://mirror.bazel.build/github.com/bazelbuild/bazel-toolchains/archive/2.1.0.tar.gz",
259 "https://github.com/bazelbuild/bazel-toolchains/releases/download/2.1.0/bazel-toolchains-2.1.0.tar.gz",
Jakob Buchgraber60df9052019-07-11 06:08:00 -0700260 ],
Tony Aiutoed8a5ec2019-07-17 08:33:48 -0700261 # bazelbuild/rules_pkg
philwob14e4062020-01-27 03:02:32 -0800262 "rules_pkg-0.2.4.tar.gz": [
263 "https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.2.4/rules_pkg-0.2.4.tar.gz",
264 "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 -0700265 ],
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700266 # bazelbuild/rules_proto
Yannic Bonenbergercb44f662019-08-06 02:56:18 -0700267 "97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz": [
268 "https://mirror.bazel.build/github.com/bazelbuild/rules_proto/archive/97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz",
269 "https://github.com/bazelbuild/rules_proto/archive/97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz",
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700270 ],
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800271 # protocolbuffers/protobuf
272 "v3.11.3.tar.gz": [
273 "https://mirror.bazel.build/github.com/protocolbuffers/protobuf/archive/v3.11.3.tar.gz",
274 "https://github.com/protocolbuffers/protobuf/archive/v3.11.3.tar.gz",
275 ],
cushonb6646232018-09-07 01:44:10 -0700276 },
Klaus Aehlig3c9cd822018-05-24 03:35:42 -0700277)
278
Philipp Wollermann95048272017-03-17 15:11:58 +0000279# OpenJDK distributions used to create a version of Bazel bundled with the OpenJDK.
280http_file(
281 name = "openjdk_linux",
philwo75edd782019-01-29 05:02:44 -0800282 downloaded_file_path = "zulu-linux.tar.gz",
philwo3ac4af42020-02-14 07:58:55 -0800283 sha256 = "65bfe4e0ffa74a680ee4410db46b17e30cd9397b664a92a886599fe1f3530969",
284 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 +0000285)
286
Tobias Werth218e8f62018-12-13 04:44:35 -0800287http_file(
288 name = "openjdk_linux_vanilla",
philwo75edd782019-01-29 05:02:44 -0800289 downloaded_file_path = "zulu-linux-vanilla.tar.gz",
philwo3ac4af42020-02-14 07:58:55 -0800290 sha256 = "360626cc19063bc411bfed2914301b908a8f77a7919aaea007a977fa8fb3cde1",
291 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 -0800292)
293
Tobias Werthfbf8fb92019-01-09 11:22:11 -0800294http_file(
295 name = "openjdk_linux_minimal",
philwo75edd782019-01-29 05:02:44 -0800296 downloaded_file_path = "zulu-linux-minimal.tar.gz",
philwo3ac4af42020-02-14 07:58:55 -0800297 sha256 = "91f7d52f695c681d4e21499b4319d548aadef249a6b3053e306308992e1e29ae",
298 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 -0800299)
300
Philipp Wollermann95048272017-03-17 15:11:58 +0000301http_file(
philwo9f7fe692019-06-27 06:53:12 -0700302 name = "openjdk_linux_aarch64",
303 downloaded_file_path = "zulu-linux-aarch64.tar.gz",
philwo3ac4af42020-02-14 07:58:55 -0800304 sha256 = "6b245793087300db3ee82ab0d165614f193a73a60f2f011e347756c1e6ca5bac",
305 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 -0700306)
307
308http_file(
309 name = "openjdk_linux_aarch64_vanilla",
310 downloaded_file_path = "zulu-linux-aarch64-vanilla.tar.gz",
philwo3ac4af42020-02-14 07:58:55 -0800311 sha256 = "a452f1b9682d9f83c1c14e54d1446e1c51b5173a3a05dcb013d380f9508562e4",
312 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 -0700313)
314
315http_file(
316 name = "openjdk_linux_aarch64_minimal",
317 downloaded_file_path = "zulu-linux-aarch64-minimal.tar.gz",
philwo3ac4af42020-02-14 07:58:55 -0800318 sha256 = "06f6520a877704c77614bcfc4f846cc7cbcbf5eaad149bf7f19f4f16e285c9de",
319 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 -0700320)
321
322http_file(
Philipp Wollermann95048272017-03-17 15:11:58 +0000323 name = "openjdk_macos",
philwo75edd782019-01-29 05:02:44 -0800324 downloaded_file_path = "zulu-macos.tar.gz",
philwo3ac4af42020-02-14 07:58:55 -0800325 sha256 = "8e283cfd23c7555be8e17295ed76eb8f00324c88ab904b8de37bbe08f90e569b",
326 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 +0000327)
328
329http_file(
Tobias Werth218e8f62018-12-13 04:44:35 -0800330 name = "openjdk_macos_vanilla",
philwo75edd782019-01-29 05:02:44 -0800331 downloaded_file_path = "zulu-macos-vanilla.tar.gz",
philwo3ac4af42020-02-14 07:58:55 -0800332 sha256 = "e1fe56769f32e2aaac95e0a8f86b5a323da5af3a3b4bba73f3086391a6cc056f",
333 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 -0800334)
335
336http_file(
Tobias Werthfbf8fb92019-01-09 11:22:11 -0800337 name = "openjdk_macos_minimal",
philwo75edd782019-01-29 05:02:44 -0800338 downloaded_file_path = "zulu-macos-minimal.tar.gz",
philwo3ac4af42020-02-14 07:58:55 -0800339 sha256 = "1bacb1c07035d4066d79f0b65b4ea0ebd1954f3662bdfe3618da382ac8fd23a6",
340 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 -0800341)
342
343http_file(
Philipp Wollermann95048272017-03-17 15:11:58 +0000344 name = "openjdk_win",
philwo75edd782019-01-29 05:02:44 -0800345 downloaded_file_path = "zulu-win.zip",
philwo3ac4af42020-02-14 07:58:55 -0800346 sha256 = "8e1604b3a27dcf639bc6d1a73103f1211848139e4cceb081d0a74a99e1e6f995",
347 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 +0000348)
Googler5f36bf82017-07-12 20:43:08 +0200349
Tobias Werth218e8f62018-12-13 04:44:35 -0800350http_file(
351 name = "openjdk_win_vanilla",
philwo75edd782019-01-29 05:02:44 -0800352 downloaded_file_path = "zulu-win-vanilla.zip",
philwo3ac4af42020-02-14 07:58:55 -0800353 sha256 = "a9695617b8374bfa171f166951214965b1d1d08f43218db9a2a780b71c665c18",
354 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 -0800355)
356
Tobias Werthfbf8fb92019-01-09 11:22:11 -0800357http_file(
358 name = "openjdk_win_minimal",
philwo75edd782019-01-29 05:02:44 -0800359 downloaded_file_path = "zulu-win-minimal.zip",
philwo3ac4af42020-02-14 07:58:55 -0800360 sha256 = "b90a713c9c2d9ea23cad44d2c2dfcc9af22faba9bde55dedc1c3bb9f556ac1ae",
361 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 -0800362)
363
Googler5f36bf82017-07-12 20:43:08 +0200364http_archive(
Keith Smiley7fcbeec2019-04-23 17:06:02 -0700365 name = "bazel_toolchains",
philwo17506af2020-01-28 04:20:39 -0800366 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
367 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
philwo25f10692020-02-14 04:18:20 -0800368 sha256 = "4d348abfaddbcee0c077fc51bb1177065c3663191588ab3d958f027cbfe1818b",
369 strip_prefix = "bazel-toolchains-2.1.0",
Keith Smiley7fcbeec2019-04-23 17:06:02 -0700370 urls = [
philwo25f10692020-02-14 04:18:20 -0800371 "https://mirror.bazel.build/github.com/bazelbuild/bazel-toolchains/archive/2.1.0.tar.gz",
372 "https://github.com/bazelbuild/bazel-toolchains/releases/download/2.1.0/bazel-toolchains-2.1.0.tar.gz",
Keith Smiley7fcbeec2019-04-23 17:06:02 -0700373 ],
Googler5f36bf82017-07-12 20:43:08 +0200374)
ccalvarin1cbe62a2017-08-14 21:09:07 +0200375
Jakob Buchgraber60df9052019-07-11 06:08:00 -0700376load("@bazel_toolchains//rules:rbe_repo.bzl", "rbe_autoconfig")
377
378rbe_autoconfig(
379 name = "rbe_ubuntu1804_java11",
380 detect_java_home = True,
381 registry = "gcr.io",
philwo479857b2020-02-17 10:46:07 -0800382 repository = "bazel-public/ubuntu1804-bazel-java11",
383 tag = "latest",
Jakob Buchgraber60df9052019-07-11 06:08:00 -0700384)
385
386rbe_autoconfig(
387 name = "rbe_ubuntu1604_java8",
388 detect_java_home = True,
389 registry = "gcr.io",
philwo479857b2020-02-17 10:46:07 -0800390 repository = "bazel-public/ubuntu1604-bazel-java8",
391 tag = "latest",
Jakob Buchgraber3541ad62019-04-30 07:51:12 -0700392)
393
Googlerde0612a2019-03-07 06:06:55 -0800394# Creates toolchain configuration for remote execution with BuildKite CI
395# for rbe_ubuntu1604.
396# To run the tests with RBE on BuildKite CI uncomment the two lines below
397# load("@bazel_toolchains//rules:rbe_repo.bzl", "rbe_autoconfig")
398# rbe_autoconfig(name = "buildkite_config")
399
ccalvarin8e9f4a82018-03-23 08:19:37 -0700400http_archive(
401 name = "com_google_googletest",
Yannic Bonenberger5b4ab2d2019-10-15 05:38:04 -0700402 sha256 = "9dc9157a9a1551ec7a7e43daea9a694a0bb5fb8bec81235d8a1e6ef64c716dcb",
403 strip_prefix = "googletest-release-1.10.0",
ccalvarin8e9f4a82018-03-23 08:19:37 -0700404 urls = [
Yannic Bonenberger5b4ab2d2019-10-15 05:38:04 -0700405 "https://mirror.bazel.build/github.com/google/googletest/archive/release-1.10.0.tar.gz",
406 "https://github.com/google/googletest/archive/release-1.10.0.tar.gz",
ccalvarin8e9f4a82018-03-23 08:19:37 -0700407 ],
ccalvarin8e9f4a82018-03-23 08:19:37 -0700408)
409
cparsons871cd6f2018-08-16 09:10:38 -0700410http_archive(
411 name = "bazel_skylib",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800412 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
413 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800414 # Commit 2d4c9528e0f453b5950eeaeac11d8d09f5a504d4 of 2020-02-06
415 sha256 = "c00ceec469dbcf7929972e3c79f20c14033824538038a554952f5c31d8832f96",
416 strip_prefix = "bazel-skylib-2d4c9528e0f453b5950eeaeac11d8d09f5a504d4",
cparsons871cd6f2018-08-16 09:10:38 -0700417 urls = [
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800418 "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/archive/2d4c9528e0f453b5950eeaeac11d8d09f5a504d4.tar.gz",
419 "https://github.com/bazelbuild/bazel-skylib/archive/2d4c9528e0f453b5950eeaeac11d8d09f5a504d4.tar.gz",
cparsons871cd6f2018-08-16 09:10:38 -0700420 ],
cparsons871cd6f2018-08-16 09:10:38 -0700421)
cparsonsa5be6612018-08-27 13:21:21 -0700422
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700423# Note that skydoc depends on being called io_bazel_skydoc (and not just skydoc)
424# to work without being patched, as it hard-codes this name in its sources.
cparsonsa5be6612018-08-27 13:21:21 -0700425http_archive(
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700426 name = "io_bazel_skydoc",
cparsons8121d852019-08-14 08:52:13 -0700427 sha256 = "e6a76586b264f30679688f65f7e71ac112d1446681010a13bf22d9ca071f34b7",
428 strip_prefix = "skydoc-c7bbde2950769aac9a99364b0926230060a3ce04",
cparsonsa5be6612018-08-27 13:21:21 -0700429 urls = [
cparsons8121d852019-08-14 08:52:13 -0700430 "https://mirror.bazel.build/github.com/bazelbuild/skydoc/archive/c7bbde2950769aac9a99364b0926230060a3ce04.tar.gz",
431 "https://github.com/bazelbuild/skydoc/archive/c7bbde2950769aac9a99364b0926230060a3ce04.tar.gz",
cparsonsa5be6612018-08-27 13:21:21 -0700432 ],
cparsonsa5be6612018-08-27 13:21:21 -0700433)
Klaus Aehligacafe5a2018-10-24 03:16:42 -0700434
oquenchil96068872019-07-08 07:01:39 -0700435http_archive(
436 name = "rules_cc",
philwo17506af2020-01-28 04:20:39 -0800437 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
438 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
Marcel Hlopko02d19662019-11-11 21:55:16 -0800439 sha256 = "1d4dbbd1e1e9b57d40bb0ade51c9e882da7658d5bfbf22bbd15b68e7879d761f",
440 strip_prefix = "rules_cc-8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0",
oquenchil96068872019-07-08 07:01:39 -0700441 urls = [
Marcel Hlopko02d19662019-11-11 21:55:16 -0800442 "https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip",
443 "https://github.com/bazelbuild/rules_cc/archive/8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip",
oquenchil96068872019-07-08 07:01:39 -0700444 ],
445)
446
iirinab815b792019-07-17 05:47:01 -0700447http_archive(
448 name = "rules_java",
philwo17506af2020-01-28 04:20:39 -0800449 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
450 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
iirinab815b792019-07-17 05:47:01 -0700451 sha256 = "bc81f1ba47ef5cc68ad32225c3d0e70b8c6f6077663835438da8d5733f917598",
iirinad26a3c12019-07-19 04:39:33 -0700452 strip_prefix = "rules_java-7cf3cefd652008d0a64a419c34c13bdca6c8f178",
iirinab815b792019-07-17 05:47:01 -0700453 urls = [
iirinad26a3c12019-07-19 04:39:33 -0700454 "https://mirror.bazel.build/github.com/bazelbuild/rules_java/archive/7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
455 "https://github.com/bazelbuild/rules_java/archive/7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
iirinab815b792019-07-17 05:47:01 -0700456 ],
iirinab815b792019-07-17 05:47:01 -0700457)
458
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700459http_archive(
460 name = "rules_proto",
philwo17506af2020-01-28 04:20:39 -0800461 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
462 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
Yannic Bonenbergercb44f662019-08-06 02:56:18 -0700463 sha256 = "602e7161d9195e50246177e7c55b2f39950a9cf7366f74ed5f22fd45750cd208",
464 strip_prefix = "rules_proto-97d8af4dc474595af3900dd85cb3a29ad28cc313",
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700465 urls = [
Yannic Bonenbergercb44f662019-08-06 02:56:18 -0700466 "https://mirror.bazel.build/github.com/bazelbuild/rules_proto/archive/97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz",
467 "https://github.com/bazelbuild/rules_proto/archive/97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz",
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700468 ],
469)
470
Klaus Aehligacafe5a2018-10-24 03:16:42 -0700471# For testing, have an distdir_tar with all the archives implicit in every
472# WORKSPACE, to that they don't have to be refetched for every test
473# calling `bazel sync`.
474distdir_tar(
Jingwen Chen186929e2019-04-02 10:38:30 -0700475 name = "test_WORKSPACE_files",
philwo75edd782019-01-29 05:02:44 -0800476 archives = [
elenairina623fe582020-02-18 07:53:40 -0800477 "java_tools_javac11_linux-v8.0.zip",
478 "java_tools_javac11_windows-v8.0.zip",
479 "java_tools_javac11_darwin-v8.0.zip",
Ulf Adams9588a9e2019-12-10 07:29:54 -0800480 "coverage_output_generator-v2.1.zip",
philwo3ac4af42020-02-14 07:58:55 -0800481 "zulu11.37.17-ca-jdk11.0.6-linux_x64.tar.gz",
482 "zulu11.37.48-ca-jdk11.0.6-linux_aarch64.tar.gz",
483 "zulu11.37.17-ca-jdk11.0.6-macosx_x64.tar.gz",
484 "zulu11.37.17-ca-jdk11.0.6-win_x64.zip",
Jingwen Chene91e1812020-03-20 07:44:28 -0700485 "android_tools_pkg-0.16.0.tar.gz",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800486 # bazelbuild/bazel-skylib
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800487 "2d4c9528e0f453b5950eeaeac11d8d09f5a504d4.tar.gz",
hlopkoaaf64572019-06-14 02:33:56 -0700488 # bazelbuild/platforms
aldersondrive64235c32019-11-18 08:50:39 -0800489 "46993efdd33b73649796c5fc5c9efb193ae19d51.zip",
iirinae8260492019-07-03 05:16:09 -0700490 # bazelbuild/rules_java
491 "7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
oquenchil96068872019-07-08 07:01:39 -0700492 # bazelbuild/rules_cc
Marcel Hlopko02d19662019-11-11 21:55:16 -0800493 "8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip",
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700494 # bazelbuild/rules_proto
Yannic Bonenbergercb44f662019-08-06 02:56:18 -0700495 "97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800496 # protocolbuffers/protobuf
497 "v3.11.3.tar.gz",
philwo75edd782019-01-29 05:02:44 -0800498 ],
Jingwen Chen186929e2019-04-02 10:38:30 -0700499 dirname = "test_WORKSPACE/distdir",
philwo75edd782019-01-29 05:02:44 -0800500 sha256 = {
elenairina623fe582020-02-18 07:53:40 -0800501 "java_tools_javac11_linux-v8.0.zip": "c24aef916cc5a8e9f6d53db1f93c54fe5790a58996a1099592e1dfe992acc81e",
502 "java_tools_javac11_windows-v8.0.zip": "444c391977e50af4e10549a28d021069d2ca7745a0e7b9b968a7b153fe3ea430",
503 "java_tools_javac11_darwin-v8.0.zip": "e0291e8956ac295143da4a673ca50727f7376665ee82b649a4ee810b64ff76c1",
Ulf Adams9588a9e2019-12-10 07:29:54 -0800504 "coverage_output_generator-v2.1.zip": "96ac6bc9b9fbc67b532bcae562da1642409791e6a4b8e522f04946ee5cc3ff8e",
philwo3ac4af42020-02-14 07:58:55 -0800505 "zulu11.37.17-ca-jdk11.0.6-linux_x64.tar.gz": "360626cc19063bc411bfed2914301b908a8f77a7919aaea007a977fa8fb3cde1",
philwoe158fe72020-02-17 06:32:43 -0800506 "zulu11.37.48-ca-jdk11.0.6-linux_aarch64.tar.gz": "a452f1b9682d9f83c1c14e54d1446e1c51b5173a3a05dcb013d380f9508562e4",
philwo3ac4af42020-02-14 07:58:55 -0800507 "zulu11.37.17-ca-jdk11.0.6-macosx_x64.tar.gz": "e1fe56769f32e2aaac95e0a8f86b5a323da5af3a3b4bba73f3086391a6cc056f",
508 "zulu11.37.17-ca-jdk11.0.6-win_x64.zip": "a9695617b8374bfa171f166951214965b1d1d08f43218db9a2a780b71c665c18",
Jingwen Chene91e1812020-03-20 07:44:28 -0700509 "android_tools_pkg-0.16.0.tar.gz": "e2cbd43a9d23aa32197c29d689a7e017f205acb07053f5dd584f500a1a9d4361",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800510 # bazelbuild/bazel-skylib
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800511 "2d4c9528e0f453b5950eeaeac11d8d09f5a504d4.tar.gz": "c00ceec469dbcf7929972e3c79f20c14033824538038a554952f5c31d8832f96",
hlopkoaaf64572019-06-14 02:33:56 -0700512 # bazelbuild/platforms
aldersondrive64235c32019-11-18 08:50:39 -0800513 "46993efdd33b73649796c5fc5c9efb193ae19d51.zip": "66184688debeeefcc2a16a2f80b03f514deac8346fe888fb7e691a52c023dd88",
iirinae8260492019-07-03 05:16:09 -0700514 # bazelbuild/rules_java
515 "7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip": "bc81f1ba47ef5cc68ad32225c3d0e70b8c6f6077663835438da8d5733f917598",
oquenchil96068872019-07-08 07:01:39 -0700516 # bazelbuild/rules_cc
Marcel Hlopko02d19662019-11-11 21:55:16 -0800517 "8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip": "1d4dbbd1e1e9b57d40bb0ade51c9e882da7658d5bfbf22bbd15b68e7879d761f",
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700518 # bazelbuild/rules_proto
Yannic Bonenbergercb44f662019-08-06 02:56:18 -0700519 "97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz": "602e7161d9195e50246177e7c55b2f39950a9cf7366f74ed5f22fd45750cd208",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800520 # protocolbuffers/protobuf
521 "v3.11.3.tar.gz": "cf754718b0aa945b00550ed7962ddc167167bd922b842199eeb6505e6f344852",
philwo75edd782019-01-29 05:02:44 -0800522 },
523 urls = {
elenairina623fe582020-02-18 07:53:40 -0800524 "java_tools_javac11_linux-v8.0.zip": ["https://mirror.bazel.build/bazel_java_tools/releases/javac11/v8.0/java_tools_javac11_linux-v8.0.zip"],
525 "java_tools_javac11_windows-v8.0.zip": ["https://mirror.bazel.build/bazel_java_tools/releases/javac11/v8.0/java_tools_javac11_windows-v8.0.zip"],
526 "java_tools_javac11_darwin-v8.0.zip": ["https://mirror.bazel.build/bazel_java_tools/releases/javac11/v8.0/java_tools_javac11_darwin-v8.0.zip"],
Ulf Adams9588a9e2019-12-10 07:29:54 -0800527 "coverage_output_generator-v2.1.zip": ["https://mirror.bazel.build/bazel_coverage_output_generator/releases/coverage_output_generator-v2.1.zip"],
philwo3ac4af42020-02-14 07:58:55 -0800528 "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"],
529 "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"],
530 "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"],
531 "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"],
Jingwen Chene91e1812020-03-20 07:44:28 -0700532 "android_tools_pkg-0.16.0.tar.gz": [
533 "https://mirror.bazel.build/bazel_android_tools/android_tools_pkg-0.16.0.tar.gz",
Jingwen Chen186929e2019-04-02 10:38:30 -0700534 ],
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800535 # bazelbuild/bazel-skylib
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800536 "2d4c9528e0f453b5950eeaeac11d8d09f5a504d4.tar.gz": [
537 "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/archive/2d4c9528e0f453b5950eeaeac11d8d09f5a504d4.tar.gz",
538 "https://github.com/bazelbuild/bazel-skylib/archive/2d4c9528e0f453b5950eeaeac11d8d09f5a504d4.tar.gz",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800539 ],
hlopkoaaf64572019-06-14 02:33:56 -0700540 # bazelbuild/platforms
aldersondrive64235c32019-11-18 08:50:39 -0800541 "46993efdd33b73649796c5fc5c9efb193ae19d51.zip": [
542 "https://mirror.bazel.build/github.com/bazelbuild/platforms/archive/46993efdd33b73649796c5fc5c9efb193ae19d51.zip",
543 "https://github.com/bazelbuild/platforms/archive/46993efdd33b73649796c5fc5c9efb193ae19d51.zip",
hlopkoaaf64572019-06-14 02:33:56 -0700544 ],
iirinae8260492019-07-03 05:16:09 -0700545 # bazelbuild/rules_java
546 "7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip": [
oquenchil96068872019-07-08 07:01:39 -0700547 "https://mirror.bazel.build/github.com/bazelbuild/rules_java/archive/7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
Jakob Buchgraber60df9052019-07-11 06:08:00 -0700548 "https://github.com/bazelbuild/rules_java/archive/7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
oquenchil96068872019-07-08 07:01:39 -0700549 ],
550 # bazelbuild/rules_cc
Marcel Hlopko02d19662019-11-11 21:55:16 -0800551 "8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip": [
552 "https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip",
553 "https://github.com/bazelbuild/rules_cc/archive/8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip",
oquenchil96068872019-07-08 07:01:39 -0700554 ],
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700555 # bazelbuild/rules_proto
Yannic Bonenbergercb44f662019-08-06 02:56:18 -0700556 "97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz": [
557 "https://mirror.bazel.build/github.com/bazelbuild/rules_proto/archive/97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz",
558 "https://github.com/bazelbuild/rules_proto/archive/97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz",
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700559 ],
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800560 # protocolbuffers/protobuf
561 "v3.11.3.tar.gz": [
562 "https://mirror.bazel.build/github.com/protocolbuffers/protobuf/archive/v3.11.3.tar.gz",
563 "https://github.com/protocolbuffers/protobuf/archive/v3.11.3.tar.gz",
564 ],
philwo75edd782019-01-29 05:02:44 -0800565 },
Klaus Aehligacafe5a2018-10-24 03:16:42 -0700566)
Jingwen Chen186bdcd2018-12-14 10:27:23 -0800567
568load("//scripts/docs:doc_versions.bzl", "DOC_VERSIONS")
569
570[http_file(
571 name = "jekyll_tree_%s" % DOC_VERSION["version"].replace(".", "_"),
572 sha256 = DOC_VERSION["sha256"],
573 urls = ["https://mirror.bazel.build/bazel_versioned_docs/jekyll-tree-%s.tar" % DOC_VERSION["version"]],
574) for DOC_VERSION in DOC_VERSIONS]
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700575
576# Skydoc recommends declaring its dependencies via "*_dependencies" functions.
577# This requires that the repositories these functions come from need to be
578# fetched unconditionally for everything (including just building bazel!), so
579# provide them as http_archives that can be shiped in the distdir, to keep the
580# distribution archive self-contained.
581http_archive(
582 name = "io_bazel_rules_sass",
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800583 sha256 = "c78be58f5e0a29a04686b628cf54faaee0094322ae0ac99da5a8a8afca59a647",
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700584 urls = [
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800585 "https://mirror.bazel.build/github.com/bazelbuild/rules_sass/archive/1.25.0.zip",
586 "https://github.com/bazelbuild/rules_sass/archive/1.25.0.zip",
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700587 ],
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800588 strip_prefix = "rules_sass-1.25.0",
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700589)
iirinaf5c334262019-03-19 02:44:59 -0700590
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700591http_archive(
592 name = "build_bazel_rules_nodejs",
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800593 sha256 = "b6670f9f43faa66e3009488bbd909bc7bc46a5a9661a33f6bc578068d1837f37",
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700594 urls = [
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800595 "https://mirror.bazel.build/github.com/bazelbuild/rules_nodejs/releases/download/1.3.0/rules_nodejs-1.3.0.tar.gz",
596 "https://github.com/bazelbuild/rules_nodejs/releases/download/1.3.0/rules_nodejs-1.3.0.tar.gz",
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700597 ],
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700598)
599
iirina3ab4dbc2019-04-29 05:12:39 -0700600http_archive(
iirinaa6e92602019-05-13 06:20:12 -0700601 name = "java_tools_langtools_javac11",
iirinab815b792019-07-17 05:47:01 -0700602 sha256 = "cf0814fa002ef3d794582bb086516d8c9ed0958f83f19799cdb08949019fe4c7",
iirinaa6e92602019-05-13 06:20:12 -0700603 urls = [
iirinab815b792019-07-17 05:47:01 -0700604 "https://mirror.bazel.build/bazel_java_tools/jdk_langtools/langtools_jdk11_v2.zip",
iirinaa6e92602019-05-13 06:20:12 -0700605 ],
606)
607
iirina0eec6932019-06-12 07:48:22 -0700608http_archive(
hlopkoaaf64572019-06-14 02:33:56 -0700609 name = "platforms",
aldersondrive64235c32019-11-18 08:50:39 -0800610 sha256 = "66184688debeeefcc2a16a2f80b03f514deac8346fe888fb7e691a52c023dd88",
611 strip_prefix = "platforms-46993efdd33b73649796c5fc5c9efb193ae19d51",
hlopkoaaf64572019-06-14 02:33:56 -0700612 urls = [
aldersondrive64235c32019-11-18 08:50:39 -0800613 "https://mirror.bazel.build/github.com/bazelbuild/platforms/archive/46993efdd33b73649796c5fc5c9efb193ae19d51.zip",
614 "https://github.com/bazelbuild/platforms/archive/46993efdd33b73649796c5fc5c9efb193ae19d51.zip",
hlopkoaaf64572019-06-14 02:33:56 -0700615 ],
hlopkoaaf64572019-06-14 02:33:56 -0700616)
617
618http_archive(
iirina0eec6932019-06-12 07:48:22 -0700619 name = "java_tools_langtools_javac12",
620 sha256 = "99b107105165a91df82cd7cf82a8efb930d803fb7de1663cf7f780142104cd14",
621 urls = [
622 "https://mirror.bazel.build/bazel_java_tools/jdk_langtools/langtools_jdk12.zip",
623 ],
624)
625
philwo17506af2020-01-28 04:20:39 -0800626# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/android/android_remote_tools.WORKSPACE
627http_archive(
628 name = "android_tools_for_testing",
629 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
630 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
Jingwen Chene91e1812020-03-20 07:44:28 -0700631 sha256 = "e2cbd43a9d23aa32197c29d689a7e017f205acb07053f5dd584f500a1a9d4361", # DO_NOT_REMOVE_THIS_ANDROID_TOOLS_UPDATE_MARKER
632 url = "https://mirror.bazel.build/bazel_android_tools/android_tools_pkg-0.16.0.tar.gz",
philwo17506af2020-01-28 04:20:39 -0800633)
634
635# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/coverage.WORKSPACE.
636http_archive(
637 name = "remote_coverage_tools_for_testing",
638 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
639 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
640 sha256 = "96ac6bc9b9fbc67b532bcae562da1642409791e6a4b8e522f04946ee5cc3ff8e",
641 urls = [
642 "https://mirror.bazel.build/bazel_coverage_output_generator/releases/coverage_output_generator-v2.1.zip",
643 ],
644)
645
646# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
647http_archive(
philwo17506af2020-01-28 04:20:39 -0800648 name = "remotejdk11_linux_for_testing",
649 build_file = "@local_jdk//:BUILD.bazel",
650 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
651 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
philwo8b1ef422020-02-14 08:26:00 -0800652 sha256 = "360626cc19063bc411bfed2914301b908a8f77a7919aaea007a977fa8fb3cde1",
653 strip_prefix = "zulu11.37.17-ca-jdk11.0.6-linux_x64",
654 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 -0800655)
656
657# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
658http_archive(
659 name = "remotejdk11_linux_aarch64_for_testing",
660 build_file = "@local_jdk//:BUILD.bazel",
661 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
662 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
philwo8b1ef422020-02-14 08:26:00 -0800663 sha256 = "a452f1b9682d9f83c1c14e54d1446e1c51b5173a3a05dcb013d380f9508562e4",
664 strip_prefix = "zulu11.37.48-ca-jdk11.0.6-linux_aarch64",
665 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 -0800666)
667
668# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
669http_archive(
670 name = "remotejdk11_macos_for_testing",
671 build_file = "@local_jdk//:BUILD.bazel",
672 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
673 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
philwo8b1ef422020-02-14 08:26:00 -0800674 sha256 = "e1fe56769f32e2aaac95e0a8f86b5a323da5af3a3b4bba73f3086391a6cc056f",
675 strip_prefix = "zulu11.37.17-ca-jdk11.0.6-macosx_x64",
676 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 -0800677)
678
679# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
680http_archive(
681 name = "remotejdk11_win_for_testing",
682 build_file = "@local_jdk//:BUILD.bazel",
683 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
684 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
philwo8b1ef422020-02-14 08:26:00 -0800685 sha256 = "a9695617b8374bfa171f166951214965b1d1d08f43218db9a2a780b71c665c18",
686 strip_prefix = "zulu11.37.17-ca-jdk11.0.6-win_x64",
687 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 -0800688)
689
690# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
691http_archive(
692 name = "remote_java_tools_linux_for_testing",
693 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
694 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
elenairina623fe582020-02-18 07:53:40 -0800695 sha256 = "c24aef916cc5a8e9f6d53db1f93c54fe5790a58996a1099592e1dfe992acc81e",
philwo17506af2020-01-28 04:20:39 -0800696 urls = [
elenairina623fe582020-02-18 07:53:40 -0800697 "https://mirror.bazel.build/bazel_java_tools/releases/javac11/v8.0/java_tools_javac11_linux-v8.0.zip",
698 "https://github.com/bazelbuild/java_tools/releases/download/javac11_v8.0/java_tools_javac11_linux-v8.0.zip",
philwo17506af2020-01-28 04:20:39 -0800699 ],
700)
701
702# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
703http_archive(
704 name = "remote_java_tools_windows_for_testing",
705 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
706 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
elenairina623fe582020-02-18 07:53:40 -0800707 sha256 = "444c391977e50af4e10549a28d021069d2ca7745a0e7b9b968a7b153fe3ea430",
philwo17506af2020-01-28 04:20:39 -0800708 urls = [
elenairina623fe582020-02-18 07:53:40 -0800709 "https://mirror.bazel.build/bazel_java_tools/releases/javac11/v8.0/java_tools_javac11_windows-v8.0.zip",
710 "https://github.com/bazelbuild/java_tools/releases/download/javac11_v8.0/java_tools_javac11_windows-v8.0.zip",
philwo17506af2020-01-28 04:20:39 -0800711 ],
712)
713
714# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
715http_archive(
716 name = "remote_java_tools_darwin_for_testing",
717 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
718 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
elenairina623fe582020-02-18 07:53:40 -0800719 sha256 = "e0291e8956ac295143da4a673ca50727f7376665ee82b649a4ee810b64ff76c1",
philwo17506af2020-01-28 04:20:39 -0800720 urls = [
elenairina623fe582020-02-18 07:53:40 -0800721 "https://mirror.bazel.build/bazel_java_tools/releases/javac11/v8.0/java_tools_javac11_darwin-v8.0.zip",
722 "https://github.com/bazelbuild/java_tools/releases/download/javac11_v8.0/java_tools_javac11_darwin-v8.0.zip",
philwo17506af2020-01-28 04:20:39 -0800723 ],
724)
725
726# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
727http_archive(
philwo17506af2020-01-28 04:20:39 -0800728 name = "remote_java_tools_javac11_test_linux",
729 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
730 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
elenairina623fe582020-02-18 07:53:40 -0800731 sha256 = "c24aef916cc5a8e9f6d53db1f93c54fe5790a58996a1099592e1dfe992acc81e",
philwo17506af2020-01-28 04:20:39 -0800732 urls = [
elenairina623fe582020-02-18 07:53:40 -0800733 "https://mirror.bazel.build/bazel_java_tools/releases/javac11/v8.0/java_tools_javac11_linux-v8.0.zip",
philwo17506af2020-01-28 04:20:39 -0800734 ],
735)
736
737# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
738http_archive(
739 name = "remote_java_tools_javac11_test_windows",
740 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
741 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
elenairina623fe582020-02-18 07:53:40 -0800742 sha256 = "444c391977e50af4e10549a28d021069d2ca7745a0e7b9b968a7b153fe3ea430",
philwo17506af2020-01-28 04:20:39 -0800743 urls = [
elenairina623fe582020-02-18 07:53:40 -0800744 "https://mirror.bazel.build/bazel_java_tools/releases/javac11/v8.0/java_tools_javac11_windows-v8.0.zip",
philwo17506af2020-01-28 04:20:39 -0800745 ],
746)
747
748# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
749http_archive(
750 name = "remote_java_tools_javac11_test_darwin",
751 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
752 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
elenairina623fe582020-02-18 07:53:40 -0800753 sha256 = "e0291e8956ac295143da4a673ca50727f7376665ee82b649a4ee810b64ff76c1",
philwo17506af2020-01-28 04:20:39 -0800754 urls = [
elenairina623fe582020-02-18 07:53:40 -0800755 "https://mirror.bazel.build/bazel_java_tools/releases/javac11/v8.0/java_tools_javac11_darwin-v8.0.zip",
philwo17506af2020-01-28 04:20:39 -0800756 ],
757)
758
759# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
760http_archive(
761 name = "remote_java_tools_javac12_test_linux",
762 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
763 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
764 sha256 = "3997ee9a57b095748f1c0d084839fab2fbc72504aeb7b37b1f71c31738d330e3",
765 urls = ["https://mirror.bazel.build/bazel_java_tools/releases/javac12/v3.0/java_tools_javac12_linux-v3.0.zip"],
766)
767
768# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
769http_archive(
770 name = "remote_java_tools_javac12_test_windows",
771 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
772 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
773 sha256 = "cfad1718dad1fed12816748eed27ab30b9ea1268c8ce9940acf3b5b7d82d483d",
774 urls = [
775 "https://mirror.bazel.build/bazel_java_tools/releases/javac12/v3.0/java_tools_javac12_windows-v3.0.zip",
776 ],
777)
778
779# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
780http_archive(
781 name = "remote_java_tools_javac12_test_darwin",
782 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
783 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
784 sha256 = "54df966e7583bafe659e39b4103a4ce934201d969de638d071ada07d8e0c1a3a",
785 urls = [
786 "https://mirror.bazel.build/bazel_java_tools/releases/javac12/v3.0/java_tools_javac12_darwin-v3.0.zip",
787 ],
788)
789
790# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
791http_archive(
philwo17506af2020-01-28 04:20:39 -0800792 name = "openjdk11_linux_archive",
793 build_file_content = """
794java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])
795exports_files(["WORKSPACE"], visibility = ["//visibility:public"])
796""",
philwo8b1ef422020-02-14 08:26:00 -0800797 sha256 = "360626cc19063bc411bfed2914301b908a8f77a7919aaea007a977fa8fb3cde1",
798 strip_prefix = "zulu11.37.17-ca-jdk11.0.6-linux_x64",
799 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 -0800800)
801
802# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
803http_archive(
804 name = "openjdk11_darwin_archive",
805 build_file_content = """
806java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])
807exports_files(["WORKSPACE"], visibility = ["//visibility:public"])
808""",
philwo8b1ef422020-02-14 08:26:00 -0800809 sha256 = "e1fe56769f32e2aaac95e0a8f86b5a323da5af3a3b4bba73f3086391a6cc056f",
810 strip_prefix = "zulu11.37.17-ca-jdk11.0.6-macosx_x64",
811 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 -0800812)
813
814# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
815http_archive(
816 name = "openjdk11_windows_archive",
817 build_file_content = """
818java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])
819exports_files(["WORKSPACE"], visibility = ["//visibility:public"])
820""",
philwo8b1ef422020-02-14 08:26:00 -0800821 sha256 = "a9695617b8374bfa171f166951214965b1d1d08f43218db9a2a780b71c665c18",
822 strip_prefix = "zulu11.37.17-ca-jdk11.0.6-win_x64",
823 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 -0800824)
825
826# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
827http_archive(
828 name = "openjdk12_linux_archive",
829 build_file_content = """
830java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])
831exports_files(["WORKSPACE"], visibility = ["//visibility:public"])
832""",
philwof1fdd7a2020-02-17 00:10:46 -0800833 sha256 = "529c99841d69e11a85aea967ccfb9d0fd40b98c5b68dbe1d059002655e0a9c13",
philwo17506af2020-01-28 04:20:39 -0800834 strip_prefix = "zulu12.2.3-ca-jdk12.0.1-linux_x64",
philwof1fdd7a2020-02-17 00:10:46 -0800835 urls = ["https://mirror.bazel.build/openjdk/azul-zulu12.2.3-ca-jdk12.0.1/zulu12.2.3-ca-jdk12.0.1-linux_x64.tar.gz"],
philwo17506af2020-01-28 04:20:39 -0800836)
837
838# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
839http_archive(
840 name = "openjdk12_darwin_archive",
841 build_file_content = """
842java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])
843exports_files(["WORKSPACE"], visibility = ["//visibility:public"])
844""",
philwof1fdd7a2020-02-17 00:10:46 -0800845 sha256 = "67ca9d285056132ebb19fa237a14affda52132142e1171fe1c20e18974b3b8a5",
philwo17506af2020-01-28 04:20:39 -0800846 strip_prefix = "zulu12.2.3-ca-jdk12.0.1-macosx_x64",
philwof1fdd7a2020-02-17 00:10:46 -0800847 urls = ["https://mirror.bazel.build/openjdk/azul-zulu12.2.3-ca-jdk12.0.1/zulu12.2.3-ca-jdk12.0.1-macosx_x64.tar.gz"],
philwo17506af2020-01-28 04:20:39 -0800848)
849
850# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
851http_archive(
852 name = "openjdk12_windows_archive",
853 build_file_content = """
854java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])
855exports_files(["WORKSPACE"], visibility = ["//visibility:public"])
856""",
philwof1fdd7a2020-02-17 00:10:46 -0800857 sha256 = "cf28404c23c3aa1115363ba6e796c30580a768e1d7d6681a7d053e516008e00d",
philwo17506af2020-01-28 04:20:39 -0800858 strip_prefix = "zulu12.2.3-ca-jdk12.0.1-win_x64",
philwof1fdd7a2020-02-17 00:10:46 -0800859 urls = ["https://mirror.bazel.build/openjdk/azul-zulu12.2.3-ca-jdk12.0.1/zulu12.2.3-ca-jdk12.0.1-win_x64.zip"],
philwo17506af2020-01-28 04:20:39 -0800860)
861
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700862load("@io_bazel_skydoc//:setup.bzl", "skydoc_repositories")
iirinaf5c334262019-03-19 02:44:59 -0700863
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700864skydoc_repositories()
865
866load("@io_bazel_rules_sass//:package.bzl", "rules_sass_dependencies")
iirinaf5c334262019-03-19 02:44:59 -0700867
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700868rules_sass_dependencies()
869
Laurent Le Brunda3d9f02020-02-18 05:53:57 -0800870load("@build_bazel_rules_nodejs//:index.bzl", "node_repositories")
iirinaf5c334262019-03-19 02:44:59 -0700871
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700872node_repositories()
873
874load("@io_bazel_rules_sass//:defs.bzl", "sass_repositories")
iirinaf5c334262019-03-19 02:44:59 -0700875
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700876sass_repositories()
Jakob Buchgraber593c5302019-04-16 10:12:20 -0700877
Keith Smiley7fcbeec2019-04-23 17:06:02 -0700878register_execution_platforms("//:default_host_platform") # buildozer: disable=positional-args
Tony Aiutoed8a5ec2019-07-17 08:33:48 -0700879
880# Tools for building deb, rpm and tar files.
881http_archive(
882 name = "rules_pkg",
philwo17506af2020-01-28 04:20:39 -0800883 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
884 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
philwob14e4062020-01-27 03:02:32 -0800885 sha256 = "4ba8f4ab0ff85f2484287ab06c0d871dcb31cc54d439457d28fd4ae14b18450a",
Tony Aiutoed8a5ec2019-07-17 08:33:48 -0700886 urls = [
philwob14e4062020-01-27 03:02:32 -0800887 "https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.2.4/rules_pkg-0.2.4.tar.gz",
888 "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 -0700889 ],
Tony Aiutoed8a5ec2019-07-17 08:33:48 -0700890)
iirinad26a3c12019-07-19 04:39:33 -0700891
Tony Aiutoed8a5ec2019-07-17 08:33:48 -0700892load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies")
iirinad26a3c12019-07-19 04:39:33 -0700893
Tony Aiutoed8a5ec2019-07-17 08:33:48 -0700894rules_pkg_dependencies()
Laszlo Csomor3e023182019-08-01 05:05:09 -0700895
896# Toolchains for Resource Compilation (.rc files on Windows).
897load("//src/main/res:winsdk_configure.bzl", "winsdk_configure")
898
899winsdk_configure(name = "local_config_winsdk")
900
901load("@local_config_winsdk//:toolchains.bzl", "register_local_rc_exe_toolchains")
902
903register_local_rc_exe_toolchains()
904
905register_toolchains("//src/main/res:empty_rc_toolchain")