blob: 9fd1b7c737e0a949f49ac455f8e141c9df0ad0bd [file] [log] [blame]
Kristina Chodorow93fbc3e2016-04-27 17:03:28 +00001workspace(name = "io_bazel")
philwo75edd782019-01-29 05:02:44 -08002
Googlerfbb58432023-05-05 15:36:26 -07003load("//tools/build_defs/repo:http.bzl", "http_archive")
Googlerd51c75f2023-06-01 06:10:45 -07004load("//:distdir.bzl", "dist_http_archive", "dist_http_jar", "distdir_tar")
Tony Aiuto3b2d3102021-01-07 03:40:14 -08005load("//:distdir_deps.bzl", "DIST_DEPS")
Googler3c84aa82023-04-11 09:40:31 -07006load("//:repositories.bzl", "embedded_jdk_repositories")
Googlerd51c75f2023-06-01 06:10:45 -07007load("//tools/jdk:jdk_build_file.bzl", "JDK_BUILD_TEMPLATE")
philwo17506af2020-01-28 04:20:39 -08008
9# These can be used as values for the patch_cmds and patch_cmds_win attributes
10# of http_archive, in order to export the WORKSPACE file from the BUILD or
11# BUILD.bazel file. This is useful for cases like //src:test_repos, where we
12# have to be able to trigger a fetch of a repo by depending on it, but we don't
13# actually want to build anything (so we can't depend on a target inside that
14# repo).
15EXPORT_WORKSPACE_IN_BUILD_FILE = [
16 "test -f BUILD && chmod u+w BUILD || true",
17 "echo >> BUILD",
18 "echo 'exports_files([\"WORKSPACE\"], visibility = [\"//visibility:public\"])' >> BUILD",
19]
20
21EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE = [
22 "test -f BUILD.bazel && chmod u+w BUILD.bazel || true",
23 "echo >> BUILD.bazel",
24 "echo 'exports_files([\"WORKSPACE\"], visibility = [\"//visibility:public\"])' >> BUILD.bazel",
25]
26
Fabian Meumertzheim883b6ee2023-04-25 11:13:57 -070027EXPORT_WORKSPACE_BAZEL_IN_BUILD_FILE = [
28 "test -f BUILD && chmod u+w BUILD || true",
29 "echo >> BUILD",
30 "echo 'exports_files([\"WORKSPACE.bazel\"], visibility = [\"//visibility:public\"])' >> BUILD",
31]
32
philwo17506af2020-01-28 04:20:39 -080033EXPORT_WORKSPACE_IN_BUILD_FILE_WIN = [
34 "Add-Content -Path BUILD -Value \"`nexports_files([`\"WORKSPACE`\"], visibility = [`\"//visibility:public`\"])`n\" -Force",
35]
36
37EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN = [
38 "Add-Content -Path BUILD.bazel -Value \"`nexports_files([`\"WORKSPACE`\"], visibility = [`\"//visibility:public`\"])`n\" -Force",
39]
Kristina Chodorow93fbc3e2016-04-27 17:03:28 +000040
Fabian Meumertzheim883b6ee2023-04-25 11:13:57 -070041EXPORT_WORKSPACE_BAZEL_IN_BUILD_FILE_WIN = [
42 "Add-Content -Path BUILD -Value \"`nexports_files([`\"WORKSPACE.bazel`\"], visibility = [`\"//visibility:public`\"])`n\" -Force",
43]
44
David Chenb78bbd52016-03-16 13:17:57 +000045# Protobuf expects an //external:python_headers label which would contain the
46# Python headers if fast Python protos is enabled. Since we are not using fast
47# Python protos, bind python_headers to a dummy target.
48bind(
49 name = "python_headers",
50 actual = "//:dummy",
51)
52
Alpha Lama1a79cb2016-05-15 19:13:52 +000053# Protobuf code generation for GRPC requires three external labels:
54# //external:grpc-java_plugin
55# //external:grpc-jar
56# //external:guava
57bind(
58 name = "grpc-java-plugin",
Vasilios Pantazopoulos5179d032022-04-08 07:55:27 -070059 actual = "//third_party/grpc-java:grpc-java-plugin",
Alpha Lama1a79cb2016-05-15 19:13:52 +000060)
61
62bind(
63 name = "grpc-jar",
Vasilios Pantazopoulos5179d032022-04-08 07:55:27 -070064 actual = "//third_party/grpc-java:grpc-jar",
Alpha Lama1a79cb2016-05-15 19:13:52 +000065)
66
67bind(
68 name = "guava",
69 actual = "//third_party:guava",
70)
71
Tony Aiuto881fc802022-05-25 06:30:17 -070072# We must control the version of rules_license we use, so we load ours before
73# any other repo can bring it in through their deps.
74dist_http_archive(
75 name = "rules_license",
76)
77
Damien Martin-Guillerez0baff0f2017-08-22 17:40:37 +020078# For src/test/shell/bazel:test_srcs
79load("//src/test/shell/bazel:list_source_repository.bzl", "list_source_repository")
cushonb6646232018-09-07 01:44:10 -070080
Damien Martin-Guillerez0baff0f2017-08-22 17:40:37 +020081list_source_repository(name = "local_bazel_source_list")
82
Adam Michael9b7330f2017-03-23 18:40:51 +000083# To run the Android integration tests in //src/test/shell/bazel/android:all or
84# build the Android sample app in //examples/android/java/bazel:hello_world
85#
86# 1. Install an Android SDK and NDK from https://developer.android.com
87# 2. Set the $ANDROID_HOME and $ANDROID_NDK_HOME environment variables
88# 3. Uncomment the two lines below
89#
90# android_sdk_repository(name = "androidsdk")
91# android_ndk_repository(name = "androidndk")
Cal Peyser2152bc12016-04-22 17:08:59 +000092
Benjamin Peterson19b2e2f2023-02-27 04:05:25 -080093# In order to run //src/test/shell/bazel:maven_starlark_test, follow the
Adam Michael8a136d82016-11-16 23:04:46 +000094# instructions above for the Android integration tests and uncomment the
95# following lines:
96# load("//tools/build_defs/repo:maven_rules.bzl", "maven_dependency_plugin")
97# maven_dependency_plugin()
98
gregceca48e9a2020-04-14 08:54:38 -070099# This allows rules written in Starlark to locate apple build tools.
philwo915fa8f2017-05-09 12:17:12 -0400100bind(
101 name = "xcrunwrapper",
102 actual = "@bazel_tools//tools/objc:xcrunwrapper",
103)
Carmi Grushkobfaff292016-08-17 18:37:55 +0000104
Tony Aiutoe973aef2021-01-11 00:32:51 -0800105dist_http_archive(
Carmi Grushko0fd73d62017-02-17 06:49:40 +0000106 name = "com_google_protobuf",
Ivo Liste9929af2023-01-12 08:18:00 -0800107 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
108 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
Carmi Grushko0fd73d62017-02-17 06:49:40 +0000109)
110
John Cater2f838922018-11-12 08:19:03 -0800111local_repository(
Jakob Buchgraber166f28c2017-05-30 16:41:18 +0200112 name = "googleapis",
cushonb6646232018-09-07 01:44:10 -0700113 path = "./third_party/googleapis/",
Jakob Buchgraber166f28c2017-05-30 16:41:18 +0200114)
115
John Cater2f838922018-11-12 08:19:03 -0800116local_repository(
Ola Rozenfeld930119a2018-08-10 11:04:44 -0700117 name = "remoteapis",
cushonb6646232018-09-07 01:44:10 -0700118 path = "./third_party/remoteapis/",
Ola Rozenfeld930119a2018-08-10 11:04:44 -0700119)
120
mennyf431b0c2021-01-13 09:18:29 -0800121dist_http_archive(
kmbbfd89d62018-04-11 14:26:56 -0700122 name = "desugar_jdk_libs",
kmbbfd89d62018-04-11 14:26:56 -0700123)
124
Klaus Aehlig3c9cd822018-05-24 03:35:42 -0700125distdir_tar(
126 name = "additional_distfiles",
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700127 # Keep in sync with the archives fetched as part of building bazel.
cparsons871cd6f2018-08-16 09:10:38 -0700128 archives = [
Googlerd96072a2023-02-08 13:00:18 -0800129 "android_tools_pkg-0.28.0.tar",
tedxae247142022-04-21 16:53:51 -0700130 # for android_gmaven_r8
Googlerc89ca0d2023-03-29 07:37:30 -0700131 "r8-8.0.40.jar",
cparsons871cd6f2018-08-16 09:10:38 -0700132 ],
cushonb6646232018-09-07 01:44:10 -0700133 dirname = "derived/distdir",
Tony Aiutoe973aef2021-01-11 00:32:51 -0800134 dist_deps = {dep: attrs for dep, attrs in DIST_DEPS.items() if "additional_distfiles" in attrs["used_in"]},
Klaus Aehlig3c9cd822018-05-24 03:35:42 -0700135 sha256 = {
Googlerd96072a2023-02-08 13:00:18 -0800136 "android_tools_pkg-0.28.0.tar": "db3b02421ae974e0b33573f3e4f658d5f89cc9a0b42baae0ba2ac08e25c0720a",
Googlerc89ca0d2023-03-29 07:37:30 -0700137 "r8-8.0.40.jar": "ab1379835c7d3e5f21f80347c3c81e2f762e0b9b02748ae5232c3afa14adf702",
cushonb6646232018-09-07 01:44:10 -0700138 },
139 urls = {
Googlerd96072a2023-02-08 13:00:18 -0800140 "android_tools_pkg-0.28.0.tar": [
141 "https://mirror.bazel.build/bazel_android_tools/android_tools_pkg-0.28.0.tar",
Jingwen Chen186929e2019-04-02 10:38:30 -0700142 ],
Googlerc89ca0d2023-03-29 07:37:30 -0700143 "r8-8.0.40.jar": [
144 "https://maven.google.com/com/android/tools/r8/8.0.40/r8-8.0.40.jar",
tedxae247142022-04-21 16:53:51 -0700145 ],
cushonb6646232018-09-07 01:44:10 -0700146 },
Klaus Aehlig3c9cd822018-05-24 03:35:42 -0700147)
148
Googler3c84aa82023-04-11 09:40:31 -0700149embedded_jdk_repositories()
Niyas Sait0ba4caa2022-02-02 10:29:06 -0800150
Tony Aiutoe973aef2021-01-11 00:32:51 -0800151dist_http_archive(
Chi Wang26b94ff2021-09-28 23:42:26 -0700152 name = "bazelci_rules",
philwo17506af2020-01-28 04:20:39 -0800153 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
154 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
Googler5f36bf82017-07-12 20:43:08 +0200155)
ccalvarin1cbe62a2017-08-14 21:09:07 +0200156
Chi Wang26b94ff2021-09-28 23:42:26 -0700157load("@bazelci_rules//:rbe_repo.bzl", "rbe_preconfig")
Jakob Buchgraber60df9052019-07-11 06:08:00 -0700158
Chi Wang26b94ff2021-09-28 23:42:26 -0700159rbe_preconfig(
Chi Wang26b94ff2021-09-28 23:42:26 -0700160 name = "rbe_ubuntu1804_java11",
161 toolchain = "ubuntu1804-bazel-java11",
162)
Googlerde0612a2019-03-07 06:06:55 -0800163
ccalvarin8e9f4a82018-03-23 08:19:37 -0700164http_archive(
165 name = "com_google_googletest",
Googlerae532982022-08-11 08:20:13 -0700166 sha256 = "81964fe578e9bd7c94dfdb09c8e4d6e6759e19967e397dbea48d1c10e45d0df2",
167 strip_prefix = "googletest-release-1.12.1",
ccalvarin8e9f4a82018-03-23 08:19:37 -0700168 urls = [
Googlerae532982022-08-11 08:20:13 -0700169 "https://mirror.bazel.build/github.com/google/googletest/archive/refs/tags/release-1.12.1.tar.gz",
170 "https://github.com/google/googletest/archive/refs/tags/release-1.12.1.tar.gz",
ccalvarin8e9f4a82018-03-23 08:19:37 -0700171 ],
ccalvarin8e9f4a82018-03-23 08:19:37 -0700172)
173
Tony Aiuto2b7ec5c2021-01-11 07:50:26 -0800174dist_http_archive(
cparsons871cd6f2018-08-16 09:10:38 -0700175 name = "bazel_skylib",
Yannic Bonenberger5e571d22020-02-13 07:29:58 -0800176 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
177 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
cparsonsa5be6612018-08-27 13:21:21 -0700178)
Klaus Aehligacafe5a2018-10-24 03:16:42 -0700179
Alessandro Patti6da80862021-11-11 22:49:37 -0800180dist_http_archive(
Ivo List78729c02023-03-03 08:27:25 -0800181 name = "rules_python",
182 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
183 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
184)
185
186load("@rules_python//python:repositories.bzl", "py_repositories")
187
188py_repositories()
189
190dist_http_archive(
Alessandro Patti6da80862021-11-11 22:49:37 -0800191 name = "zstd-jni",
Liam Miller-Cushonc81e1752022-01-13 17:52:18 -0800192 build_file = "//third_party:zstd-jni/zstd-jni.BUILD",
Alessandro Patti6da80862021-11-11 22:49:37 -0800193 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
194 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
Son Luong Ngoc50b9a632022-10-14 06:14:26 -0700195 strip_prefix = "zstd-jni-1.5.2-3",
Alessandro Patti6da80862021-11-11 22:49:37 -0800196)
197
ajurkowski433dc602021-03-12 10:22:39 -0800198http_archive(
199 name = "org_snakeyaml",
ajurkowski433dc602021-03-12 10:22:39 -0800200 build_file_content = """
201java_library(
202 name = "snakeyaml",
ajurkowski433dc602021-03-12 10:22:39 -0800203 srcs = glob(["src/main/**/*.java"]),
fweikert69895ba2022-07-13 04:56:04 -0700204 visibility = [
Googler98f35112022-07-13 07:00:41 -0700205 "@io_bazel//src/main/java/com/google/devtools/build/docgen/release:__pkg__",
fweikert69895ba2022-07-13 04:56:04 -0700206 "@com_google_testparameterinjector//:__pkg__",
207 ],
ajurkowski433dc602021-03-12 10:22:39 -0800208)
209""",
cushonc1d1df02021-04-07 11:07:00 -0700210 sha256 = "fd0e0cc6c5974fc8f08be3a15fb4a59954c7dd958b5b68186a803de6420b6e40",
211 strip_prefix = "asomov-snakeyaml-b28f0b4d87c6",
ajurkowski239a8e72021-03-23 10:22:49 -0700212 urls = ["https://mirror.bazel.build/bitbucket.org/asomov/snakeyaml/get/snakeyaml-1.28.tar.gz"],
ajurkowski433dc602021-03-12 10:22:39 -0800213)
214
ajurkowski433dc602021-03-12 10:22:39 -0800215http_archive(
216 name = "com_google_testparameterinjector",
ajurkowski433dc602021-03-12 10:22:39 -0800217 build_file_content = """
218java_library(
219 name = "testparameterinjector",
220 testonly = True,
221 srcs = glob(["src/main/**/*.java"]),
222 deps = [
223 "@org_snakeyaml//:snakeyaml",
224 "@//third_party:auto_value",
225 "@//third_party:guava",
226 "@//third_party:junit4",
227 "@//third_party/protobuf:protobuf_java",
228 ],
ajurkowskia3353d22021-03-15 12:38:48 -0700229 visibility = ["//visibility:public"],
ajurkowski433dc602021-03-12 10:22:39 -0800230)
231""",
cushonc1d1df02021-04-07 11:07:00 -0700232 sha256 = "562a0e87eb413a7dcad29ebc8d578f6f97503473943585b051c1398a58189b06",
233 strip_prefix = "TestParameterInjector-1.0",
ajurkowski433dc602021-03-12 10:22:39 -0800234 urls = [
235 "https://mirror.bazel.build/github.com/google/TestParameterInjector/archive/v1.0.tar.gz",
236 "https://github.com/google/TestParameterInjector/archive/v1.0.tar.gz",
237 ],
238)
239
Googlerd51c75f2023-06-01 06:10:45 -0700240# Used in src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
Tony Aiuto3b2d3102021-01-07 03:40:14 -0800241dist_http_archive(
oquenchil96068872019-07-08 07:01:39 -0700242 name = "rules_cc",
philwo17506af2020-01-28 04:20:39 -0800243 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
244 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
oquenchil96068872019-07-08 07:01:39 -0700245)
246
Tony Aiutob15a8b42021-01-08 07:42:57 -0800247dist_http_archive(
iirinab815b792019-07-17 05:47:01 -0700248 name = "rules_java",
philwo17506af2020-01-28 04:20:39 -0800249 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
250 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
iirinab815b792019-07-17 05:47:01 -0700251)
252
Tony Aiuto320bc942021-01-14 07:43:21 -0800253dist_http_archive(
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700254 name = "rules_proto",
philwo17506af2020-01-28 04:20:39 -0800255 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
256 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
Yannic Bonenbergerff449692019-07-25 05:55:49 -0700257)
258
Googlerd51c75f2023-06-01 06:10:45 -0700259# For testing, have an distdir_tar with all the archives implicit in every
260# WORKSPACE, to that they don't have to be refetched for every test
261# calling `bazel sync`.
262distdir_tar(
263 name = "test_WORKSPACE_files",
264 archives = [
265 "android_tools_pkg-0.28.0.tar",
266 ],
267 dirname = "test_WORKSPACE/distdir",
268 dist_deps = {dep: attrs for dep, attrs in DIST_DEPS.items() if "test_WORKSPACE_files" in attrs["used_in"]},
269 sha256 = {
270 "android_tools_pkg-0.28.0.tar": "db3b02421ae974e0b33573f3e4f658d5f89cc9a0b42baae0ba2ac08e25c0720a",
271 },
272 urls = {
273 "android_tools_pkg-0.28.0.tar": [
274 "https://mirror.bazel.build/bazel_android_tools/android_tools_pkg-0.28.0.tar",
275 ],
276 },
277)
278
Tony Aiuto2b7ec5c2021-01-11 07:50:26 -0800279dist_http_archive(
280 name = "io_bazel_skydoc",
281)
282
Tony Aiutoe973aef2021-01-11 00:32:51 -0800283dist_http_archive(
hlopkoaaf64572019-06-14 02:33:56 -0700284 name = "platforms",
hlopkoaaf64572019-06-14 02:33:56 -0700285)
286
philwo17506af2020-01-28 04:20:39 -0800287# This must be kept in sync with src/main/java/com/google/devtools/build/lib/bazel/rules/android/android_remote_tools.WORKSPACE
Ted Xiee7d50fc2022-11-15 11:55:05 -0800288# and tools/android/android_extensions.bzl
philwo17506af2020-01-28 04:20:39 -0800289http_archive(
290 name = "android_tools_for_testing",
291 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
292 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
Googlerd96072a2023-02-08 13:00:18 -0800293 sha256 = "db3b02421ae974e0b33573f3e4f658d5f89cc9a0b42baae0ba2ac08e25c0720a", # DO_NOT_REMOVE_THIS_ANDROID_TOOLS_UPDATE_MARKER
294 url = "https://mirror.bazel.build/bazel_android_tools/android_tools_pkg-0.28.0.tar",
philwo17506af2020-01-28 04:20:39 -0800295)
296
Googlerfbb58432023-05-05 15:36:26 -0700297# This is here to override the android_gmaven_r8 rule from
298# src/main/java/com/google/devtools/build/lib/bazel/rules/android/android_remote_tools.WORKSPACE
299# so that tests like src/test/java/com/google/devtools/build/android/r8:AllTests
300# use the most recent version of R8 rather than the one might be referenced in a released
301# version of bazel that might have an outdated android_remote_tools.WORKSPACE relative to the tests.
302dist_http_jar(
303 name = "android_gmaven_r8",
tedxae247142022-04-21 16:53:51 -0700304)
305
aiutobbeb1da2021-01-15 06:50:56 -0800306dist_http_archive(
307 name = "remote_coverage_tools",
philwo17506af2020-01-28 04:20:39 -0800308 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
309 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
philwo17506af2020-01-28 04:20:39 -0800310)
311
Googlerd51c75f2023-06-01 06:10:45 -0700312dist_http_archive(
313 name = "remotejdk11_linux_for_testing",
314 build_file_content = JDK_BUILD_TEMPLATE.format(RUNTIME_VERSION = 11),
315 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
316 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
317)
318
319dist_http_archive(
320 name = "remotejdk11_linux_aarch64_for_testing",
321 build_file_content = JDK_BUILD_TEMPLATE.format(RUNTIME_VERSION = 11),
322 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
323 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
324)
325
326dist_http_archive(
327 name = "remotejdk11_linux_ppc64le_for_testing",
328 build_file_content = JDK_BUILD_TEMPLATE.format(RUNTIME_VERSION = 11),
329 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
330 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
331)
332
333dist_http_archive(
334 name = "remotejdk11_linux_s390x_for_testing",
335 build_file_content = JDK_BUILD_TEMPLATE.format(RUNTIME_VERSION = 11),
336 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
337 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
338)
339
340dist_http_archive(
341 name = "remotejdk11_macos_for_testing",
342 build_file_content = JDK_BUILD_TEMPLATE.format(RUNTIME_VERSION = 11),
343 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
344 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
345)
346
347dist_http_archive(
348 name = "remotejdk11_macos_aarch64_for_testing",
349 build_file_content = JDK_BUILD_TEMPLATE.format(RUNTIME_VERSION = 11),
350 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
351 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
352)
353
354dist_http_archive(
355 name = "remotejdk11_win_for_testing",
356 build_file_content = JDK_BUILD_TEMPLATE.format(RUNTIME_VERSION = 11),
357 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
358 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
359)
360
361dist_http_archive(
362 name = "remotejdk11_win_arm64_for_testing",
363 build_file_content = JDK_BUILD_TEMPLATE.format(RUNTIME_VERSION = 11),
364 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
365 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
366)
367
368[
369 dist_http_archive(
370 name = "remotejdk%s_%s_for_testing" % (version, os),
371 build_file_content = JDK_BUILD_TEMPLATE.format(RUNTIME_VERSION = version),
372 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE,
373 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_BAZEL_FILE_WIN,
374 )
375 for version in ("17", "20")
376 for os in ("linux", "macos", "macos_aarch64", "win") + (("linux_s390x", "win_arm64") if version != "20" else ())
377]
378
379# Used in src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
380dist_http_archive(
381 name = "remote_java_tools_for_testing",
382 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
383 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
384)
385
386# Used in src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
387dist_http_archive(
388 name = "remote_java_tools_linux_for_testing",
389 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
390 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
391)
392
393# Used in src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
394dist_http_archive(
395 name = "remote_java_tools_windows_for_testing",
396 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
397 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
398)
399
400# Used in src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
401dist_http_archive(
402 name = "remote_java_tools_darwin_x86_64_for_testing",
403 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
404 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
405)
406
407# Used in src/main/java/com/google/devtools/build/lib/bazel/rules/java/jdk.WORKSPACE.
408dist_http_archive(
409 name = "remote_java_tools_darwin_arm64_for_testing",
410 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
411 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
412)
413
414# Used in src/test/shell/bazel/testdata/jdk_http_archives.
415dist_http_archive(
416 name = "remote_java_tools_test",
417 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
418 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
419)
420
421# Used in src/test/shell/bazel/testdata/jdk_http_archives.
422dist_http_archive(
423 name = "remote_java_tools_test_linux",
424 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
425 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
426)
427
428# Used in src/test/shell/bazel/testdata/jdk_http_archives.
429dist_http_archive(
430 name = "remote_java_tools_test_windows",
431 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
432 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
433)
434
435# Used in src/test/shell/bazel/testdata/jdk_http_archives.
436dist_http_archive(
437 name = "remote_java_tools_test_darwin_x86_64",
438 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
439 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
440)
441
442# Used in src/test/shell/bazel/testdata/jdk_http_archives.
443dist_http_archive(
444 name = "remote_java_tools_test_darwin_arm64",
445 patch_cmds = EXPORT_WORKSPACE_IN_BUILD_FILE,
446 patch_cmds_win = EXPORT_WORKSPACE_IN_BUILD_FILE_WIN,
447)
448
449dist_http_archive(
450 name = "openjdk11_linux_archive",
451 build_file_content = """
452java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])
453exports_files(["WORKSPACE"], visibility = ["//visibility:public"])
454""",
455)
456
457# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
458dist_http_archive(
459 name = "openjdk11_linux_s390x_archive",
460 build_file_content = """
461java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])
462exports_files(["WORKSPACE"], visibility = ["//visibility:public"])
463""",
464)
465
466# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
467dist_http_archive(
468 name = "openjdk11_darwin_archive",
469 build_file_content = """
470java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])
471exports_files(["WORKSPACE"], visibility = ["//visibility:public"])
472""",
473)
474
475# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
476dist_http_archive(
477 name = "openjdk11_darwin_aarch64_archive",
478 build_file_content = """
479java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])
480exports_files(["WORKSPACE"], visibility = ["//visibility:public"])
481""",
482)
483
484# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
485dist_http_archive(
486 name = "openjdk11_windows_archive",
487 build_file_content = """
488java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])
489exports_files(["WORKSPACE"], visibility = ["//visibility:public"])
490""",
491)
492
493# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
494dist_http_archive(
495 name = "openjdk11_windows_arm64_archive",
496 build_file_content = """
497java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])
498exports_files(["WORKSPACE"], visibility = ["//visibility:public"])
499""",
500)
501
502# This must be kept in sync with src/test/shell/bazel/testdata/jdk_http_archives.
503[
504 dist_http_archive(
505 name = "openjdk%s_%s_archive" % (version, os),
506 build_file_content = """
507java_runtime(name = 'runtime', srcs = glob(['**']), visibility = ['//visibility:public'])
508exports_files(["WORKSPACE"], visibility = ["//visibility:public"])
509""",
510 )
511 for version in ("17", "20")
512 for os in ("linux", "darwin", "darwin_aarch64", "windows") + (("linux_s390x", "windows_arm64") if version != "20" else ())
513]
Liam Miller-Cushona7f1c712022-03-29 11:57:55 -0700514
wyv8062ca42020-05-25 00:21:00 -0700515load("@io_bazel_skydoc//:setup.bzl", "stardoc_repositories")
iirinaf5c334262019-03-19 02:44:59 -0700516
wyv8062ca42020-05-25 00:21:00 -0700517stardoc_repositories()
Klaus Aehlig6f52fca2019-03-18 03:43:40 -0700518
Keith Smiley7fcbeec2019-04-23 17:06:02 -0700519register_execution_platforms("//:default_host_platform") # buildozer: disable=positional-args
Tony Aiutoed8a5ec2019-07-17 08:33:48 -0700520
521# Tools for building deb, rpm and tar files.
Tony Aiuto1c9e7ca2021-01-05 08:01:21 -0800522dist_http_archive(
Tony Aiutoed8a5ec2019-07-17 08:33:48 -0700523 name = "rules_pkg",
Tony Aiutoed8a5ec2019-07-17 08:33:48 -0700524)
iirinad26a3c12019-07-19 04:39:33 -0700525
Tony Aiutoed8a5ec2019-07-17 08:33:48 -0700526load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies")
iirinad26a3c12019-07-19 04:39:33 -0700527
Tony Aiutoed8a5ec2019-07-17 08:33:48 -0700528rules_pkg_dependencies()
Laszlo Csomor3e023182019-08-01 05:05:09 -0700529
530# Toolchains for Resource Compilation (.rc files on Windows).
531load("//src/main/res:winsdk_configure.bzl", "winsdk_configure")
532
533winsdk_configure(name = "local_config_winsdk")
534
535load("@local_config_winsdk//:toolchains.bzl", "register_local_rc_exe_toolchains")
536
537register_local_rc_exe_toolchains()
538
539register_toolchains("//src/main/res:empty_rc_toolchain")
Yun Peng01609b82020-05-04 11:12:33 -0700540
Tony Aiutoe973aef2021-01-11 00:32:51 -0800541dist_http_archive(
Yun Penge2f11d72020-06-03 09:16:35 -0700542 name = "com_github_grpc_grpc",
Yun Penge2f11d72020-06-03 09:16:35 -0700543)
544
Yun Pengb47aa712022-04-05 04:21:29 -0700545# Override the abseil-cpp version defined in grpc_deps(), which doesn't work on latest macOS
546# Fixes https://github.com/bazelbuild/bazel/issues/15168
547dist_http_archive(
548 name = "com_google_absl",
549)
550
Ara Nguyene58785c2022-07-25 13:39:13 -0700551# for patching the "com_github_cncf_udpa" deps loaded by grpc_deps
552dist_http_archive(
553 name = "com_envoyproxy_protoc_gen_validate",
554)
555
556dist_http_archive(
557 name = "com_github_cncf_udpa",
558)
559
560dist_http_archive(
561 name = "com_google_googleapis",
562)
563
564dist_http_archive(
565 name = "upb",
566)
567
568dist_http_archive(
569 name = "bazel_gazelle",
570)
571
Yun Peng3d7937e2023-01-10 06:43:02 -0800572dist_http_archive(
573 name = "rules_jvm_external",
574)
575
Fabian Meumertzheim883b6ee2023-04-25 11:13:57 -0700576dist_http_archive(
577 name = "rules_testing",
578 patch_cmds = EXPORT_WORKSPACE_BAZEL_IN_BUILD_FILE,
579 patch_cmds_win = EXPORT_WORKSPACE_BAZEL_IN_BUILD_FILE_WIN,
580)
581
Yun Penge2f11d72020-06-03 09:16:35 -0700582# Projects using gRPC as an external dependency must call both grpc_deps() and
583# grpc_extra_deps().
584load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps")
Ivo List4c6c9992020-09-23 09:25:05 -0700585
Yun Penge2f11d72020-06-03 09:16:35 -0700586grpc_deps()
587
588load("@com_github_grpc_grpc//bazel:grpc_extra_deps.bzl", "grpc_extra_deps")
Ivo List4c6c9992020-09-23 09:25:05 -0700589
Yun Penge2f11d72020-06-03 09:16:35 -0700590grpc_extra_deps()
591
Yun Peng01609b82020-05-04 11:12:33 -0700592load("//tools/distributions/debian:deps.bzl", "debian_deps")
Ivo List4c6c9992020-09-23 09:25:05 -0700593
Yun Peng01609b82020-05-04 11:12:33 -0700594debian_deps()
Andrzej Guszak0f9a5922020-06-25 05:47:21 -0700595
596load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
Ivo List4c6c9992020-09-23 09:25:05 -0700597
Andrzej Guszak0f9a5922020-06-25 05:47:21 -0700598bazel_skylib_workspace()
Yun Peng3d7937e2023-01-10 06:43:02 -0800599
600load("@rules_jvm_external//:repositories.bzl", "rules_jvm_external_deps")
601
602rules_jvm_external_deps()
603
604load("@rules_jvm_external//:setup.bzl", "rules_jvm_external_setup")
605
606rules_jvm_external_setup()
607
608load("@rules_jvm_external//:defs.bzl", "maven_install")
Googlerecdb17d2023-02-23 08:07:16 -0800609load("@rules_jvm_external//:specs.bzl", "maven")
Yun Peng3d7937e2023-01-10 06:43:02 -0800610
611maven_install(
612 artifacts = [
Henry Sudhof5105e152023-04-27 14:44:44 -0700613 "com.beust:jcommander:1.82",
Yun Pengc749f802023-02-21 06:08:30 -0800614 "com.github.ben-manes.caffeine:caffeine:3.0.5",
615 "com.github.kevinstern:software-and-algorithms:1.0",
salma-samyc8f940b2023-01-30 08:49:57 -0800616 "com.github.stephenc.jcip:jcip-annotations:1.0-1",
Yun Pengc749f802023-02-21 06:08:30 -0800617 "com.google.api-client:google-api-client-gson:1.35.2",
618 "com.google.api-client:google-api-client:1.35.2",
619 "com.google.auth:google-auth-library-credentials:1.6.0",
620 "com.google.auth:google-auth-library-oauth2-http:1.6.0",
621 "com.google.auto.service:auto-service-annotations:1.0.1",
622 "com.google.auto.service:auto-service:1.0",
623 "com.google.auto.value:auto-value-annotations:1.9",
624 "com.google.auto.value:auto-value:1.8.2",
625 "com.google.auto:auto-common:1.2.1",
626 "com.google.code.findbugs:jsr305:3.0.2",
627 "com.google.code.gson:gson:2.9.0",
628 "com.google.code.java-allocation-instrumenter:java-allocation-instrumenter:3.3.0",
Benjamin Peterson4b9505f2023-05-17 01:08:46 -0700629 "com.google.errorprone:error_prone_annotation:2.19.0",
630 "com.google.errorprone:error_prone_annotations:2.19.0",
631 "com.google.errorprone:error_prone_check_api:2.19.0",
632 "com.google.errorprone:error_prone_core:2.19.0",
633 "com.google.errorprone:error_prone_type_annotations:2.19.0",
Yun Pengc749f802023-02-21 06:08:30 -0800634 "com.google.flogger:flogger-system-backend:0.5.1",
635 "com.google.flogger:flogger:0.5.1",
636 "com.google.flogger:google-extensions:0.5.1",
637 "com.google.guava:failureaccess:1.0.1",
638 "com.google.guava:guava:31.1-jre",
639 "com.google.http-client:google-http-client-gson:1.42.0",
640 "com.google.http-client:google-http-client:1.42.0",
641 "com.google.j2objc:j2objc-annotations:1.3",
salma-samyc8f940b2023-01-30 08:49:57 -0800642 "com.ryanharter.auto.value:auto-value-gson-extension:1.3.1",
643 "com.ryanharter.auto.value:auto-value-gson-runtime:1.3.1",
644 "com.ryanharter.auto.value:auto-value-gson-factory:1.3.1",
Yun Pengc749f802023-02-21 06:08:30 -0800645 "com.squareup:javapoet:1.12.0",
646 "commons-collections:commons-collections:3.2.2",
647 "commons-lang:commons-lang:2.6",
648 "io.github.java-diff-utils:java-diff-utils:4.0",
David Ostrovskye715e342023-04-28 20:32:48 -0700649 "io.grpc:grpc-api:1.48.1",
650 "io.grpc:grpc-auth:1.48.1",
651 "io.grpc:grpc-context:1.48.1",
652 "io.grpc:grpc-core:1.48.1",
653 "io.grpc:grpc-netty:1.48.1",
654 "io.grpc:grpc-protobuf-lite:1.48.1",
655 "io.grpc:grpc-protobuf:1.48.1",
656 "io.grpc:grpc-stub:1.48.1",
Zheng Wei Tanff1dc3b2023-05-26 07:18:26 -0700657 "io.netty:netty-buffer:4.1.93.Final",
658 "io.netty:netty-codec-http2:4.1.93.Final",
659 "io.netty:netty-codec-http:4.1.93.Final",
660 "io.netty:netty-codec:4.1.93.Final",
661 "io.netty:netty-common:4.1.93.Final",
662 "io.netty:netty-handler-proxy:4.1.93.Final",
663 "io.netty:netty-handler:4.1.93.Final",
664 "io.netty:netty-resolver-dns:4.1.93.Final",
665 "io.netty:netty-resolver:4.1.93.Final",
Yun Pengc749f802023-02-21 06:08:30 -0800666 "io.netty:netty-tcnative-boringssl-static:jar:linux-aarch_64:2.0.56.Final",
667 "io.netty:netty-tcnative-boringssl-static:jar:linux-x86_64:2.0.56.Final",
668 "io.netty:netty-tcnative-boringssl-static:jar:osx-aarch_64:2.0.56.Final",
669 "io.netty:netty-tcnative-boringssl-static:jar:osx-x86_64:2.0.56.Final",
670 "io.netty:netty-tcnative-boringssl-static:jar:windows-x86_64:2.0.56.Final",
671 "io.netty:netty-tcnative-classes:2.0.56.Final",
Zheng Wei Tanff1dc3b2023-05-26 07:18:26 -0700672 "io.netty:netty-transport-classes-epoll:4.1.93.Final",
673 "io.netty:netty-transport-classes-kqueue:4.1.93.Final",
674 "io.netty:netty-transport-native-epoll:jar:linux-aarch_64:4.1.93.Final",
675 "io.netty:netty-transport-native-epoll:jar:linux-x86_64:4.1.93.Final",
676 "io.netty:netty-transport-native-kqueue:jar:osx-aarch_64:4.1.93.Final",
677 "io.netty:netty-transport-native-kqueue:jar:osx-x86_64:4.1.93.Final",
678 "io.netty:netty-transport-native-unix-common:4.1.93.Final",
679 "io.netty:netty-transport-native-unix-common:jar:linux-aarch_64:4.1.93.Final",
680 "io.netty:netty-transport-native-unix-common:jar:linux-x86_64:4.1.93.Final",
681 "io.netty:netty-transport-native-unix-common:jar:osx-aarch_64:4.1.93.Final",
682 "io.netty:netty-transport-native-unix-common:jar:osx-x86_64:4.1.93.Final",
683 "io.netty:netty-transport-sctp:4.1.93.Final",
684 "io.netty:netty-transport:4.1.93.Final",
Yun Pengc749f802023-02-21 06:08:30 -0800685 "io.reactivex.rxjava3:rxjava:3.1.2",
686 "javax.activation:javax.activation-api:1.2.0",
687 "javax.annotation:javax.annotation-api:1.3.2",
Yun Peng51434e42023-03-13 10:16:03 -0700688 "javax.inject:javax.inject:1",
Yun Peng6cbe0f12023-03-22 10:30:54 -0700689 "net.bytebuddy:byte-buddy-agent:1.11.13",
690 "net.bytebuddy:byte-buddy:1.11.13",
Yun Pengc749f802023-02-21 06:08:30 -0800691 "org.apache.commons:commons-compress:1.19",
692 "org.apache.commons:commons-pool2:2.8.0",
693 "org.apache.tomcat:tomcat-annotations-api:8.0.5",
694 "org.apache.velocity:velocity:1.7",
695 "org.checkerframework:checker-qual:3.19.0",
696 "org.ow2.asm:asm-analysis:9.2",
697 "org.ow2.asm:asm-commons:9.2",
698 "org.ow2.asm:asm-tree:9.2",
699 "org.ow2.asm:asm-util:9.2",
700 "org.ow2.asm:asm:9.2",
701 "org.pcollections:pcollections:3.1.4",
702 "org.threeten:threeten-extra:1.5.0",
703 "org.tukaani:xz:1.9",
Tiago Quelhas5cbb1532023-04-17 03:20:34 -0700704 "tools.profiler:async-profiler:2.9",
Yun Peng6cbe0f12023-03-22 10:30:54 -0700705 # The following jars are for testing.
706 # junit is not test only due to //src/java_tools/junitrunner/java/com/google/testing/junit/junit4:runner,
707 # and hamcrest is a dependency of junit.
708 "junit:junit:4.13.2",
709 "org.hamcrest:hamcrest-core:1.3",
Tiago Quelhas5cbb1532023-04-17 03:20:34 -0700710 maven.artifact(
711 "com.google.guava",
712 "guava-testlib",
713 "31.1-jre",
714 testonly = True,
715 ),
716 maven.artifact(
717 "com.google.jimfs",
718 "jimfs",
719 "1.2",
720 testonly = True,
721 ),
722 maven.artifact(
723 "com.google.testing.compile",
724 "compile-testing",
725 "0.18",
726 testonly = True,
727 ),
728 maven.artifact(
729 "com.google.truth",
730 "truth",
731 "1.1.3",
732 testonly = True,
733 ),
734 maven.artifact(
735 "com.google.truth.extensions",
736 "truth-java8-extension",
737 "1.1.3",
738 testonly = True,
739 ),
740 maven.artifact(
741 "com.google.truth.extensions",
742 "truth-liteproto-extension",
743 "1.1.3",
744 testonly = True,
745 ),
746 maven.artifact(
747 "com.google.truth.extensions",
748 "truth-proto-extension",
749 "1.1.3",
750 testonly = True,
751 ),
752 maven.artifact(
753 "org.mockito",
754 "mockito-core",
755 "3.12.4",
756 testonly = True,
757 ),
Yun Peng3d7937e2023-01-10 06:43:02 -0800758 ],
Yun Pengc749f802023-02-21 06:08:30 -0800759 excluded_artifacts = [
760 # org.apache.httpcomponents and org.eclipse.jgit:org.eclipse.jgit
761 # require java.security.jgss module to be embedded in the Bazel binary.
762 "org.apache.httpcomponents:httpclient",
763 "org.apache.httpcomponents:httpcore",
764 "org.eclipse.jgit:org.eclipse.jgit",
765 # We build protobuf Java library from source, exclude protobuf jars to be safe.
766 "com.google.protobuf:protobuf-java",
767 "com.google.protobuf:protobuf-javalite",
768 ],
Henry Sudhof5105e152023-04-27 14:44:44 -0700769 fail_if_repin_required = False,
Ivo List78729c02023-03-03 08:27:25 -0800770 maven_install_json = "//:maven_install.json",
Yun Peng3d7937e2023-01-10 06:43:02 -0800771 repositories = [
Yun Peng3d7937e2023-01-10 06:43:02 -0800772 "https://repo1.maven.org/maven2",
773 ],
Yun Pengc749f802023-02-21 06:08:30 -0800774 strict_visibility = True,
Yun Peng3d7937e2023-01-10 06:43:02 -0800775)
776
777load("@maven//:defs.bzl", "pinned_maven_install")
salma-samyc8f940b2023-01-30 08:49:57 -0800778
Yun Peng3d7937e2023-01-10 06:43:02 -0800779pinned_maven_install()
Romain Jobredeauxaaf94c62023-01-13 06:32:40 -0800780
Romain Jobredeauxaaf94c62023-01-13 06:32:40 -0800781maven_install(
salma-samyc8f940b2023-01-30 08:49:57 -0800782 name = "maven_android",
Romain Jobredeauxaaf94c62023-01-13 06:32:40 -0800783 artifacts = [
Yun Peng51434e42023-03-13 10:16:03 -0700784 "androidx.databinding:databinding-compiler:3.4.0-alpha10",
salma-samyc8f940b2023-01-30 08:49:57 -0800785 "com.android.tools.build:builder:7.1.3",
786 "com.android.tools.build:manifest-merger:30.1.3",
787 "com.android.tools:sdk-common:30.1.3",
788 "com.android.tools:annotations:30.1.3",
789 "com.android.tools.layoutlib:layoutlib-api:30.1.3",
790 "com.android.tools:common:30.1.3",
791 "com.android.tools:repository:30.1.3",
Romain Jobredeauxaaf94c62023-01-13 06:32:40 -0800792 ],
Yun Peng51434e42023-03-13 10:16:03 -0700793 fail_if_repin_required = True,
salma-samyc8f940b2023-01-30 08:49:57 -0800794 maven_install_json = "//src/tools/android:maven_android_install.json",
Romain Jobredeauxaaf94c62023-01-13 06:32:40 -0800795 repositories = [
796 "https://dl.google.com/android/maven2",
797 "https://repo1.maven.org/maven2",
798 ],
Romain Jobredeauxaaf94c62023-01-13 06:32:40 -0800799)
800
801load("@maven_android//:defs.bzl", pinned_maven_install_android = "pinned_maven_install")
Romain Jobredeauxaaf94c62023-01-13 06:32:40 -0800802
salma-samyc8f940b2023-01-30 08:49:57 -0800803pinned_maven_install_android()