blob: 9a92e0554a9060eebf3a4ecb3dbbe94c0c98f419 [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 = [
Jingwen Chen8d6eb832019-11-26 12:20:48 -080044 "https://mirror.bazel.build/github.com/google/j2objc/releases/download/2.5/j2objc-2.5.zip",
iirinadcbad672019-07-17 04:45:21 -070045 "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",
brandjoncb4ba072019-08-01 12:41:43 -070087 build_file = "//third_party/rules_python:BUILD",
laurentlbaf265672019-10-22 10:06:21 -070088 path = "./third_party/rules_python",
brandjoncb4ba072019-08-01 12:41:43 -070089 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",
Irina Iancua6cd4082019-11-22 03:57:17 -0800122 "java_tools_javac11_linux-v7.0.zip",
123 "java_tools_javac11_windows-v7.0.zip",
124 "java_tools_javac11_darwin-v7.0.zip",
Ulf Adams9588a9e2019-12-10 07:29:54 -0800125 "coverage_output_generator-v2.1.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 Chai168d0a72020-01-13 15:30:24 -0800129 "android_tools_pkg-0.14.tar.gz",
hlopkoaaf64572019-06-14 02:33:56 -0700130 # bazelbuild/platforms
aldersondrive64235c32019-11-18 08:50:39 -0800131 "46993efdd33b73649796c5fc5c9efb193ae19d51.zip",
iirinae8260492019-07-03 05:16:09 -0700132 # bazelbuild/rules_java
133 "7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
oquenchil96068872019-07-08 07:01:39 -0700134 # bazelbuild/rules_cc
Marcel Hlopko02d19662019-11-11 21:55:16 -0800135 "8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip",
Jakob Buchgraber60df9052019-07-11 06:08:00 -0700136 # bazelbuild/bazel-toolchains
philwob14e4062020-01-27 03:02:32 -0800137 "2.0.2.tar.gz",
iirinad26a3c12019-07-19 04:39:33 -0700138 # bazelbuild/rules_pkg
philwob14e4062020-01-27 03:02:32 -0800139 "rules_pkg-0.2.4.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",
Irina Iancua6cd4082019-11-22 03:57:17 -0800147 "java_tools_javac11_linux-v7.0.zip": "3ff465e82954a70f49982610dd63f6f651beaa83c707dd637870b0e41cdcd2f0",
148 "java_tools_javac11_windows-v7.0.zip": "11d90a147919e74d11870cdd58c4ee5de3062c08d11b16aa72d3f3bbfa9497a0",
149 "java_tools_javac11_darwin-v7.0.zip": "373a4226906ae9ba908550da16e133c4cd1f01b8973af82b9a2eb6903cb4d645",
Ulf Adams9588a9e2019-12-10 07:29:54 -0800150 "coverage_output_generator-v2.1.zip": "96ac6bc9b9fbc67b532bcae562da1642409791e6a4b8e522f04946ee5cc3ff8e",
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",
philwob14e4062020-01-27 03:02:32 -0800154 "android_tools_pkg-0.14.tar.gz": "a3a951838448483e7af25afd10671b266cc6283104b4a2a427d31cac12cf0912", # built at 6c63d70ef9c11a662b8323c0ae4f6d3ac53b1a60
hlopkoaaf64572019-06-14 02:33:56 -0700155 # bazelbuild/platforms
aldersondrive64235c32019-11-18 08:50:39 -0800156 "46993efdd33b73649796c5fc5c9efb193ae19d51.zip": "66184688debeeefcc2a16a2f80b03f514deac8346fe888fb7e691a52c023dd88",
iirinae8260492019-07-03 05:16:09 -0700157 # bazelbuild/rules_java
158 "7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip": "bc81f1ba47ef5cc68ad32225c3d0e70b8c6f6077663835438da8d5733f917598",
oquenchil96068872019-07-08 07:01:39 -0700159 # bazelbuild/rules_cc
Marcel Hlopko02d19662019-11-11 21:55:16 -0800160 "8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip": "1d4dbbd1e1e9b57d40bb0ade51c9e882da7658d5bfbf22bbd15b68e7879d761f",
Jakob Buchgraber60df9052019-07-11 06:08:00 -0700161 # bazelbuild/bazel-toolchains
philwob14e4062020-01-27 03:02:32 -0800162 "2.0.2.tar.gz": "a653c9d318e42b14c0ccd7ac50c4a2a276c0db1e39743ab88b5aa2f0bc9cf607",
iirinad26a3c12019-07-19 04:39:33 -0700163 # bazelbuild/rules_pkg
philwob14e4062020-01-27 03:02:32 -0800164 "rules_pkg-0.2.4.tar.gz": "4ba8f4ab0ff85f2484287ab06c0d871dcb31cc54d439457d28fd4ae14b18450a",
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 ],
Irina Iancua6cd4082019-11-22 03:57:17 -0800177 "java_tools_javac11_linux-v7.0.zip": [
178 "https://mirror.bazel.build/bazel_java_tools/releases/javac11/v7.0/java_tools_javac11_linux-v7.0.zip",
hlopko6b06acc2019-03-25 04:40:10 -0700179 ],
Irina Iancua6cd4082019-11-22 03:57:17 -0800180 "java_tools_javac11_windows-v7.0.zip": [
181 "https://mirror.bazel.build/bazel_java_tools/releases/javac11/v7.0/java_tools_javac11_windows-v7.0.zip",
hlopko6b06acc2019-03-25 04:40:10 -0700182 ],
Irina Iancua6cd4082019-11-22 03:57:17 -0800183 "java_tools_javac11_darwin-v7.0.zip": [
184 "https://mirror.bazel.build/bazel_java_tools/releases/javac11/v7.0/java_tools_javac11_darwin-v7.0.zip",
hlopko6b06acc2019-03-25 04:40:10 -0700185 ],
Ulf Adams9588a9e2019-12-10 07:29:54 -0800186 "coverage_output_generator-v2.1.zip": [
187 "https://mirror.bazel.build/bazel_coverage_output_generator/releases/coverage_output_generator-v2.1.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 Chai168d0a72020-01-13 15:30:24 -0800201 "android_tools_pkg-0.14.tar.gz": [
202 "https://mirror.bazel.build/bazel_android_tools/android_tools_pkg-0.14.tar.gz",
Jingwen Chen186929e2019-04-02 10:38:30 -0700203 ],
hlopkoaaf64572019-06-14 02:33:56 -0700204 # bazelbuild/platforms
aldersondrive64235c32019-11-18 08:50:39 -0800205 "46993efdd33b73649796c5fc5c9efb193ae19d51.zip": [
206 "https://mirror.bazel.build/github.com/bazelbuild/platforms/archive/46993efdd33b73649796c5fc5c9efb193ae19d51.zip",
207 "https://github.com/bazelbuild/platforms/archive/46993efdd33b73649796c5fc5c9efb193ae19d51.zip",
hlopkoaaf64572019-06-14 02:33:56 -0700208 ],
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
Marcel Hlopko02d19662019-11-11 21:55:16 -0800215 "8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip": [
216 "https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip",
217 "https://github.com/bazelbuild/rules_cc/archive/8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip",
oquenchil96068872019-07-08 07:01:39 -0700218 ],
Jakob Buchgraber60df9052019-07-11 06:08:00 -0700219 # bazelbuild/bazel-toolchains
philwob14e4062020-01-27 03:02:32 -0800220 "2.0.2.tar.gz": [
221 "https://mirror.bazel.build/github.com/bazelbuild/bazel-toolchains/archive/2.0.2.tar.gz",
222 "https://github.com/bazelbuild/bazel-toolchains/releases/download/2.0.2/bazel-toolchains-2.0.2.tar.gz",
Jakob Buchgraber60df9052019-07-11 06:08:00 -0700223 ],
Tony Aiutoed8a5ec2019-07-17 08:33:48 -0700224 # bazelbuild/rules_pkg
philwob14e4062020-01-27 03:02:32 -0800225 "rules_pkg-0.2.4.tar.gz": [
226 "https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.2.4/rules_pkg-0.2.4.tar.gz",
227 "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 -0700228 ],
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",
philwob14e4062020-01-27 03:02:32 -0800389 sha256 = "a653c9d318e42b14c0ccd7ac50c4a2a276c0db1e39743ab88b5aa2f0bc9cf607",
390 strip_prefix = "bazel-toolchains-2.0.2",
Keith Smiley7fcbeec2019-04-23 17:06:02 -0700391 urls = [
philwob14e4062020-01-27 03:02:32 -0800392 "https://mirror.bazel.build/github.com/bazelbuild/bazel-toolchains/archive/2.0.2.tar.gz",
393 "https://github.com/bazelbuild/bazel-toolchains/releases/download/2.0.2/bazel-toolchains-2.0.2.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
ccalvarin8e9f4a82018-03-23 08:19:37 -0700421http_archive(
422 name = "com_google_googletest",
Yannic Bonenberger5b4ab2d2019-10-15 05:38:04 -0700423 sha256 = "9dc9157a9a1551ec7a7e43daea9a694a0bb5fb8bec81235d8a1e6ef64c716dcb",
424 strip_prefix = "googletest-release-1.10.0",
ccalvarin8e9f4a82018-03-23 08:19:37 -0700425 urls = [
Yannic Bonenberger5b4ab2d2019-10-15 05:38:04 -0700426 "https://mirror.bazel.build/github.com/google/googletest/archive/release-1.10.0.tar.gz",
427 "https://github.com/google/googletest/archive/release-1.10.0.tar.gz",
ccalvarin8e9f4a82018-03-23 08:19:37 -0700428 ],
ccalvarin8e9f4a82018-03-23 08:19:37 -0700429)
430
cparsons871cd6f2018-08-16 09:10:38 -0700431http_archive(
432 name = "bazel_skylib",
Klaus Aehligdbe05df2018-12-06 06:00:49 -0800433 # Commit f83cb8dd6f5658bc574ccd873e25197055265d1c of 2018-11-26
cparsons48b672c2018-11-29 15:01:32 -0800434 sha256 = "ba5d15ca230efca96320085d8e4d58da826d1f81b444ef8afccd8b23e0799b52",
435 strip_prefix = "bazel-skylib-f83cb8dd6f5658bc574ccd873e25197055265d1c",
cparsons871cd6f2018-08-16 09:10:38 -0700436 urls = [
hlopko6b06acc2019-03-25 04:40:10 -0700437 "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/archive/f83cb8dd6f5658bc574ccd873e25197055265d1c.tar.gz",
cparsons48b672c2018-11-29 15:01:32 -0800438 "https://github.com/bazelbuild/bazel-skylib/archive/f83cb8dd6f5658bc574ccd873e25197055265d1c.tar.gz",
cparsons871cd6f2018-08-16 09:10:38 -0700439 ],
cparsons871cd6f2018-08-16 09:10:38 -0700440)
cparsonsa5be6612018-08-27 13:21:21 -0700441
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700442# Note that skydoc depends on being called io_bazel_skydoc (and not just skydoc)
443# to work without being patched, as it hard-codes this name in its sources.
cparsonsa5be6612018-08-27 13:21:21 -0700444http_archive(
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700445 name = "io_bazel_skydoc",
cparsons8121d852019-08-14 08:52:13 -0700446 sha256 = "e6a76586b264f30679688f65f7e71ac112d1446681010a13bf22d9ca071f34b7",
447 strip_prefix = "skydoc-c7bbde2950769aac9a99364b0926230060a3ce04",
cparsonsa5be6612018-08-27 13:21:21 -0700448 urls = [
cparsons8121d852019-08-14 08:52:13 -0700449 "https://mirror.bazel.build/github.com/bazelbuild/skydoc/archive/c7bbde2950769aac9a99364b0926230060a3ce04.tar.gz",
450 "https://github.com/bazelbuild/skydoc/archive/c7bbde2950769aac9a99364b0926230060a3ce04.tar.gz",
cparsonsa5be6612018-08-27 13:21:21 -0700451 ],
cparsonsa5be6612018-08-27 13:21:21 -0700452)
Klaus Aehligacafe5a2018-10-24 03:16:42 -0700453
oquenchil96068872019-07-08 07:01:39 -0700454http_archive(
455 name = "rules_cc",
Marcel Hlopko02d19662019-11-11 21:55:16 -0800456 sha256 = "1d4dbbd1e1e9b57d40bb0ade51c9e882da7658d5bfbf22bbd15b68e7879d761f",
457 strip_prefix = "rules_cc-8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0",
oquenchil96068872019-07-08 07:01:39 -0700458 urls = [
Marcel Hlopko02d19662019-11-11 21:55:16 -0800459 "https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip",
460 "https://github.com/bazelbuild/rules_cc/archive/8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip",
oquenchil96068872019-07-08 07:01:39 -0700461 ],
462)
463
iirinab815b792019-07-17 05:47:01 -0700464http_archive(
465 name = "rules_java",
466 sha256 = "bc81f1ba47ef5cc68ad32225c3d0e70b8c6f6077663835438da8d5733f917598",
iirinad26a3c12019-07-19 04:39:33 -0700467 strip_prefix = "rules_java-7cf3cefd652008d0a64a419c34c13bdca6c8f178",
iirinab815b792019-07-17 05:47:01 -0700468 urls = [
iirinad26a3c12019-07-19 04:39:33 -0700469 "https://mirror.bazel.build/github.com/bazelbuild/rules_java/archive/7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
470 "https://github.com/bazelbuild/rules_java/archive/7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
iirinab815b792019-07-17 05:47:01 -0700471 ],
iirinab815b792019-07-17 05:47:01 -0700472)
473
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700474http_archive(
475 name = "rules_proto",
Yannic Bonenbergercb44f662019-08-06 02:56:18 -0700476 sha256 = "602e7161d9195e50246177e7c55b2f39950a9cf7366f74ed5f22fd45750cd208",
477 strip_prefix = "rules_proto-97d8af4dc474595af3900dd85cb3a29ad28cc313",
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700478 urls = [
Yannic Bonenbergercb44f662019-08-06 02:56:18 -0700479 "https://mirror.bazel.build/github.com/bazelbuild/rules_proto/archive/97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz",
480 "https://github.com/bazelbuild/rules_proto/archive/97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz",
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700481 ],
482)
483
Klaus Aehligacafe5a2018-10-24 03:16:42 -0700484# For testing, have an distdir_tar with all the archives implicit in every
485# WORKSPACE, to that they don't have to be refetched for every test
486# calling `bazel sync`.
487distdir_tar(
Jingwen Chen186929e2019-04-02 10:38:30 -0700488 name = "test_WORKSPACE_files",
philwo75edd782019-01-29 05:02:44 -0800489 archives = [
490 "zulu9.0.7.1-jdk9.0.7-linux_x64-allmodules.tar.gz",
491 "zulu9.0.7.1-jdk9.0.7-macosx_x64-allmodules.tar.gz",
492 "zulu9.0.7.1-jdk9.0.7-win_x64-allmodules.zip",
493 "jdk9-server-release-1708.tar.xz",
494 "zulu10.2+3-jdk10.0.1-linux_x64-allmodules.tar.gz",
495 "zulu10.2+3-jdk10.0.1-macosx_x64-allmodules.tar.gz",
496 "zulu10.2+3-jdk10.0.1-win_x64-allmodules.zip",
497 "jdk10-server-release-1804.tar.xz",
Irina Iancua6cd4082019-11-22 03:57:17 -0800498 "java_tools_javac11_linux-v7.0.zip",
499 "java_tools_javac11_windows-v7.0.zip",
500 "java_tools_javac11_darwin-v7.0.zip",
Ulf Adams9588a9e2019-12-10 07:29:54 -0800501 "coverage_output_generator-v2.1.zip",
philwo75edd782019-01-29 05:02:44 -0800502 "zulu11.2.3-jdk11.0.1-linux_x64.tar.gz",
503 "zulu11.2.3-jdk11.0.1-macosx_x64.tar.gz",
504 "zulu11.2.3-jdk11.0.1-win_x64.zip",
Tobias Werth00680552019-02-03 02:17:41 -0800505 "zulu11.29.3-ca-jdk11.0.2-linux_x64.tar.gz",
philwo9f7fe692019-06-27 06:53:12 -0700506 "zulu11.31.15-ca-jdk11.0.3-linux_aarch64.tar.gz",
Tobias Werth00680552019-02-03 02:17:41 -0800507 "zulu11.29.3-ca-jdk11.0.2-macosx_x64.zip",
508 "zulu11.29.3-ca-jdk11.0.2-win_x64.zip",
Donald Chai168d0a72020-01-13 15:30:24 -0800509 "android_tools_pkg-0.14.tar.gz",
hlopkoaaf64572019-06-14 02:33:56 -0700510 # bazelbuild/platforms
aldersondrive64235c32019-11-18 08:50:39 -0800511 "46993efdd33b73649796c5fc5c9efb193ae19d51.zip",
iirinae8260492019-07-03 05:16:09 -0700512 # bazelbuild/rules_java
513 "7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
oquenchil96068872019-07-08 07:01:39 -0700514 # bazelbuild/rules_cc
Marcel Hlopko02d19662019-11-11 21:55:16 -0800515 "8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip",
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700516 # bazelbuild/rules_proto
Yannic Bonenbergercb44f662019-08-06 02:56:18 -0700517 "97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz",
philwo75edd782019-01-29 05:02:44 -0800518 ],
Jingwen Chen186929e2019-04-02 10:38:30 -0700519 dirname = "test_WORKSPACE/distdir",
philwo75edd782019-01-29 05:02:44 -0800520 sha256 = {
521 "zulu9.0.7.1-jdk9.0.7-linux_x64-allmodules.tar.gz": "f27cb933de4f9e7fe9a703486cf44c84bc8e9f138be0c270c9e5716a32367e87",
522 "zulu9.0.7.1-jdk9.0.7-macosx_x64-allmodules.tar.gz": "404e7058ff91f956612f47705efbee8e175a38b505fb1b52d8c1ea98718683de",
523 "zulu9.0.7.1-jdk9.0.7-win_x64-allmodules.zip": "e738829017f107e7a7cd5069db979398ec3c3f03ef56122f89ba38e7374f63ed",
524 "jdk9-server-release-1708.tar.xz": "72e7843902b0395e2d30e1e9ad2a5f05f36a4bc62529828bcbc698d54aec6022",
525 "zulu10.2+3-jdk10.0.1-linux_x64-allmodules.tar.gz": "57fad3602e74c79587901d6966d3b54ef32cb811829a2552163185d5064fe9b5",
526 "zulu10.2+3-jdk10.0.1-macosx_x64-allmodules.tar.gz": "e669c9a897413d855b550b4e39d79614392e6fb96f494e8ef99a34297d9d85d3",
527 "zulu10.2+3-jdk10.0.1-win_x64-allmodules.zip": "c39e7700a8d41794d60985df5a20352435196e78ecbc6a2b30df7be8637bffd5",
528 "jdk10-server-release-1804.tar.xz": "b7098b7aaf6ee1ffd4a2d0371a0be26c5a5c87f6aebbe46fe9a92c90583a84be",
Irina Iancua6cd4082019-11-22 03:57:17 -0800529 "java_tools_javac11_linux-v7.0.zip": "3ff465e82954a70f49982610dd63f6f651beaa83c707dd637870b0e41cdcd2f0",
530 "java_tools_javac11_windows-v7.0.zip": "11d90a147919e74d11870cdd58c4ee5de3062c08d11b16aa72d3f3bbfa9497a0",
531 "java_tools_javac11_darwin-v7.0.zip": "373a4226906ae9ba908550da16e133c4cd1f01b8973af82b9a2eb6903cb4d645",
Ulf Adams9588a9e2019-12-10 07:29:54 -0800532 "coverage_output_generator-v2.1.zip": "96ac6bc9b9fbc67b532bcae562da1642409791e6a4b8e522f04946ee5cc3ff8e",
philwo75edd782019-01-29 05:02:44 -0800533 "zulu11.2.3-jdk11.0.1-linux_x64.tar.gz": "232b1c3511f0d26e92582b7c3cc363be7ac633e371854ca2f2e9f2b50eb72a75",
philwo9f7fe692019-06-27 06:53:12 -0700534 "zulu11.31.15-ca-jdk11.0.3-linux_aarch64.tar.gz": "3b0d91611b1bdc4d409afcf9eab4f0e7f4ae09f88fc01bd9f2b48954882ae69b",
philwo75edd782019-01-29 05:02:44 -0800535 "zulu11.2.3-jdk11.0.1-macosx_x64.tar.gz": "1edf366ee821e5db8e348152fcb337b28dfd6bf0f97943c270dcc6747cedb6cb",
536 "zulu11.2.3-jdk11.0.1-win_x64.zip": "8e1e2b8347de6746f3fd1538840dd643201533ab113abc4ed93678e342d28aa3",
Tobias Werth00680552019-02-03 02:17:41 -0800537 "zulu11.29.3-ca-jdk11.0.2-linux_x64.tar.gz": "f3f44b6235508e87b760bf37a49e186cc1fa4e9cd28384c4dbf5a33991921e08",
538 "zulu11.29.3-ca-jdk11.0.2-macosx_x64.zip": "059f8e3484bf07b63a8f2820d5f528f473eff1befdb1896ee4f8ff06be3b8d8f",
539 "zulu11.29.3-ca-jdk11.0.2-win_x64.zip": "e1f5b4ce1b9148140fae2fcfb8a96d1c9b7eac5b8df0e13fbcad9b8561284880",
philwob14e4062020-01-27 03:02:32 -0800540 "android_tools_pkg-0.14.tar.gz": "a3a951838448483e7af25afd10671b266cc6283104b4a2a427d31cac12cf0912", # built at 6c63d70ef9c11a662b8323c0ae4f6d3ac53b1a60
hlopkoaaf64572019-06-14 02:33:56 -0700541 # bazelbuild/platforms
aldersondrive64235c32019-11-18 08:50:39 -0800542 "46993efdd33b73649796c5fc5c9efb193ae19d51.zip": "66184688debeeefcc2a16a2f80b03f514deac8346fe888fb7e691a52c023dd88",
iirinae8260492019-07-03 05:16:09 -0700543 # bazelbuild/rules_java
544 "7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip": "bc81f1ba47ef5cc68ad32225c3d0e70b8c6f6077663835438da8d5733f917598",
oquenchil96068872019-07-08 07:01:39 -0700545 # bazelbuild/rules_cc
Marcel Hlopko02d19662019-11-11 21:55:16 -0800546 "8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip": "1d4dbbd1e1e9b57d40bb0ade51c9e882da7658d5bfbf22bbd15b68e7879d761f",
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700547 # bazelbuild/rules_proto
Yannic Bonenbergercb44f662019-08-06 02:56:18 -0700548 "97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz": "602e7161d9195e50246177e7c55b2f39950a9cf7366f74ed5f22fd45750cd208",
philwo75edd782019-01-29 05:02:44 -0800549 },
550 urls = {
551 "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"],
552 "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"],
553 "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"],
554 "jdk9-server-release-1708.tar.xz": ["https://mirror.bazel.build/openjdk.linaro.org/releases/jdk9-server-release-1708.tar.xz"],
555 "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"],
556 "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"],
557 "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"],
558 "jdk10-server-release-1804.tar.xz": ["https://mirror.bazel.build/openjdk.linaro.org/releases/jdk10-server-release-1804.tar.xz"],
Irina Iancua6cd4082019-11-22 03:57:17 -0800559 "java_tools_javac11_linux-v7.0.zip": ["https://mirror.bazel.build/bazel_java_tools/releases/javac11/v7.0/java_tools_javac11_linux-v7.0.zip"],
560 "java_tools_javac11_windows-v7.0.zip": ["https://mirror.bazel.build/bazel_java_tools/releases/javac11/v7.0/java_tools_javac11_windows-v7.0.zip"],
561 "java_tools_javac11_darwin-v7.0.zip": ["https://mirror.bazel.build/bazel_java_tools/releases/javac11/v7.0/java_tools_javac11_darwin-v7.0.zip"],
Ulf Adams9588a9e2019-12-10 07:29:54 -0800562 "coverage_output_generator-v2.1.zip": ["https://mirror.bazel.build/bazel_coverage_output_generator/releases/coverage_output_generator-v2.1.zip"],
philwo75edd782019-01-29 05:02:44 -0800563 "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"],
564 "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"],
565 "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 -0800566 "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 -0700567 "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 -0800568 "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"],
569 "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 Chai168d0a72020-01-13 15:30:24 -0800570 "android_tools_pkg-0.14.tar.gz": [
571 "https://mirror.bazel.build/bazel_android_tools/android_tools_pkg-0.14.tar.gz",
Jingwen Chen186929e2019-04-02 10:38:30 -0700572 ],
hlopkoaaf64572019-06-14 02:33:56 -0700573 # bazelbuild/platforms
aldersondrive64235c32019-11-18 08:50:39 -0800574 "46993efdd33b73649796c5fc5c9efb193ae19d51.zip": [
575 "https://mirror.bazel.build/github.com/bazelbuild/platforms/archive/46993efdd33b73649796c5fc5c9efb193ae19d51.zip",
576 "https://github.com/bazelbuild/platforms/archive/46993efdd33b73649796c5fc5c9efb193ae19d51.zip",
hlopkoaaf64572019-06-14 02:33:56 -0700577 ],
iirinae8260492019-07-03 05:16:09 -0700578 # bazelbuild/rules_java
579 "7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip": [
oquenchil96068872019-07-08 07:01:39 -0700580 "https://mirror.bazel.build/github.com/bazelbuild/rules_java/archive/7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
Jakob Buchgraber60df9052019-07-11 06:08:00 -0700581 "https://github.com/bazelbuild/rules_java/archive/7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip",
oquenchil96068872019-07-08 07:01:39 -0700582 ],
583 # bazelbuild/rules_cc
Marcel Hlopko02d19662019-11-11 21:55:16 -0800584 "8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip": [
585 "https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip",
586 "https://github.com/bazelbuild/rules_cc/archive/8bd6cd75d03c01bb82561a96d9c1f9f7157b13d0.zip",
oquenchil96068872019-07-08 07:01:39 -0700587 ],
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700588 # bazelbuild/rules_proto
Yannic Bonenbergercb44f662019-08-06 02:56:18 -0700589 "97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz": [
590 "https://mirror.bazel.build/github.com/bazelbuild/rules_proto/archive/97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz",
591 "https://github.com/bazelbuild/rules_proto/archive/97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz",
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700592 ],
philwo75edd782019-01-29 05:02:44 -0800593 },
Klaus Aehligacafe5a2018-10-24 03:16:42 -0700594)
Jingwen Chen186bdcd2018-12-14 10:27:23 -0800595
596load("//scripts/docs:doc_versions.bzl", "DOC_VERSIONS")
597
598[http_file(
599 name = "jekyll_tree_%s" % DOC_VERSION["version"].replace(".", "_"),
600 sha256 = DOC_VERSION["sha256"],
601 urls = ["https://mirror.bazel.build/bazel_versioned_docs/jekyll-tree-%s.tar" % DOC_VERSION["version"]],
602) for DOC_VERSION in DOC_VERSIONS]
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700603
604# Skydoc recommends declaring its dependencies via "*_dependencies" functions.
605# This requires that the repositories these functions come from need to be
606# fetched unconditionally for everything (including just building bazel!), so
607# provide them as http_archives that can be shiped in the distdir, to keep the
608# distribution archive self-contained.
609http_archive(
610 name = "io_bazel_rules_sass",
iirinaf5c334262019-03-19 02:44:59 -0700611 sha256 = "d868ce50d592ef4aad7dec4dd32ae68d2151261913450fac8390b3fd474bb898",
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700612 strip_prefix = "rules_sass-8ccf4f1c351928b55d5dddf3672e3667f6978d60",
613 urls = [
hlopko6b06acc2019-03-25 04:40:10 -0700614 "https://mirror.bazel.build/github.com/bazelbuild/rules_sass/archive/8ccf4f1c351928b55d5dddf3672e3667f6978d60.tar.gz",
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700615 "https://github.com/bazelbuild/rules_sass/archive/8ccf4f1c351928b55d5dddf3672e3667f6978d60.tar.gz",
616 ],
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700617)
iirinaf5c334262019-03-19 02:44:59 -0700618
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700619http_archive(
620 name = "build_bazel_rules_nodejs",
iirinaf5c334262019-03-19 02:44:59 -0700621 sha256 = "9b72bb0aea72d7cbcfc82a01b1e25bf3d85f791e790ddec16c65e2d906382ee0",
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700622 strip_prefix = "rules_nodejs-0.16.2",
623 urls = [
hlopko6b06acc2019-03-25 04:40:10 -0700624 "https://mirror.bazel.build/github.com/bazelbuild/rules_nodejs/archive/0.16.2.zip",
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700625 "https://github.com/bazelbuild/rules_nodejs/archive/0.16.2.zip",
626 ],
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700627)
628
iirina3ab4dbc2019-04-29 05:12:39 -0700629http_archive(
iirina93e80732019-04-16 02:07:40 -0700630 name = "java_tools_langtools_javac9",
iirinab815b792019-07-17 05:47:01 -0700631 sha256 = "d94befcfb325a9a62aebc2052e631fde2322b4df5c82a19ed260b38ba12a0ad1",
iirina3ab4dbc2019-04-29 05:12:39 -0700632 urls = [
iirinab815b792019-07-17 05:47:01 -0700633 "https://mirror.bazel.build/bazel_java_tools/jdk_langtools/langtools_jdk9_v2.zip",
iirina88bb4062019-04-29 08:02:40 -0700634 ],
iirina93e80732019-04-16 02:07:40 -0700635)
636
iirina3ab4dbc2019-04-29 05:12:39 -0700637http_archive(
iirina93e80732019-04-16 02:07:40 -0700638 name = "java_tools_langtools_javac10",
iirinab815b792019-07-17 05:47:01 -0700639 sha256 = "0e9c9ac5ef17869de3cb8c3497c4c0d31836ef7b63efe1690506f53783adb212",
iirina3ab4dbc2019-04-29 05:12:39 -0700640 urls = [
iirinab815b792019-07-17 05:47:01 -0700641 "https://mirror.bazel.build/bazel_java_tools/jdk_langtools/langtools_jdk10_v2.zip",
iirina88bb4062019-04-29 08:02:40 -0700642 ],
iirina93e80732019-04-16 02:07:40 -0700643)
644
iirinaa6e92602019-05-13 06:20:12 -0700645http_archive(
646 name = "java_tools_langtools_javac11",
iirinab815b792019-07-17 05:47:01 -0700647 sha256 = "cf0814fa002ef3d794582bb086516d8c9ed0958f83f19799cdb08949019fe4c7",
iirinaa6e92602019-05-13 06:20:12 -0700648 urls = [
iirinab815b792019-07-17 05:47:01 -0700649 "https://mirror.bazel.build/bazel_java_tools/jdk_langtools/langtools_jdk11_v2.zip",
iirinaa6e92602019-05-13 06:20:12 -0700650 ],
651)
652
iirina0eec6932019-06-12 07:48:22 -0700653http_archive(
hlopkoaaf64572019-06-14 02:33:56 -0700654 name = "platforms",
aldersondrive64235c32019-11-18 08:50:39 -0800655 sha256 = "66184688debeeefcc2a16a2f80b03f514deac8346fe888fb7e691a52c023dd88",
656 strip_prefix = "platforms-46993efdd33b73649796c5fc5c9efb193ae19d51",
hlopkoaaf64572019-06-14 02:33:56 -0700657 urls = [
aldersondrive64235c32019-11-18 08:50:39 -0800658 "https://mirror.bazel.build/github.com/bazelbuild/platforms/archive/46993efdd33b73649796c5fc5c9efb193ae19d51.zip",
659 "https://github.com/bazelbuild/platforms/archive/46993efdd33b73649796c5fc5c9efb193ae19d51.zip",
hlopkoaaf64572019-06-14 02:33:56 -0700660 ],
hlopkoaaf64572019-06-14 02:33:56 -0700661)
662
663http_archive(
iirina0eec6932019-06-12 07:48:22 -0700664 name = "java_tools_langtools_javac12",
665 sha256 = "99b107105165a91df82cd7cf82a8efb930d803fb7de1663cf7f780142104cd14",
666 urls = [
667 "https://mirror.bazel.build/bazel_java_tools/jdk_langtools/langtools_jdk12.zip",
668 ],
669)
670
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700671load("@io_bazel_skydoc//:setup.bzl", "skydoc_repositories")
iirinaf5c334262019-03-19 02:44:59 -0700672
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700673skydoc_repositories()
674
675load("@io_bazel_rules_sass//:package.bzl", "rules_sass_dependencies")
iirinaf5c334262019-03-19 02:44:59 -0700676
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700677rules_sass_dependencies()
678
679load("@build_bazel_rules_nodejs//:defs.bzl", "node_repositories")
iirinaf5c334262019-03-19 02:44:59 -0700680
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700681node_repositories()
682
683load("@io_bazel_rules_sass//:defs.bzl", "sass_repositories")
iirinaf5c334262019-03-19 02:44:59 -0700684
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700685sass_repositories()
Jakob Buchgraber593c5302019-04-16 10:12:20 -0700686
Keith Smiley7fcbeec2019-04-23 17:06:02 -0700687register_execution_platforms("//:default_host_platform") # buildozer: disable=positional-args
Tony Aiutoed8a5ec2019-07-17 08:33:48 -0700688
689# Tools for building deb, rpm and tar files.
690http_archive(
691 name = "rules_pkg",
philwob14e4062020-01-27 03:02:32 -0800692 sha256 = "4ba8f4ab0ff85f2484287ab06c0d871dcb31cc54d439457d28fd4ae14b18450a",
Tony Aiutoed8a5ec2019-07-17 08:33:48 -0700693 urls = [
philwob14e4062020-01-27 03:02:32 -0800694 "https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.2.4/rules_pkg-0.2.4.tar.gz",
695 "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 -0700696 ],
Tony Aiutoed8a5ec2019-07-17 08:33:48 -0700697)
iirinad26a3c12019-07-19 04:39:33 -0700698
Tony Aiutoed8a5ec2019-07-17 08:33:48 -0700699load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies")
iirinad26a3c12019-07-19 04:39:33 -0700700
Tony Aiutoed8a5ec2019-07-17 08:33:48 -0700701rules_pkg_dependencies()
Laszlo Csomor3e023182019-08-01 05:05:09 -0700702
703# Toolchains for Resource Compilation (.rc files on Windows).
704load("//src/main/res:winsdk_configure.bzl", "winsdk_configure")
705
706winsdk_configure(name = "local_config_winsdk")
707
708load("@local_config_winsdk//:toolchains.bzl", "register_local_rc_exe_toolchains")
709
710register_local_rc_exe_toolchains()
711
712register_toolchains("//src/main/res:empty_rc_toolchain")