blob: 180e10b486732505a338f243ed7f8fb574180ee1 [file] [log] [blame]
Kristina Chodorow93fbc3e2016-04-27 17:03:28 +00001workspace(name = "io_bazel")
philwo75edd782019-01-29 05:02:44 -08002
Klaus Aehliga55714c2018-10-23 02:16:02 -07003load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file")
Kristina Chodorow93fbc3e2016-04-27 17:03:28 +00004
David Chenb78bbd52016-03-16 13:17:57 +00005# Protobuf expects an //external:python_headers label which would contain the
6# Python headers if fast Python protos is enabled. Since we are not using fast
7# Python protos, bind python_headers to a dummy target.
8bind(
9 name = "python_headers",
10 actual = "//:dummy",
11)
12
Alpha Lama1a79cb2016-05-15 19:13:52 +000013# Protobuf code generation for GRPC requires three external labels:
14# //external:grpc-java_plugin
15# //external:grpc-jar
16# //external:guava
17bind(
18 name = "grpc-java-plugin",
19 actual = "//third_party/grpc:grpc-java-plugin",
20)
21
22bind(
23 name = "grpc-jar",
24 actual = "//third_party/grpc:grpc-jar",
25)
26
27bind(
28 name = "guava",
29 actual = "//third_party:guava",
30)
31
Jakob Buchgraber6e12e652017-05-02 11:53:15 +020032# Used by //third_party/protobuf:protobuf_python
33bind(
34 name = "six",
35 actual = "//third_party/py/six",
36)
37
Googler5b90b162017-08-31 16:29:34 +020038http_archive(
39 name = "bazel_j2objc",
iirinadcbad672019-07-17 04:45:21 -070040 # Computed using "shasum -a 256 j2objc-2.5.zip"
41 sha256 = "8d3403b5b7db57e347c943d214577f6879e5b175c2b59b7e075c0b6453330e9b",
42 strip_prefix = "j2objc-2.5",
hlopko6b06acc2019-03-25 04:40:10 -070043 urls = [
iirinadcbad672019-07-17 04:45:21 -070044 "https://miirror.bazel.build/github.com/google/j2objc/releases/download/2.5/j2objc-2.5.zip",
45 "https://github.com/google/j2objc/releases/download/2.5/j2objc-2.5.zip",
hlopko6b06acc2019-03-25 04:40:10 -070046 ],
Googler5b90b162017-08-31 16:29:34 +020047)
48
Damien Martin-Guillerez0baff0f2017-08-22 17:40:37 +020049# For src/test/shell/bazel:test_srcs
50load("//src/test/shell/bazel:list_source_repository.bzl", "list_source_repository")
cushonb6646232018-09-07 01:44:10 -070051
Damien Martin-Guillerez0baff0f2017-08-22 17:40:37 +020052list_source_repository(name = "local_bazel_source_list")
53
Adam Michael9b7330f2017-03-23 18:40:51 +000054# To run the Android integration tests in //src/test/shell/bazel/android:all or
55# build the Android sample app in //examples/android/java/bazel:hello_world
56#
57# 1. Install an Android SDK and NDK from https://developer.android.com
58# 2. Set the $ANDROID_HOME and $ANDROID_NDK_HOME environment variables
59# 3. Uncomment the two lines below
60#
61# android_sdk_repository(name = "androidsdk")
62# android_ndk_repository(name = "androidndk")
Cal Peyser2152bc12016-04-22 17:08:59 +000063
Adam Michael8a136d82016-11-16 23:04:46 +000064# In order to run //src/test/shell/bazel:maven_skylark_test, follow the
65# instructions above for the Android integration tests and uncomment the
66# following lines:
67# load("//tools/build_defs/repo:maven_rules.bzl", "maven_dependency_plugin")
68# maven_dependency_plugin()
69
Cal Peyser2152bc12016-04-22 17:08:59 +000070# This allows rules written in skylark to locate apple build tools.
philwo915fa8f2017-05-09 12:17:12 -040071bind(
72 name = "xcrunwrapper",
73 actual = "@bazel_tools//tools/objc:xcrunwrapper",
74)
Carmi Grushkobfaff292016-08-17 18:37:55 +000075
Jakob Buchgraber8ff0d0d2017-04-14 21:16:19 +020076new_local_repository(
Carmi Grushko0fd73d62017-02-17 06:49:40 +000077 name = "com_google_protobuf",
hlopkoead10022018-09-05 05:37:23 -070078 build_file = "./third_party/protobuf/3.6.1/BUILD",
79 path = "./third_party/protobuf/3.6.1/",
Carmi Grushko0fd73d62017-02-17 06:49:40 +000080)
81
brandjoncb4ba072019-08-01 12:41:43 -070082# This is a mock version of bazelbuild/rules_python that contains only
83# @rules_python//python:defs.bzl. It is used by protobuf.
84# TODO(#9029): We could potentially replace this with the real @rules_python.
85new_local_repository(
86 name = "rules_python",
87 path = "./third_party/rules_python",
88 build_file = "//third_party/rules_python:BUILD",
89 workspace_file = "//third_party/rules_python:rules_python.WORKSPACE",
90)
91
John Cater2f838922018-11-12 08:19:03 -080092local_repository(
Jakob Buchgraber166f28c2017-05-30 16:41:18 +020093 name = "googleapis",
cushonb6646232018-09-07 01:44:10 -070094 path = "./third_party/googleapis/",
Jakob Buchgraber166f28c2017-05-30 16:41:18 +020095)
96
John Cater2f838922018-11-12 08:19:03 -080097local_repository(
Ola Rozenfeld930119a2018-08-10 11:04:44 -070098 name = "remoteapis",
cushonb6646232018-09-07 01:44:10 -070099 path = "./third_party/remoteapis/",
Ola Rozenfeld930119a2018-08-10 11:04:44 -0700100)
101
kmbbfd89d62018-04-11 14:26:56 -0700102http_archive(
103 name = "desugar_jdk_libs",
Klaus Aehligd4a8a472018-12-06 07:34:02 -0800104 # Commit e0b0291b2c51fbe5a7cfa14473a1ae850f94f021 of 2018-12-4
kmbbfd89d62018-04-11 14:26:56 -0700105 # Computed using "shasum -a 256 <zip>"
kmba9641252018-12-05 13:17:58 -0800106 sha256 = "fe2e04f91ce8c59d49d91b8102edc6627c6fa2906c1b0e7346f01419ec4f419d",
107 strip_prefix = "desugar_jdk_libs-e0b0291b2c51fbe5a7cfa14473a1ae850f94f021",
philwof443d092019-01-08 11:11:09 -0800108 urls = [
philwo75edd782019-01-29 05:02:44 -0800109 "https://mirror.bazel.build/github.com/google/desugar_jdk_libs/archive/e0b0291b2c51fbe5a7cfa14473a1ae850f94f021.zip",
110 "https://github.com/google/desugar_jdk_libs/archive/e0b0291b2c51fbe5a7cfa14473a1ae850f94f021.zip",
111 ],
kmbbfd89d62018-04-11 14:26:56 -0700112)
113
Klaus Aehlig3c9cd822018-05-24 03:35:42 -0700114load("//:distdir.bzl", "distdir_tar")
cushonb6646232018-09-07 01:44:10 -0700115
Klaus Aehlig3c9cd822018-05-24 03:35:42 -0700116distdir_tar(
117 name = "additional_distfiles",
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700118 # Keep in sync with the archives fetched as part of building bazel.
cparsons871cd6f2018-08-16 09:10:38 -0700119 archives = [
Klaus Aehligd4a8a472018-12-06 07:34:02 -0800120 "e0b0291b2c51fbe5a7cfa14473a1ae850f94f021.zip",
Klaus Aehligdbe05df2018-12-06 06:00:49 -0800121 "f83cb8dd6f5658bc574ccd873e25197055265d1c.tar.gz",
iirinab32144422019-08-27 05:09:10 -0700122 "java_tools_javac11_linux-v5.0.zip",
123 "java_tools_javac11_windows-v5.0.zip",
124 "java_tools_javac11_darwin-v5.0.zip",
iirina22bb3e02019-09-03 05:53:01 -0700125 "coverage_output_generator-v2.0.zip",
cparsons8121d852019-08-14 08:52:13 -0700126 "c7bbde2950769aac9a99364b0926230060a3ce04.tar.gz",
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700127 "8ccf4f1c351928b55d5dddf3672e3667f6978d60.tar.gz",
128 "0.16.2.zip",
Donald Chaicf6ec602019-09-06 14:54:39 -0700129 "android_tools_pkg-0.11.tar.gz",
hlopkoaaf64572019-06-14 02:33:56 -0700130 # bazelbuild/platforms
131 "441afe1bfdadd6236988e9cac159df6b5a9f5a98.zip",
iirinae8260492019-07-03 05:16:09 -0700132 # bazelbuild/rules_java
133 "7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
oquenchil96068872019-07-08 07:01:39 -0700134 # bazelbuild/rules_cc
135 "0d5f3f2768c6ca2faca0079a997a97ce22997a0c.zip",
Jakob Buchgraber60df9052019-07-11 06:08:00 -0700136 # bazelbuild/bazel-toolchains
Laurent Le Brun79c40aa2019-08-07 09:04:01 -0700137 "0.28.3.tar.gz",
iirinad26a3c12019-07-19 04:39:33 -0700138 # bazelbuild/rules_pkg
139 "rules_pkg-0.2.0.tar.gz",
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700140 # bazelbuild/rules_proto
Yannic Bonenbergercb44f662019-08-06 02:56:18 -0700141 "97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz",
cparsons871cd6f2018-08-16 09:10:38 -0700142 ],
cushonb6646232018-09-07 01:44:10 -0700143 dirname = "derived/distdir",
Klaus Aehlig3c9cd822018-05-24 03:35:42 -0700144 sha256 = {
Klaus Aehligd4a8a472018-12-06 07:34:02 -0800145 "e0b0291b2c51fbe5a7cfa14473a1ae850f94f021.zip": "fe2e04f91ce8c59d49d91b8102edc6627c6fa2906c1b0e7346f01419ec4f419d",
Klaus Aehligdbe05df2018-12-06 06:00:49 -0800146 "f83cb8dd6f5658bc574ccd873e25197055265d1c.tar.gz": "ba5d15ca230efca96320085d8e4d58da826d1f81b444ef8afccd8b23e0799b52",
iirinab32144422019-08-27 05:09:10 -0700147 "java_tools_javac11_linux-v5.0.zip": "b644b1eb3743376ce3aeb0cc6a15374ca5676bf872cc653c3633751c8226e060",
148 "java_tools_javac11_windows-v5.0.zip": "116fef8a385873bfda5fa76e831959aa0ad0b12ca9a880bd0fc7252413ed7c1f",
149 "java_tools_javac11_darwin-v5.0.zip": "dfa0e6b6320325eb28023ed754022d985d462b4db468394be305a82f55e7dafa",
iirina22bb3e02019-09-03 05:53:01 -0700150 "coverage_output_generator-v2.0.zip": "3a6951051272d51613ac4c77af6ce238a3db321bf06506fde1b8866eb18a89dd",
cparsons8121d852019-08-14 08:52:13 -0700151 "c7bbde2950769aac9a99364b0926230060a3ce04.tar.gz": "e6a76586b264f30679688f65f7e71ac112d1446681010a13bf22d9ca071f34b7",
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700152 "8ccf4f1c351928b55d5dddf3672e3667f6978d60.tar.gz": "d868ce50d592ef4aad7dec4dd32ae68d2151261913450fac8390b3fd474bb898",
153 "0.16.2.zip": "9b72bb0aea72d7cbcfc82a01b1e25bf3d85f791e790ddec16c65e2d906382ee0",
Donald Chaicf6ec602019-09-06 14:54:39 -0700154 "android_tools_pkg-0.11.tar.gz": "6fc50151063bffdda700038ea7df99c89d54dc066e9377a5baff60d55d482ad2", # built at 4739f69a7afa9ddaa450823cc78e97e8addc22a3
hlopkoaaf64572019-06-14 02:33:56 -0700155 # bazelbuild/platforms
156 "441afe1bfdadd6236988e9cac159df6b5a9f5a98.zip": "a07fe5e75964361885db725039c2ba673f0ee0313d971ae4f50c9b18cd28b0b5",
iirinae8260492019-07-03 05:16:09 -0700157 # bazelbuild/rules_java
158 "7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip": "bc81f1ba47ef5cc68ad32225c3d0e70b8c6f6077663835438da8d5733f917598",
oquenchil96068872019-07-08 07:01:39 -0700159 # bazelbuild/rules_cc
160 "0d5f3f2768c6ca2faca0079a997a97ce22997a0c.zip": "36fa66d4d49debd71d05fba55c1353b522e8caef4a20f8080a3d17cdda001d89",
Jakob Buchgraber60df9052019-07-11 06:08:00 -0700161 # bazelbuild/bazel-toolchains
Laurent Le Brun79c40aa2019-08-07 09:04:01 -0700162 "0.28.3.tar.gz": "d8c2f20deb2f6143bac792d210db1a4872102d81529fe0ea3476c1696addd7ff",
iirinad26a3c12019-07-19 04:39:33 -0700163 # bazelbuild/rules_pkg
164 "rules_pkg-0.2.0.tar.gz": "5bdc04987af79bd27bc5b00fe30f59a858f77ffa0bd2d8143d5b31ad8b1bd71c",
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700165 # bazelbuild/rules_proto
Yannic Bonenbergercb44f662019-08-06 02:56:18 -0700166 "97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz": "602e7161d9195e50246177e7c55b2f39950a9cf7366f74ed5f22fd45750cd208",
cushonb6646232018-09-07 01:44:10 -0700167 },
168 urls = {
hlopko6b06acc2019-03-25 04:40:10 -0700169 "e0b0291b2c51fbe5a7cfa14473a1ae850f94f021.zip": [
170 "https://mirror.bazel.build/github.com/google/desugar_jdk_libs/archive/e0b0291b2c51fbe5a7cfa14473a1ae850f94f021.zip",
171 "https://github.com/google/desugar_jdk_libs/archive/e0b0291b2c51fbe5a7cfa14473a1ae850f94f021.zip",
172 ],
173 "f83cb8dd6f5658bc574ccd873e25197055265d1c.tar.gz": [
174 "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/archive/f83cb8dd6f5658bc574ccd873e25197055265d1c.tar.gz",
175 "https://github.com/bazelbuild/bazel-skylib/archive/f83cb8dd6f5658bc574ccd873e25197055265d1c.tar.gz",
176 ],
iirinab32144422019-08-27 05:09:10 -0700177 "java_tools_javac11_linux-v5.0.zip": [
178 "https://mirror.bazel.build/bazel_java_tools/releases/javac11/v5.0/java_tools_javac11_linux-v5.0.zip",
hlopko6b06acc2019-03-25 04:40:10 -0700179 ],
iirinab32144422019-08-27 05:09:10 -0700180 "java_tools_javac11_windows-v5.0.zip": [
181 "https://mirror.bazel.build/bazel_java_tools/releases/javac11/v5.0/java_tools_javac11_windows-v5.0.zip",
hlopko6b06acc2019-03-25 04:40:10 -0700182 ],
iirinab32144422019-08-27 05:09:10 -0700183 "java_tools_javac11_darwin-v5.0.zip": [
184 "https://mirror.bazel.build/bazel_java_tools/releases/javac11/v5.0/java_tools_javac11_darwin-v5.0.zip",
hlopko6b06acc2019-03-25 04:40:10 -0700185 ],
iirina22bb3e02019-09-03 05:53:01 -0700186 "coverage_output_generator-v2.0.zip": [
187 "https://mirror.bazel.build/bazel_coverage_output_generator/releases/coverage_output_generator-v2.0.zip",
iirinaec2b0802019-04-09 10:43:48 -0700188 ],
cparsons8121d852019-08-14 08:52:13 -0700189 "c7bbde2950769aac9a99364b0926230060a3ce04.tar.gz": [
190 "https://mirror.bazel.build/github.com/bazelbuild/skydoc/archive/c7bbde2950769aac9a99364b0926230060a3ce04.tar.gz",
191 "https://github.com/bazelbuild/skydoc/archive/c7bbde2950769aac9a99364b0926230060a3ce04.tar.gz",
hlopko6b06acc2019-03-25 04:40:10 -0700192 ],
193 "8ccf4f1c351928b55d5dddf3672e3667f6978d60.tar.gz": [
194 "https://mirror.bazel.build/github.com/bazelbuild/rules_sass/archive/8ccf4f1c351928b55d5dddf3672e3667f6978d60.tar.gz",
195 "https://github.com/bazelbuild/rules_sass/archive/8ccf4f1c351928b55d5dddf3672e3667f6978d60.tar.gz",
196 ],
197 "0.16.2.zip": [
198 "https://mirror.bazel.build/github.com/bazelbuild/rules_nodejs/archive/0.16.2.zip",
199 "https://github.com/bazelbuild/rules_nodejs/archive/0.16.2.zip",
200 ],
Donald Chaicf6ec602019-09-06 14:54:39 -0700201 "android_tools_pkg-0.11.tar.gz": [
202 "https://mirror.bazel.build/bazel_android_tools/android_tools_pkg-0.11.tar.gz",
Jingwen Chen186929e2019-04-02 10:38:30 -0700203 ],
hlopkoaaf64572019-06-14 02:33:56 -0700204 # bazelbuild/platforms
205 "441afe1bfdadd6236988e9cac159df6b5a9f5a98.zip": [
206 "https://mirror.bazel.build/github.com/bazelbuild/platforms/archive/441afe1bfdadd6236988e9cac159df6b5a9f5a98.zip",
207 "https://github.com/bazelbuild/platforms/archive/441afe1bfdadd6236988e9cac159df6b5a9f5a98.zip",
208 ],
iirinae8260492019-07-03 05:16:09 -0700209 # bazelbuild/rules_java
210 "7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip": [
oquenchil96068872019-07-08 07:01:39 -0700211 "https://mirror.bazel.build/github.com/bazelbuild/rules_java/archive/7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
iirinae8260492019-07-03 05:16:09 -0700212 "https://github.com/bazelbuild/rules_java/archive/7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
oquenchil96068872019-07-08 07:01:39 -0700213 ],
214 # bazelbuild/rules_cc
215 "0d5f3f2768c6ca2faca0079a997a97ce22997a0c.zip": [
216 "https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/0d5f3f2768c6ca2faca0079a997a97ce22997a0c.zip",
217 "https://github.com/bazelbuild/rules_cc/archive/0d5f3f2768c6ca2faca0079a997a97ce22997a0c.zip",
218 ],
Jakob Buchgraber60df9052019-07-11 06:08:00 -0700219 # bazelbuild/bazel-toolchains
Laurent Le Brun79c40aa2019-08-07 09:04:01 -0700220 "0.28.3.tar.gz": [
221 "https://mirror.bazel.build/github.com/bazelbuild/bazel-toolchains/archive/0.28.3.tar.gz",
222 "https://github.com/bazelbuild/bazel-toolchains/archive/0.28.3.tar.gz",
Jakob Buchgraber60df9052019-07-11 06:08:00 -0700223 ],
Tony Aiutoed8a5ec2019-07-17 08:33:48 -0700224 # bazelbuild/rules_pkg
225 "rules_pkg-0.2.0.tar.gz": [
226 "https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/rules_pkg-0.2.0.tar.gz",
227 "https://github.com/bazelbuild/rules_pkg/releases/download/0.2.0/rules_pkg-0.2.0.tar.gz",
228 ],
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700229 # bazelbuild/rules_proto
Yannic Bonenbergercb44f662019-08-06 02:56:18 -0700230 "97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz": [
231 "https://mirror.bazel.build/github.com/bazelbuild/rules_proto/archive/97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz",
232 "https://github.com/bazelbuild/rules_proto/archive/97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz",
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700233 ],
cushonb6646232018-09-07 01:44:10 -0700234 },
Klaus Aehlig3c9cd822018-05-24 03:35:42 -0700235)
236
Philipp Wollermann95048272017-03-17 15:11:58 +0000237# OpenJDK distributions used to create a version of Bazel bundled with the OpenJDK.
238http_file(
239 name = "openjdk_linux",
philwo75edd782019-01-29 05:02:44 -0800240 downloaded_file_path = "zulu-linux.tar.gz",
Tobias Werth8db50b62019-02-03 15:09:17 -0800241 sha256 = "460d8a4f0c0204160b48086e341b22943c9cca471b195340e75b38ae9eb33c1c",
philwo915fa8f2017-05-09 12:17:12 -0400242 urls = [
Tobias Werth8db50b62019-02-03 15:09:17 -0800243 "https://mirror.bazel.build/openjdk/azul-zulu11.29.3-ca-jdk11.0.2/zulu11.29.3-ca-jdk11.0.2-linux_x64-allmodules-90755145cb6e6418584d8603cd5fa9afbb30aecc-1549209950.tar.gz",
philwo915fa8f2017-05-09 12:17:12 -0400244 ],
Philipp Wollermann95048272017-03-17 15:11:58 +0000245)
246
Tobias Werth218e8f62018-12-13 04:44:35 -0800247http_file(
248 name = "openjdk_linux_vanilla",
philwo75edd782019-01-29 05:02:44 -0800249 downloaded_file_path = "zulu-linux-vanilla.tar.gz",
Tobias Werth00680552019-02-03 02:17:41 -0800250 sha256 = "f3f44b6235508e87b760bf37a49e186cc1fa4e9cd28384c4dbf5a33991921e08",
Tobias Werth218e8f62018-12-13 04:44:35 -0800251 urls = [
Tobias Werth00680552019-02-03 02:17:41 -0800252 "https://mirror.bazel.build/openjdk/azul-zulu11.29.3-ca-jdk11.0.2/zulu11.29.3-ca-jdk11.0.2-linux_x64.tar.gz",
Tobias Werth218e8f62018-12-13 04:44:35 -0800253 ],
Tobias Werth218e8f62018-12-13 04:44:35 -0800254)
255
Tobias Werthfbf8fb92019-01-09 11:22:11 -0800256http_file(
257 name = "openjdk_linux_minimal",
philwo75edd782019-01-29 05:02:44 -0800258 downloaded_file_path = "zulu-linux-minimal.tar.gz",
Tobias Werthadacaf92019-04-23 05:53:31 -0700259 sha256 = "5123bc8dd21886761d1fd9ca0fb1898b3372d7243064a070ec81ca9c9d1a6791",
Tobias Werthfbf8fb92019-01-09 11:22:11 -0800260 urls = [
Tobias Werthadacaf92019-04-23 05:53:31 -0700261 "https://mirror.bazel.build/openjdk/azul-zulu11.29.3-ca-jdk11.0.2/zulu11.29.3-ca-jdk11.0.2-linux_x64-minimal-524ae2ca2a782c9f15e00f08bd35b3f8ceacbd7f-1556011926.tar.gz",
Tobias Werthfbf8fb92019-01-09 11:22:11 -0800262 ],
Tobias Werthfbf8fb92019-01-09 11:22:11 -0800263)
264
Philipp Wollermann95048272017-03-17 15:11:58 +0000265http_file(
philwo9f7fe692019-06-27 06:53:12 -0700266 name = "openjdk_linux_aarch64",
267 downloaded_file_path = "zulu-linux-aarch64.tar.gz",
268 sha256 = "23c37c0c3a8fdcbc68e96e70ff5c5c020c14db76deaae9b547849afda4586e5e",
269 urls = [
270 "https://mirror.bazel.build/openjdk/azul-zulu11.31.15-ca-jdk11.0.3/zulu11.31.15-ca-jdk11.0.3-linux_aarch64-allmodules-c82eb4878c7dc829455caeb915affe36c89df06f-1561630858.tar.gz",
271 ],
272)
273
274http_file(
275 name = "openjdk_linux_aarch64_vanilla",
276 downloaded_file_path = "zulu-linux-aarch64-vanilla.tar.gz",
277 sha256 = "3b0d91611b1bdc4d409afcf9eab4f0e7f4ae09f88fc01bd9f2b48954882ae69b",
278 urls = [
279 "https://mirror.bazel.build/openjdk/azul-zulu11.31.15-ca-jdk11.0.3/zulu11.31.15-ca-jdk11.0.3-linux_aarch64.tar.gz",
280 ],
281)
282
283http_file(
284 name = "openjdk_linux_aarch64_minimal",
285 downloaded_file_path = "zulu-linux-aarch64-minimal.tar.gz",
286 sha256 = "7af2583fe5ef0a781d4a9dca0c0160d42e7db1305ec1b66f98aa44c91cc875df",
287 urls = [
288 "https://mirror.bazel.build/openjdk/azul-zulu11.31.15-ca-jdk11.0.3/zulu11.31.15-ca-jdk11.0.3-linux_aarch64-minimal-c82eb4878c7dc829455caeb915affe36c89df06f-1561630858.tar.gz",
289 ],
290)
291
292http_file(
Philipp Wollermann95048272017-03-17 15:11:58 +0000293 name = "openjdk_macos",
philwo75edd782019-01-29 05:02:44 -0800294 downloaded_file_path = "zulu-macos.tar.gz",
Tobias Werth8db50b62019-02-03 15:09:17 -0800295 sha256 = "8fa61d85ca6f657d646fdb50cfc8634987f8f7d8a3250ed39fb7364647633252",
philwo915fa8f2017-05-09 12:17:12 -0400296 urls = [
Tobias Werth8db50b62019-02-03 15:09:17 -0800297 "https://mirror.bazel.build/openjdk/azul-zulu11.29.3-ca-jdk11.0.2/zulu11.29.3-ca-jdk11.0.2-macosx_x64-allmodules-90755145cb6e6418584d8603cd5fa9afbb30aecc-1549209951.tar.gz",
philwo915fa8f2017-05-09 12:17:12 -0400298 ],
Philipp Wollermann95048272017-03-17 15:11:58 +0000299)
300
301http_file(
Tobias Werth218e8f62018-12-13 04:44:35 -0800302 name = "openjdk_macos_vanilla",
philwo75edd782019-01-29 05:02:44 -0800303 downloaded_file_path = "zulu-macos-vanilla.tar.gz",
Tobias Werth00680552019-02-03 02:17:41 -0800304 sha256 = "059f8e3484bf07b63a8f2820d5f528f473eff1befdb1896ee4f8ff06be3b8d8f",
Tobias Werth218e8f62018-12-13 04:44:35 -0800305 urls = [
Tobias Werth00680552019-02-03 02:17:41 -0800306 "https://mirror.bazel.build/openjdk/azul-zulu11.29.3-ca-jdk11.0.2/zulu11.29.3-ca-jdk11.0.2-macosx_x64.zip",
Tobias Werth218e8f62018-12-13 04:44:35 -0800307 ],
Tobias Werth218e8f62018-12-13 04:44:35 -0800308)
309
310http_file(
Tobias Werthfbf8fb92019-01-09 11:22:11 -0800311 name = "openjdk_macos_minimal",
philwo75edd782019-01-29 05:02:44 -0800312 downloaded_file_path = "zulu-macos-minimal.tar.gz",
Tobias Werthadacaf92019-04-23 05:53:31 -0700313 sha256 = "ac56e44db46fd56ac78b39b6823daed4faa74a2677ac340c7d217f863884ec0f",
Tobias Werthfbf8fb92019-01-09 11:22:11 -0800314 urls = [
Tobias Werthadacaf92019-04-23 05:53:31 -0700315 "https://mirror.bazel.build/openjdk/azul-zulu11.29.3-ca-jdk11.0.2/zulu11.29.3-ca-jdk11.0.2-macosx_x64-minimal-524ae2ca2a782c9f15e00f08bd35b3f8ceacbd7f-1556003114.tar.gz",
Tobias Werthfbf8fb92019-01-09 11:22:11 -0800316 ],
Tobias Werthfbf8fb92019-01-09 11:22:11 -0800317)
318
319http_file(
Philipp Wollermann95048272017-03-17 15:11:58 +0000320 name = "openjdk_win",
philwo75edd782019-01-29 05:02:44 -0800321 downloaded_file_path = "zulu-win.zip",
Tobias Werth8db50b62019-02-03 15:09:17 -0800322 sha256 = "e6ddb361309f8e84eb5fb5ad8b0f5cc031ba3679910139262c31efd8f7579d05",
philwo915fa8f2017-05-09 12:17:12 -0400323 urls = [
Tobias Werth8db50b62019-02-03 15:09:17 -0800324 "https://mirror.bazel.build/openjdk/azul-zulu11.29.3-ca-jdk11.0.2/zulu11.29.3-ca-jdk11.0.2-win_x64-allmodules-90755145cb6e6418584d8603cd5fa9afbb30aecc-1549209972.zip",
philwo915fa8f2017-05-09 12:17:12 -0400325 ],
Philipp Wollermann95048272017-03-17 15:11:58 +0000326)
Googler5f36bf82017-07-12 20:43:08 +0200327
Tobias Werth218e8f62018-12-13 04:44:35 -0800328http_file(
329 name = "openjdk_win_vanilla",
philwo75edd782019-01-29 05:02:44 -0800330 downloaded_file_path = "zulu-win-vanilla.zip",
Tobias Werth00680552019-02-03 02:17:41 -0800331 sha256 = "e1f5b4ce1b9148140fae2fcfb8a96d1c9b7eac5b8df0e13fbcad9b8561284880",
Tobias Werth218e8f62018-12-13 04:44:35 -0800332 urls = [
Tobias Werth00680552019-02-03 02:17:41 -0800333 "https://mirror.bazel.build/openjdk/azul-zulu11.29.3-ca-jdk11.0.2/zulu11.29.3-ca-jdk11.0.2-win_x64.zip",
Tobias Werth218e8f62018-12-13 04:44:35 -0800334 ],
Tobias Werth218e8f62018-12-13 04:44:35 -0800335)
336
Tobias Werthfbf8fb92019-01-09 11:22:11 -0800337http_file(
338 name = "openjdk_win_minimal",
philwo75edd782019-01-29 05:02:44 -0800339 downloaded_file_path = "zulu-win-minimal.zip",
Tobias Werthadacaf92019-04-23 05:53:31 -0700340 sha256 = "8e5dada6e9ebcc9ce29b4d051449bb95d3ee1e620e166da862224bbf15211f8b",
Tobias Werthfbf8fb92019-01-09 11:22:11 -0800341 urls = [
Tobias Werthadacaf92019-04-23 05:53:31 -0700342 "https://mirror.bazel.build/openjdk/azul-zulu11.29.3-ca-jdk11.0.2/zulu11.29.3-ca-jdk11.0.2-win_x64-minimal-524ae2ca2a782c9f15e00f08bd35b3f8ceacbd7f-1556003136.zip",
Tobias Werthfbf8fb92019-01-09 11:22:11 -0800343 ],
Tobias Werthfbf8fb92019-01-09 11:22:11 -0800344)
345
philwo75a3a532019-04-24 04:54:25 -0700346# OpenJDK versions only used by CI to test Bazel with various JDKs.
347http_archive(
348 name = "openjdk12_linux_archive",
349 build_file_content = "java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])",
350 sha256 = "529c99841d69e11a85aea967ccfb9d0fd40b98c5b68dbe1d059002655e0a9c13",
351 strip_prefix = "zulu12.2.3-ca-jdk12.0.1-linux_x64",
352 urls = [
353 "https://mirror.bazel.build/openjdk/azul-zulu12.2.3-ca-jdk12.0.1/zulu12.2.3-ca-jdk12.0.1-linux_x64.tar.gz",
354 ],
355)
356
357http_archive(
358 name = "openjdk11_linux_archive",
359 build_file_content = "java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])",
360 sha256 = "ddb0fd4526089cf1ce2db36282c282263f587a9e8be373fa02f511a12923cc48",
361 strip_prefix = "zulu11.31.11-ca-jdk11.0.3-linux_x64",
362 urls = [
363 "https://mirror.bazel.build/openjdk/azul-zulu11.31.11-ca-jdk11.0.3/zulu11.31.11-ca-jdk11.0.3-linux_x64.tar.gz",
364 ],
365)
366
367http_archive(
368 name = "openjdk10_linux_archive",
369 build_file_content = "java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])",
370 sha256 = "b3c2d762091a615b0c1424ebbd05d75cc114da3bf4f25a0dec5c51ea7e84146f",
371 strip_prefix = "zulu10.2+3-jdk10.0.1-linux_x64",
372 urls = [
373 "https://mirror.bazel.build/openjdk/azul-zulu10.2+3-jdk10.0.1/zulu10.2+3-jdk10.0.1-linux_x64.tar.gz",
374 ],
375)
376
377http_archive(
378 name = "openjdk9_linux_archive",
379 build_file_content = "java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])",
380 sha256 = "45f2dfbee93b91b1468cf81d843fc6d9a47fef1f831c0b7ceff4f1eb6e6851c8",
381 strip_prefix = "zulu9.0.7.1-jdk9.0.7-linux_x64",
382 urls = [
383 "https://mirror.bazel.build/openjdk/azul-zulu-9.0.7.1-jdk9.0.7/zulu9.0.7.1-jdk9.0.7-linux_x64.tar.gz",
384 ],
385)
386
Googler5f36bf82017-07-12 20:43:08 +0200387http_archive(
Keith Smiley7fcbeec2019-04-23 17:06:02 -0700388 name = "bazel_toolchains",
Laurent Le Brun79c40aa2019-08-07 09:04:01 -0700389 sha256 = "d8c2f20deb2f6143bac792d210db1a4872102d81529fe0ea3476c1696addd7ff",
390 strip_prefix = "bazel-toolchains-0.28.3",
Keith Smiley7fcbeec2019-04-23 17:06:02 -0700391 urls = [
Laurent Le Brun79c40aa2019-08-07 09:04:01 -0700392 "https://mirror.bazel.build/github.com/bazelbuild/bazel-toolchains/archive/0.28.3.tar.gz",
393 "https://github.com/bazelbuild/bazel-toolchains/archive/0.28.3.tar.gz",
Keith Smiley7fcbeec2019-04-23 17:06:02 -0700394 ],
Googler5f36bf82017-07-12 20:43:08 +0200395)
ccalvarin1cbe62a2017-08-14 21:09:07 +0200396
Jakob Buchgraber60df9052019-07-11 06:08:00 -0700397load("@bazel_toolchains//rules:rbe_repo.bzl", "rbe_autoconfig")
398
399rbe_autoconfig(
400 name = "rbe_ubuntu1804_java11",
401 detect_java_home = True,
402 registry = "gcr.io",
403 repository = "bazel-public/ubuntu1804/bazel",
404 tag = "java11",
405)
406
407rbe_autoconfig(
408 name = "rbe_ubuntu1604_java8",
409 detect_java_home = True,
410 registry = "gcr.io",
411 repository = "bazel-public/ubuntu1604/bazel",
412 tag = "java8",
Jakob Buchgraber3541ad62019-04-30 07:51:12 -0700413)
414
Googlerde0612a2019-03-07 06:06:55 -0800415# Creates toolchain configuration for remote execution with BuildKite CI
416# for rbe_ubuntu1604.
417# To run the tests with RBE on BuildKite CI uncomment the two lines below
418# load("@bazel_toolchains//rules:rbe_repo.bzl", "rbe_autoconfig")
419# rbe_autoconfig(name = "buildkite_config")
420
ccalvarin73839762018-03-23 15:35:00 -0700421# We're pinning to a commit because this project does not have a recent release.
422# Nothing special about this commit, though.
ccalvarin8e9f4a82018-03-23 08:19:37 -0700423http_archive(
424 name = "com_google_googletest",
Loo Rong Jiee94aa222018-10-15 01:27:08 -0700425 sha256 = "0fb00ff413f6b9b80ccee44a374ca7a18af7315aea72a43c62f2acd1ca74e9b5",
426 strip_prefix = "googletest-f13bbe2992d188e834339abe6f715b2b2f840a77",
ccalvarin8e9f4a82018-03-23 08:19:37 -0700427 urls = [
hlopko6b06acc2019-03-25 04:40:10 -0700428 "https://mirror.bazel.build/github.com/google/googletest/archive/f13bbe2992d188e834339abe6f715b2b2f840a77.tar.gz",
Loo Rong Jiee94aa222018-10-15 01:27:08 -0700429 "https://github.com/google/googletest/archive/f13bbe2992d188e834339abe6f715b2b2f840a77.tar.gz",
ccalvarin8e9f4a82018-03-23 08:19:37 -0700430 ],
ccalvarin8e9f4a82018-03-23 08:19:37 -0700431)
432
cparsons871cd6f2018-08-16 09:10:38 -0700433http_archive(
434 name = "bazel_skylib",
Klaus Aehligdbe05df2018-12-06 06:00:49 -0800435 # Commit f83cb8dd6f5658bc574ccd873e25197055265d1c of 2018-11-26
cparsons48b672c2018-11-29 15:01:32 -0800436 sha256 = "ba5d15ca230efca96320085d8e4d58da826d1f81b444ef8afccd8b23e0799b52",
437 strip_prefix = "bazel-skylib-f83cb8dd6f5658bc574ccd873e25197055265d1c",
cparsons871cd6f2018-08-16 09:10:38 -0700438 urls = [
hlopko6b06acc2019-03-25 04:40:10 -0700439 "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/archive/f83cb8dd6f5658bc574ccd873e25197055265d1c.tar.gz",
cparsons48b672c2018-11-29 15:01:32 -0800440 "https://github.com/bazelbuild/bazel-skylib/archive/f83cb8dd6f5658bc574ccd873e25197055265d1c.tar.gz",
cparsons871cd6f2018-08-16 09:10:38 -0700441 ],
cparsons871cd6f2018-08-16 09:10:38 -0700442)
cparsonsa5be6612018-08-27 13:21:21 -0700443
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700444# Note that skydoc depends on being called io_bazel_skydoc (and not just skydoc)
445# to work without being patched, as it hard-codes this name in its sources.
cparsonsa5be6612018-08-27 13:21:21 -0700446http_archive(
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700447 name = "io_bazel_skydoc",
cparsons8121d852019-08-14 08:52:13 -0700448 sha256 = "e6a76586b264f30679688f65f7e71ac112d1446681010a13bf22d9ca071f34b7",
449 strip_prefix = "skydoc-c7bbde2950769aac9a99364b0926230060a3ce04",
cparsonsa5be6612018-08-27 13:21:21 -0700450 urls = [
cparsons8121d852019-08-14 08:52:13 -0700451 "https://mirror.bazel.build/github.com/bazelbuild/skydoc/archive/c7bbde2950769aac9a99364b0926230060a3ce04.tar.gz",
452 "https://github.com/bazelbuild/skydoc/archive/c7bbde2950769aac9a99364b0926230060a3ce04.tar.gz",
cparsonsa5be6612018-08-27 13:21:21 -0700453 ],
cparsonsa5be6612018-08-27 13:21:21 -0700454)
Klaus Aehligacafe5a2018-10-24 03:16:42 -0700455
oquenchil96068872019-07-08 07:01:39 -0700456http_archive(
457 name = "rules_cc",
458 sha256 = "36fa66d4d49debd71d05fba55c1353b522e8caef4a20f8080a3d17cdda001d89",
459 strip_prefix = "rules_cc-0d5f3f2768c6ca2faca0079a997a97ce22997a0c",
460 urls = [
461 "https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/0d5f3f2768c6ca2faca0079a997a97ce22997a0c.zip",
462 "https://github.com/bazelbuild/rules_cc/archive/0d5f3f2768c6ca2faca0079a997a97ce22997a0c.zip",
463 ],
464)
465
iirinab815b792019-07-17 05:47:01 -0700466http_archive(
467 name = "rules_java",
468 sha256 = "bc81f1ba47ef5cc68ad32225c3d0e70b8c6f6077663835438da8d5733f917598",
iirinad26a3c12019-07-19 04:39:33 -0700469 strip_prefix = "rules_java-7cf3cefd652008d0a64a419c34c13bdca6c8f178",
iirinab815b792019-07-17 05:47:01 -0700470 urls = [
iirinad26a3c12019-07-19 04:39:33 -0700471 "https://mirror.bazel.build/github.com/bazelbuild/rules_java/archive/7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
472 "https://github.com/bazelbuild/rules_java/archive/7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
iirinab815b792019-07-17 05:47:01 -0700473 ],
iirinab815b792019-07-17 05:47:01 -0700474)
475
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700476http_archive(
477 name = "rules_proto",
Yannic Bonenbergercb44f662019-08-06 02:56:18 -0700478 sha256 = "602e7161d9195e50246177e7c55b2f39950a9cf7366f74ed5f22fd45750cd208",
479 strip_prefix = "rules_proto-97d8af4dc474595af3900dd85cb3a29ad28cc313",
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700480 urls = [
Yannic Bonenbergercb44f662019-08-06 02:56:18 -0700481 "https://mirror.bazel.build/github.com/bazelbuild/rules_proto/archive/97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz",
482 "https://github.com/bazelbuild/rules_proto/archive/97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz",
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700483 ],
484)
485
Klaus Aehligacafe5a2018-10-24 03:16:42 -0700486# For testing, have an distdir_tar with all the archives implicit in every
487# WORKSPACE, to that they don't have to be refetched for every test
488# calling `bazel sync`.
489distdir_tar(
Jingwen Chen186929e2019-04-02 10:38:30 -0700490 name = "test_WORKSPACE_files",
philwo75edd782019-01-29 05:02:44 -0800491 archives = [
492 "zulu9.0.7.1-jdk9.0.7-linux_x64-allmodules.tar.gz",
493 "zulu9.0.7.1-jdk9.0.7-macosx_x64-allmodules.tar.gz",
494 "zulu9.0.7.1-jdk9.0.7-win_x64-allmodules.zip",
495 "jdk9-server-release-1708.tar.xz",
496 "zulu10.2+3-jdk10.0.1-linux_x64-allmodules.tar.gz",
497 "zulu10.2+3-jdk10.0.1-macosx_x64-allmodules.tar.gz",
498 "zulu10.2+3-jdk10.0.1-win_x64-allmodules.zip",
499 "jdk10-server-release-1804.tar.xz",
iirinab32144422019-08-27 05:09:10 -0700500 "java_tools_javac11_linux-v5.0.zip",
501 "java_tools_javac11_windows-v5.0.zip",
502 "java_tools_javac11_darwin-v5.0.zip",
iirina22bb3e02019-09-03 05:53:01 -0700503 "coverage_output_generator-v2.0.zip",
philwo75edd782019-01-29 05:02:44 -0800504 "zulu11.2.3-jdk11.0.1-linux_x64.tar.gz",
505 "zulu11.2.3-jdk11.0.1-macosx_x64.tar.gz",
506 "zulu11.2.3-jdk11.0.1-win_x64.zip",
Tobias Werth00680552019-02-03 02:17:41 -0800507 "zulu11.29.3-ca-jdk11.0.2-linux_x64.tar.gz",
philwo9f7fe692019-06-27 06:53:12 -0700508 "zulu11.31.15-ca-jdk11.0.3-linux_aarch64.tar.gz",
Tobias Werth00680552019-02-03 02:17:41 -0800509 "zulu11.29.3-ca-jdk11.0.2-macosx_x64.zip",
510 "zulu11.29.3-ca-jdk11.0.2-win_x64.zip",
Donald Chaicf6ec602019-09-06 14:54:39 -0700511 "android_tools_pkg-0.11.tar.gz",
hlopkoaaf64572019-06-14 02:33:56 -0700512 # bazelbuild/platforms
513 "441afe1bfdadd6236988e9cac159df6b5a9f5a98.zip",
iirinae8260492019-07-03 05:16:09 -0700514 # bazelbuild/rules_java
515 "7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
oquenchil96068872019-07-08 07:01:39 -0700516 # bazelbuild/rules_cc
517 "0d5f3f2768c6ca2faca0079a997a97ce22997a0c.zip",
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700518 # bazelbuild/rules_proto
Yannic Bonenbergercb44f662019-08-06 02:56:18 -0700519 "97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz",
philwo75edd782019-01-29 05:02:44 -0800520 ],
Jingwen Chen186929e2019-04-02 10:38:30 -0700521 dirname = "test_WORKSPACE/distdir",
philwo75edd782019-01-29 05:02:44 -0800522 sha256 = {
523 "zulu9.0.7.1-jdk9.0.7-linux_x64-allmodules.tar.gz": "f27cb933de4f9e7fe9a703486cf44c84bc8e9f138be0c270c9e5716a32367e87",
524 "zulu9.0.7.1-jdk9.0.7-macosx_x64-allmodules.tar.gz": "404e7058ff91f956612f47705efbee8e175a38b505fb1b52d8c1ea98718683de",
525 "zulu9.0.7.1-jdk9.0.7-win_x64-allmodules.zip": "e738829017f107e7a7cd5069db979398ec3c3f03ef56122f89ba38e7374f63ed",
526 "jdk9-server-release-1708.tar.xz": "72e7843902b0395e2d30e1e9ad2a5f05f36a4bc62529828bcbc698d54aec6022",
527 "zulu10.2+3-jdk10.0.1-linux_x64-allmodules.tar.gz": "57fad3602e74c79587901d6966d3b54ef32cb811829a2552163185d5064fe9b5",
528 "zulu10.2+3-jdk10.0.1-macosx_x64-allmodules.tar.gz": "e669c9a897413d855b550b4e39d79614392e6fb96f494e8ef99a34297d9d85d3",
529 "zulu10.2+3-jdk10.0.1-win_x64-allmodules.zip": "c39e7700a8d41794d60985df5a20352435196e78ecbc6a2b30df7be8637bffd5",
530 "jdk10-server-release-1804.tar.xz": "b7098b7aaf6ee1ffd4a2d0371a0be26c5a5c87f6aebbe46fe9a92c90583a84be",
iirinab32144422019-08-27 05:09:10 -0700531 "java_tools_javac11_linux-v5.0.zip": "b644b1eb3743376ce3aeb0cc6a15374ca5676bf872cc653c3633751c8226e060",
532 "java_tools_javac11_windows-v5.0.zip": "116fef8a385873bfda5fa76e831959aa0ad0b12ca9a880bd0fc7252413ed7c1f",
533 "java_tools_javac11_darwin-v5.0.zip": "dfa0e6b6320325eb28023ed754022d985d462b4db468394be305a82f55e7dafa",
iirina22bb3e02019-09-03 05:53:01 -0700534 "coverage_output_generator-v2.0.zip": "3a6951051272d51613ac4c77af6ce238a3db321bf06506fde1b8866eb18a89dd",
philwo75edd782019-01-29 05:02:44 -0800535 "zulu11.2.3-jdk11.0.1-linux_x64.tar.gz": "232b1c3511f0d26e92582b7c3cc363be7ac633e371854ca2f2e9f2b50eb72a75",
philwo9f7fe692019-06-27 06:53:12 -0700536 "zulu11.31.15-ca-jdk11.0.3-linux_aarch64.tar.gz": "3b0d91611b1bdc4d409afcf9eab4f0e7f4ae09f88fc01bd9f2b48954882ae69b",
philwo75edd782019-01-29 05:02:44 -0800537 "zulu11.2.3-jdk11.0.1-macosx_x64.tar.gz": "1edf366ee821e5db8e348152fcb337b28dfd6bf0f97943c270dcc6747cedb6cb",
538 "zulu11.2.3-jdk11.0.1-win_x64.zip": "8e1e2b8347de6746f3fd1538840dd643201533ab113abc4ed93678e342d28aa3",
Tobias Werth00680552019-02-03 02:17:41 -0800539 "zulu11.29.3-ca-jdk11.0.2-linux_x64.tar.gz": "f3f44b6235508e87b760bf37a49e186cc1fa4e9cd28384c4dbf5a33991921e08",
540 "zulu11.29.3-ca-jdk11.0.2-macosx_x64.zip": "059f8e3484bf07b63a8f2820d5f528f473eff1befdb1896ee4f8ff06be3b8d8f",
541 "zulu11.29.3-ca-jdk11.0.2-win_x64.zip": "e1f5b4ce1b9148140fae2fcfb8a96d1c9b7eac5b8df0e13fbcad9b8561284880",
Donald Chaicf6ec602019-09-06 14:54:39 -0700542 "android_tools_pkg-0.11.tar.gz": "6fc50151063bffdda700038ea7df99c89d54dc066e9377a5baff60d55d482ad2", # built at 4739f69a7afa9ddaa450823cc78e97e8addc22a3
hlopkoaaf64572019-06-14 02:33:56 -0700543 # bazelbuild/platforms
544 "441afe1bfdadd6236988e9cac159df6b5a9f5a98.zip": "a07fe5e75964361885db725039c2ba673f0ee0313d971ae4f50c9b18cd28b0b5",
iirinae8260492019-07-03 05:16:09 -0700545 # bazelbuild/rules_java
546 "7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip": "bc81f1ba47ef5cc68ad32225c3d0e70b8c6f6077663835438da8d5733f917598",
oquenchil96068872019-07-08 07:01:39 -0700547 # bazelbuild/rules_cc
548 "0d5f3f2768c6ca2faca0079a997a97ce22997a0c.zip": "36fa66d4d49debd71d05fba55c1353b522e8caef4a20f8080a3d17cdda001d89",
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700549 # bazelbuild/rules_proto
Yannic Bonenbergercb44f662019-08-06 02:56:18 -0700550 "97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz": "602e7161d9195e50246177e7c55b2f39950a9cf7366f74ed5f22fd45750cd208",
philwo75edd782019-01-29 05:02:44 -0800551 },
552 urls = {
553 "zulu9.0.7.1-jdk9.0.7-linux_x64-allmodules.tar.gz": ["https://mirror.bazel.build/openjdk/azul-zulu-9.0.7.1-jdk9.0.7/zulu9.0.7.1-jdk9.0.7-linux_x64-allmodules.tar.gz"],
554 "zulu9.0.7.1-jdk9.0.7-macosx_x64-allmodules.tar.gz": ["https://mirror.bazel.build/openjdk/azul-zulu-9.0.7.1-jdk9.0.7/zulu9.0.7.1-jdk9.0.7-macosx_x64-allmodules.tar.gz"],
555 "zulu9.0.7.1-jdk9.0.7-win_x64-allmodules.zip": ["https://mirror.bazel.build/openjdk/azul-zulu-9.0.7.1-jdk9.0.7/zulu9.0.7.1-jdk9.0.7-win_x64-allmodules.zip"],
556 "jdk9-server-release-1708.tar.xz": ["https://mirror.bazel.build/openjdk.linaro.org/releases/jdk9-server-release-1708.tar.xz"],
557 "zulu10.2+3-jdk10.0.1-linux_x64-allmodules.tar.gz": ["https://mirror.bazel.build/openjdk/azul-zulu10.2+3-jdk10.0.1/zulu10.2+3-jdk10.0.1-linux_x64-allmodules.tar.gz"],
558 "zulu10.2+3-jdk10.0.1-macosx_x64-allmodules.tar.gz": ["https://mirror.bazel.build/openjdk/azul-zulu10.2+3-jdk10.0.1/zulu10.2+3-jdk10.0.1-macosx_x64-allmodules.tar.gz"],
559 "zulu10.2+3-jdk10.0.1-win_x64-allmodules.zip": ["https://mirror.bazel.build/openjdk/azul-zulu10.2+3-jdk10.0.1/zulu10.2+3-jdk10.0.1-win_x64-allmodules.zip"],
560 "jdk10-server-release-1804.tar.xz": ["https://mirror.bazel.build/openjdk.linaro.org/releases/jdk10-server-release-1804.tar.xz"],
iirinab32144422019-08-27 05:09:10 -0700561 "java_tools_javac11_linux-v5.0.zip": ["https://mirror.bazel.build/bazel_java_tools/releases/javac11/v5.0/java_tools_javac11_linux-v5.0.zip"],
562 "java_tools_javac11_windows-v5.0.zip": ["https://mirror.bazel.build/bazel_java_tools/releases/javac11/v5.0/java_tools_javac11_windows-v5.0.zip"],
563 "java_tools_javac11_darwin-v5.0.zip": ["https://mirror.bazel.build/bazel_java_tools/releases/javac11/v5.0/java_tools_javac11_darwin-v5.0.zip"],
iirina22bb3e02019-09-03 05:53:01 -0700564 "coverage_output_generator-v2.0.zip": ["https://mirror.bazel.build/bazel_coverage_output_generator/releases/coverage_output_generator-v2.0.zip"],
philwo75edd782019-01-29 05:02:44 -0800565 "zulu11.2.3-jdk11.0.1-linux_x64.tar.gz": ["https://mirror.bazel.build/openjdk/azul-zulu11.2.3-jdk11.0.1/zulu11.2.3-jdk11.0.1-linux_x64.tar.gz"],
566 "zulu11.2.3-jdk11.0.1-macosx_x64.tar.gz": ["https://mirror.bazel.build/openjdk/azul-zulu11.2.3-jdk11.0.1/zulu11.2.3-jdk11.0.1-macosx_x64.tar.gz"],
567 "zulu11.2.3-jdk11.0.1-win_x64.zip": ["https://mirror.bazel.build/openjdk/azul-zulu11.2.3-jdk11.0.1/zulu11.2.3-jdk11.0.1-win_x64.zip"],
Tobias Werth00680552019-02-03 02:17:41 -0800568 "zulu11.29.3-ca-jdk11.0.2-linux_x64.tar.gz": ["https://mirror.bazel.build/openjdk/azul-zulu11.29.3-ca-jdk11.0.2/zulu11.29.3-ca-jdk11.0.2-linux_x64.tar.gz"],
philwo9f7fe692019-06-27 06:53:12 -0700569 "zulu11.31.15-ca-jdk11.0.3-linux_aarch64.tar.gz": ["https://mirror.bazel.build/openjdk/azul-zulu11.31.15-ca-jdk11.0.3/zulu11.31.15-ca-jdk11.0.3-linux_aarch64.tar.gz"],
Tobias Werth00680552019-02-03 02:17:41 -0800570 "zulu11.29.3-ca-jdk11.0.2-macosx_x64.zip": ["https://mirror.bazel.build/openjdk/azul-zulu11.29.3-ca-jdk11.0.2/zulu11.29.3-ca-jdk11.0.2-macosx_x64.zip"],
571 "zulu11.29.3-ca-jdk11.0.2-win_x64.zip": ["https://mirror.bazel.build/openjdk/azul-zulu11.29.3-ca-jdk11.0.2/zulu11.29.3-ca-jdk11.0.2-win_x64.zip"],
Donald Chaicf6ec602019-09-06 14:54:39 -0700572 "android_tools_pkg-0.11.tar.gz": [
573 "https://mirror.bazel.build/bazel_android_tools/android_tools_pkg-0.11.tar.gz",
Jingwen Chen186929e2019-04-02 10:38:30 -0700574 ],
hlopkoaaf64572019-06-14 02:33:56 -0700575 # bazelbuild/platforms
576 "441afe1bfdadd6236988e9cac159df6b5a9f5a98.zip": [
577 "https://mirror.bazel.build/github.com/bazelbuild/platforms/archive/441afe1bfdadd6236988e9cac159df6b5a9f5a98.zip",
578 "https://github.com/bazelbuild/platforms/archive/441afe1bfdadd6236988e9cac159df6b5a9f5a98.zip",
579 ],
iirinae8260492019-07-03 05:16:09 -0700580 # bazelbuild/rules_java
581 "7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip": [
oquenchil96068872019-07-08 07:01:39 -0700582 "https://mirror.bazel.build/github.com/bazelbuild/rules_java/archive/7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
Jakob Buchgraber60df9052019-07-11 06:08:00 -0700583 "https://github.com/bazelbuild/rules_java/archive/7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
oquenchil96068872019-07-08 07:01:39 -0700584 ],
585 # bazelbuild/rules_cc
586 "0d5f3f2768c6ca2faca0079a997a97ce22997a0c.zip": [
587 "https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/0d5f3f2768c6ca2faca0079a997a97ce22997a0c.zip",
588 "https://github.com/bazelbuild/rules_cc/archive/0d5f3f2768c6ca2faca0079a997a97ce22997a0c.zip",
589 ],
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700590 # bazelbuild/rules_proto
Yannic Bonenbergercb44f662019-08-06 02:56:18 -0700591 "97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz": [
592 "https://mirror.bazel.build/github.com/bazelbuild/rules_proto/archive/97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz",
593 "https://github.com/bazelbuild/rules_proto/archive/97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz",
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700594 ],
philwo75edd782019-01-29 05:02:44 -0800595 },
Klaus Aehligacafe5a2018-10-24 03:16:42 -0700596)
Jingwen Chen186bdcd2018-12-14 10:27:23 -0800597
598load("//scripts/docs:doc_versions.bzl", "DOC_VERSIONS")
599
600[http_file(
601 name = "jekyll_tree_%s" % DOC_VERSION["version"].replace(".", "_"),
602 sha256 = DOC_VERSION["sha256"],
603 urls = ["https://mirror.bazel.build/bazel_versioned_docs/jekyll-tree-%s.tar" % DOC_VERSION["version"]],
604) for DOC_VERSION in DOC_VERSIONS]
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700605
606# Skydoc recommends declaring its dependencies via "*_dependencies" functions.
607# This requires that the repositories these functions come from need to be
608# fetched unconditionally for everything (including just building bazel!), so
609# provide them as http_archives that can be shiped in the distdir, to keep the
610# distribution archive self-contained.
611http_archive(
612 name = "io_bazel_rules_sass",
iirinaf5c334262019-03-19 02:44:59 -0700613 sha256 = "d868ce50d592ef4aad7dec4dd32ae68d2151261913450fac8390b3fd474bb898",
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700614 strip_prefix = "rules_sass-8ccf4f1c351928b55d5dddf3672e3667f6978d60",
615 urls = [
hlopko6b06acc2019-03-25 04:40:10 -0700616 "https://mirror.bazel.build/github.com/bazelbuild/rules_sass/archive/8ccf4f1c351928b55d5dddf3672e3667f6978d60.tar.gz",
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700617 "https://github.com/bazelbuild/rules_sass/archive/8ccf4f1c351928b55d5dddf3672e3667f6978d60.tar.gz",
618 ],
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700619)
iirinaf5c334262019-03-19 02:44:59 -0700620
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700621http_archive(
622 name = "build_bazel_rules_nodejs",
iirinaf5c334262019-03-19 02:44:59 -0700623 sha256 = "9b72bb0aea72d7cbcfc82a01b1e25bf3d85f791e790ddec16c65e2d906382ee0",
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700624 strip_prefix = "rules_nodejs-0.16.2",
625 urls = [
hlopko6b06acc2019-03-25 04:40:10 -0700626 "https://mirror.bazel.build/github.com/bazelbuild/rules_nodejs/archive/0.16.2.zip",
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700627 "https://github.com/bazelbuild/rules_nodejs/archive/0.16.2.zip",
628 ],
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700629)
630
iirina3ab4dbc2019-04-29 05:12:39 -0700631http_archive(
iirina93e80732019-04-16 02:07:40 -0700632 name = "java_tools_langtools_javac9",
iirinab815b792019-07-17 05:47:01 -0700633 sha256 = "d94befcfb325a9a62aebc2052e631fde2322b4df5c82a19ed260b38ba12a0ad1",
iirina3ab4dbc2019-04-29 05:12:39 -0700634 urls = [
iirinab815b792019-07-17 05:47:01 -0700635 "https://mirror.bazel.build/bazel_java_tools/jdk_langtools/langtools_jdk9_v2.zip",
iirina88bb4062019-04-29 08:02:40 -0700636 ],
iirina93e80732019-04-16 02:07:40 -0700637)
638
iirina3ab4dbc2019-04-29 05:12:39 -0700639http_archive(
iirina93e80732019-04-16 02:07:40 -0700640 name = "java_tools_langtools_javac10",
iirinab815b792019-07-17 05:47:01 -0700641 sha256 = "0e9c9ac5ef17869de3cb8c3497c4c0d31836ef7b63efe1690506f53783adb212",
iirina3ab4dbc2019-04-29 05:12:39 -0700642 urls = [
iirinab815b792019-07-17 05:47:01 -0700643 "https://mirror.bazel.build/bazel_java_tools/jdk_langtools/langtools_jdk10_v2.zip",
iirina88bb4062019-04-29 08:02:40 -0700644 ],
iirina93e80732019-04-16 02:07:40 -0700645)
646
iirinaa6e92602019-05-13 06:20:12 -0700647http_archive(
648 name = "java_tools_langtools_javac11",
iirinab815b792019-07-17 05:47:01 -0700649 sha256 = "cf0814fa002ef3d794582bb086516d8c9ed0958f83f19799cdb08949019fe4c7",
iirinaa6e92602019-05-13 06:20:12 -0700650 urls = [
iirinab815b792019-07-17 05:47:01 -0700651 "https://mirror.bazel.build/bazel_java_tools/jdk_langtools/langtools_jdk11_v2.zip",
iirinaa6e92602019-05-13 06:20:12 -0700652 ],
653)
654
iirina0eec6932019-06-12 07:48:22 -0700655http_archive(
hlopkoaaf64572019-06-14 02:33:56 -0700656 name = "platforms",
657 sha256 = "a07fe5e75964361885db725039c2ba673f0ee0313d971ae4f50c9b18cd28b0b5",
Jakob Buchgraber60df9052019-07-11 06:08:00 -0700658 strip_prefix = "platforms-441afe1bfdadd6236988e9cac159df6b5a9f5a98",
hlopkoaaf64572019-06-14 02:33:56 -0700659 urls = [
660 "https://mirror.bazel.build/github.com/bazelbuild/platforms/archive/441afe1bfdadd6236988e9cac159df6b5a9f5a98.zip",
661 "https://github.com/bazelbuild/platforms/archive/441afe1bfdadd6236988e9cac159df6b5a9f5a98.zip",
662 ],
hlopkoaaf64572019-06-14 02:33:56 -0700663)
664
665http_archive(
iirina0eec6932019-06-12 07:48:22 -0700666 name = "java_tools_langtools_javac12",
667 sha256 = "99b107105165a91df82cd7cf82a8efb930d803fb7de1663cf7f780142104cd14",
668 urls = [
669 "https://mirror.bazel.build/bazel_java_tools/jdk_langtools/langtools_jdk12.zip",
670 ],
671)
672
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700673load("@io_bazel_skydoc//:setup.bzl", "skydoc_repositories")
iirinaf5c334262019-03-19 02:44:59 -0700674
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700675skydoc_repositories()
676
677load("@io_bazel_rules_sass//:package.bzl", "rules_sass_dependencies")
iirinaf5c334262019-03-19 02:44:59 -0700678
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700679rules_sass_dependencies()
680
681load("@build_bazel_rules_nodejs//:defs.bzl", "node_repositories")
iirinaf5c334262019-03-19 02:44:59 -0700682
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700683node_repositories()
684
685load("@io_bazel_rules_sass//:defs.bzl", "sass_repositories")
iirinaf5c334262019-03-19 02:44:59 -0700686
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700687sass_repositories()
Jakob Buchgraber593c5302019-04-16 10:12:20 -0700688
Keith Smiley7fcbeec2019-04-23 17:06:02 -0700689register_execution_platforms("//:default_host_platform") # buildozer: disable=positional-args
Tony Aiutoed8a5ec2019-07-17 08:33:48 -0700690
691# Tools for building deb, rpm and tar files.
692http_archive(
693 name = "rules_pkg",
iirinad26a3c12019-07-19 04:39:33 -0700694 sha256 = "5bdc04987af79bd27bc5b00fe30f59a858f77ffa0bd2d8143d5b31ad8b1bd71c",
Tony Aiutoed8a5ec2019-07-17 08:33:48 -0700695 urls = [
696 "https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/rules_pkg-0.2.0.tar.gz",
697 "https://github.com/bazelbuild/rules_pkg/releases/download/0.2.0/rules_pkg-0.2.0.tar.gz",
698 ],
Tony Aiutoed8a5ec2019-07-17 08:33:48 -0700699)
iirinad26a3c12019-07-19 04:39:33 -0700700
Tony Aiutoed8a5ec2019-07-17 08:33:48 -0700701load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies")
iirinad26a3c12019-07-19 04:39:33 -0700702
Tony Aiutoed8a5ec2019-07-17 08:33:48 -0700703rules_pkg_dependencies()
Laszlo Csomor3e023182019-08-01 05:05:09 -0700704
705# Toolchains for Resource Compilation (.rc files on Windows).
706load("//src/main/res:winsdk_configure.bzl", "winsdk_configure")
707
708winsdk_configure(name = "local_config_winsdk")
709
710load("@local_config_winsdk//:toolchains.bzl", "register_local_rc_exe_toolchains")
711
712register_local_rc_exe_toolchains()
713
714register_toolchains("//src/main/res:empty_rc_toolchain")