blob: 1c68ba5146338252633272810dcda2d421ff91e8 [file] [log] [blame]
Yun Peng9d308492023-08-08 00:49:00 -07001"""Bazel build and test dependencies."""
2
John Catercadbaa52023-10-16 10:16:21 -07003# NOTE: When editing this file, also update the lockfile.
4# bazel mod deps --lockfile_mode=update
5
Yun Peng6181a3c2021-10-28 03:11:19 -07006module(
Yun Peng1bf22462022-09-19 10:43:54 -07007 name = "bazel",
Yun Peng1bf22462022-09-19 10:43:54 -07008 repo_name = "io_bazel",
Yun Peng6181a3c2021-10-28 03:11:19 -07009)
10
Yun Pengb27ca732023-09-06 02:57:04 -070011# =========================================
12# Bazel module dependencies
13# =========================================
14
Xdng Yngc46b9ce2024-10-01 14:21:54 -070015bazel_dep(name = "rules_license", version = "1.0.0")
hvdb88b53a2024-09-20 02:28:12 -070016bazel_dep(name = "bazel_skylib", version = "1.7.1")
Xdng Yngc46b9ce2024-10-01 14:21:54 -070017bazel_dep(name = "grpc", version = "1.66.0.bcr.2", repo_name = "com_github_grpc_grpc")
18bazel_dep(name = "grpc-java", version = "1.66.0")
19bazel_dep(name = "googleapis", version = "0.0.0-20240819-fe8ba054a")
Fabian Meumertzheimc529cb22024-06-21 03:13:33 -070020bazel_dep(name = "platforms", version = "0.0.10")
Xdng Yngc46b9ce2024-10-01 14:21:54 -070021bazel_dep(name = "rules_pkg", version = "1.0.1")
hvdb88b53a2024-09-20 02:28:12 -070022bazel_dep(name = "stardoc", version = "0.7.1", repo_name = "io_bazel_skydoc")
Yun Peng9d308492023-08-08 00:49:00 -070023bazel_dep(name = "zstd-jni", version = "1.5.2-3.bcr.1")
Fabian Meumertzheim5e63f2d2024-04-26 01:39:36 -070024bazel_dep(name = "blake3", version = "1.5.1.bcr.1")
Xdng Yng2f67e572024-07-29 08:04:13 -070025bazel_dep(name = "zlib", version = "1.3.1.bcr.3")
Googlercb171a12024-10-15 06:14:51 -070026bazel_dep(name = "rules_cc", version = "0.0.13")
Googler93daa7b2024-10-25 08:11:45 -070027bazel_dep(name = "rules_java", version = "8.2.0")
Googler11498b52024-03-06 15:27:20 -080028bazel_dep(name = "rules_graalvm", version = "0.11.1")
hvdb88b53a2024-09-20 02:28:12 -070029bazel_dep(name = "rules_proto", version = "6.0.2")
Yun Peng849da312024-01-30 10:16:17 -080030bazel_dep(name = "rules_jvm_external", version = "6.0")
Ivo List557952d2024-09-25 12:40:40 -070031bazel_dep(name = "rules_python", version = "0.36.0")
Fabian Meumertzheim8ee8f792024-04-19 03:39:43 -070032bazel_dep(name = "rules_testing", version = "0.6.0")
Xdng Yngc46b9ce2024-10-01 14:21:54 -070033bazel_dep(name = "googletest", version = "1.15.2", repo_name = "com_google_googletest")
Fabian Meumertzheim5e63f2d2024-04-26 01:39:36 -070034bazel_dep(name = "with_cfg.bzl", version = "0.2.4")
Xdng Yngc46b9ce2024-10-01 14:21:54 -070035bazel_dep(name = "abseil-cpp", version = "20240722.0")
Googler6f935542024-10-24 13:59:33 -070036bazel_dep(name = "rules_shell", version = "0.2.0")
Ivo List78729c02023-03-03 08:27:25 -080037
Xdng Yngc46b9ce2024-10-01 14:21:54 -070038# TODO: wyv@ - use release 29.0 when that's out
Googler6f935542024-10-24 13:59:33 -070039bazel_dep(name = "protobuf", version = "29.0-rc2")
Xdng Yngc46b9ce2024-10-01 14:21:54 -070040
41# TODO: wyv@ - add remoteapis to the BCR
Googlercf140392023-08-01 12:34:14 -070042bazel_dep(name = "remoteapis", version = "")
Xdng Yngc46b9ce2024-10-01 14:21:54 -070043
44# TODO: wyv@ - eventually this part should be unnecessary (after we fix up the googleapis module
45# in the BCR)
46switched_rules = use_extension("@googleapis//:extensions.bzl", "switched_rules")
47switched_rules.use_languages(
48 cc = True,
49 go = True,
50 grpc = True,
51 java = True,
52 python = True,
53)
Googlercf140392023-08-01 12:34:14 -070054
Yun Pengc749f802023-02-21 06:08:30 -080055single_version_override(
56 module_name = "rules_jvm_external",
57 patch_strip = 1,
Yun Peng849da312024-01-30 10:16:17 -080058 patches = ["//third_party:rules_jvm_external_6.0.patch"],
hvdb88b53a2024-09-20 02:28:12 -070059 version = "6.0",
Yun Peng3d7937e2023-01-10 06:43:02 -080060)
61
Googlerc7dc0452024-10-07 02:56:21 -070062# TODO(pcloudy): Remove once the next version of rules_graalvm is available.
63single_version_override(
64 module_name = "rules_graalvm",
65 patch_strip = 1,
66 patches = ["//third_party:rules_graalvm_fix.patch"],
67)
68
Googlercf140392023-08-01 12:34:14 -070069local_path_override(
70 module_name = "remoteapis",
71 path = "./third_party/remoteapis",
72)
73
Yun Pengb27ca732023-09-06 02:57:04 -070074# The following Bazel modules are not direct dependencies for building Bazel,
Yun Pengc1f2aff2023-11-07 09:51:02 -080075# but are required for visibility from DIST_ARCHIVE_REPOS in repositories.bzl
Xdng Yngc46b9ce2024-10-01 14:21:54 -070076bazel_dep(name = "apple_support", version = "1.15.1")
Yun Pengb27ca732023-09-06 02:57:04 -070077bazel_dep(name = "c-ares", version = "1.15.0")
Xdng Yngc46b9ce2024-10-01 14:21:54 -070078bazel_dep(name = "rules_go", version = "0.48.0")
Yun Peng4e184e22024-08-13 09:14:03 -070079bazel_dep(name = "rules_kotlin", version = "1.9.6")
Yun Pengb27ca732023-09-06 02:57:04 -070080
Googlercf140392023-08-01 12:34:14 -070081# =========================================
Yun Peng9d308492023-08-08 00:49:00 -070082# Java dependencies
Googlercf140392023-08-01 12:34:14 -070083# =========================================
84
Yun Pengc749f802023-02-21 06:08:30 -080085maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven")
86maven.install(
Yun Peng136dae12023-09-08 12:39:10 -070087 artifacts = [
Fabian Meumertzheimd0af7142024-04-29 11:41:46 -070088 # keep sorted
Yun Peng136dae12023-09-08 12:39:10 -070089 "com.beust:jcommander:1.82",
90 "com.github.ben-manes.caffeine:caffeine:3.0.5",
Yun Peng136dae12023-09-08 12:39:10 -070091 "com.github.stephenc.jcip:jcip-annotations:1.0-1",
Yun Peng136dae12023-09-08 12:39:10 -070092 "com.google.api-client:google-api-client:1.35.2",
Fabian Meumertzheimd0af7142024-04-29 11:41:46 -070093 "com.google.api-client:google-api-client-gson:1.35.2",
Yun Peng136dae12023-09-08 12:39:10 -070094 "com.google.auth:google-auth-library-credentials:1.6.0",
95 "com.google.auth:google-auth-library-oauth2-http:1.6.0",
Yun Peng136dae12023-09-08 12:39:10 -070096 "com.google.auto:auto-common:1.2.1",
Fabian Meumertzheimd0af7142024-04-29 11:41:46 -070097 "com.google.auto.service:auto-service:1.0",
98 "com.google.auto.service:auto-service-annotations:1.0.1",
John Cater98054a22024-06-04 00:54:31 -070099 "com.google.auto.value:auto-value:1.11.0",
100 "com.google.auto.value:auto-value-annotations:1.11.0",
Yun Peng136dae12023-09-08 12:39:10 -0700101 "com.google.code.findbugs:jsr305:3.0.2",
Fabian Meumertzheim5df12362024-05-28 08:43:48 -0700102 "com.google.code.gson:gson:2.10.1",
Yun Peng136dae12023-09-08 12:39:10 -0700103 "com.google.code.java-allocation-instrumenter:java-allocation-instrumenter:3.3.0",
Liam Miller-Cushona1fd39d2024-09-11 23:22:48 -0700104 "com.google.errorprone:error_prone_annotation:2.32.0",
105 "com.google.errorprone:error_prone_annotations:2.32.0",
106 "com.google.errorprone:error_prone_check_api:2.32.0",
107 "com.google.errorprone:error_prone_core:2.32.0",
108 "com.google.errorprone:error_prone_type_annotations:2.32.0",
Yun Peng136dae12023-09-08 12:39:10 -0700109 "com.google.flogger:flogger:0.5.1",
Fabian Meumertzheimd0af7142024-04-29 11:41:46 -0700110 "com.google.flogger:flogger-system-backend:0.5.1",
Yun Peng136dae12023-09-08 12:39:10 -0700111 "com.google.flogger:google-extensions:0.5.1",
112 "com.google.guava:failureaccess:1.0.1",
Xdng Yngc46b9ce2024-10-01 14:21:54 -0700113 "com.google.guava:guava:33.2.1-jre",
Yun Peng136dae12023-09-08 12:39:10 -0700114 "com.google.http-client:google-http-client:1.42.0",
Fabian Meumertzheimd0af7142024-04-29 11:41:46 -0700115 "com.google.http-client:google-http-client-gson:1.42.0",
Yun Peng136dae12023-09-08 12:39:10 -0700116 "com.google.j2objc:j2objc-annotations:1.3",
Liam Miller-Cushon39a63402024-08-26 21:35:17 -0700117 "com.google.turbine:turbine:0.7.0",
Fabian Meumertzheim9d8d6c72024-06-24 11:19:58 -0700118 "com.guardsquare:proguard-base:jar:7.5.0",
Yun Peng136dae12023-09-08 12:39:10 -0700119 "com.ryanharter.auto.value:auto-value-gson-extension:1.3.1",
Yun Peng136dae12023-09-08 12:39:10 -0700120 "com.ryanharter.auto.value:auto-value-gson-factory:1.3.1",
Fabian Meumertzheimd0af7142024-04-29 11:41:46 -0700121 "com.ryanharter.auto.value:auto-value-gson-runtime:1.3.1",
Yun Peng136dae12023-09-08 12:39:10 -0700122 "com.squareup:javapoet:1.12.0",
123 "commons-collections:commons-collections:3.2.2",
124 "commons-lang:commons-lang:2.6",
Googler5c843392023-09-25 09:12:54 -0700125 "io.github.java-diff-utils:java-diff-utils:4.12",
Xdng Yngc46b9ce2024-10-01 14:21:54 -0700126 "io.grpc:grpc-api:1.66.0",
127 "io.grpc:grpc-auth:1.66.0",
128 "io.grpc:grpc-context:1.66.0",
129 "io.grpc:grpc-core:1.66.0",
130 "io.grpc:grpc-inprocess:1.66.0",
131 "io.grpc:grpc-netty:1.66.0",
132 "io.grpc:grpc-protobuf:1.66.0",
133 "io.grpc:grpc-protobuf-lite:1.66.0",
134 "io.grpc:grpc-stub:1.66.0",
135 "io.netty:netty-buffer:4.1.100.Final",
136 "io.netty:netty-codec:4.1.100.Final",
137 "io.netty:netty-codec-http:4.1.100.Final",
138 "io.netty:netty-codec-http2:4.1.100.Final",
139 "io.netty:netty-common:4.1.100.Final",
140 "io.netty:netty-handler:4.1.100.Final",
141 "io.netty:netty-handler-proxy:4.1.100.Final",
142 "io.netty:netty-resolver:4.1.100.Final",
143 "io.netty:netty-resolver-dns:4.1.100.Final",
Yun Peng136dae12023-09-08 12:39:10 -0700144 "io.netty:netty-tcnative-boringssl-static:jar:linux-aarch_64:2.0.56.Final",
145 "io.netty:netty-tcnative-boringssl-static:jar:linux-x86_64:2.0.56.Final",
146 "io.netty:netty-tcnative-boringssl-static:jar:osx-aarch_64:2.0.56.Final",
147 "io.netty:netty-tcnative-boringssl-static:jar:osx-x86_64:2.0.56.Final",
148 "io.netty:netty-tcnative-boringssl-static:jar:windows-x86_64:2.0.56.Final",
149 "io.netty:netty-tcnative-classes:2.0.56.Final",
Xdng Yngc46b9ce2024-10-01 14:21:54 -0700150 "io.netty:netty-transport:4.1.100.Final",
151 "io.netty:netty-transport-classes-epoll:4.1.100.Final",
152 "io.netty:netty-transport-classes-kqueue:4.1.100.Final",
153 "io.netty:netty-transport-native-epoll:jar:linux-aarch_64:4.1.100.Final",
154 "io.netty:netty-transport-native-epoll:jar:linux-x86_64:4.1.100.Final",
155 "io.netty:netty-transport-native-kqueue:jar:osx-aarch_64:4.1.100.Final",
156 "io.netty:netty-transport-native-kqueue:jar:osx-x86_64:4.1.100.Final",
157 "io.netty:netty-transport-native-unix-common:4.1.100.Final",
158 "io.netty:netty-transport-native-unix-common:jar:linux-aarch_64:4.1.100.Final",
159 "io.netty:netty-transport-native-unix-common:jar:linux-x86_64:4.1.100.Final",
160 "io.netty:netty-transport-native-unix-common:jar:osx-aarch_64:4.1.100.Final",
161 "io.netty:netty-transport-native-unix-common:jar:osx-x86_64:4.1.100.Final",
Yun Peng136dae12023-09-08 12:39:10 -0700162 "io.reactivex.rxjava3:rxjava:3.1.2",
Justin Horvitzc9343612023-11-30 10:43:29 -0800163 "it.unimi.dsi:fastutil:7.2.1",
Yun Peng136dae12023-09-08 12:39:10 -0700164 "javax.activation:javax.activation-api:1.2.0",
165 "javax.annotation:javax.annotation-api:1.3.2",
166 "javax.inject:javax.inject:1",
Mark Elliot2330a112024-05-07 12:26:09 -0700167 "org.apache.commons:commons-compress:1.26.1",
Yun Peng136dae12023-09-08 12:39:10 -0700168 "org.apache.commons:commons-pool2:2.8.0",
169 "org.apache.tomcat:tomcat-annotations-api:8.0.5",
170 "org.apache.velocity:velocity:1.7",
171 "org.checkerframework:checker-qual:3.19.0",
Fabian Meumertzheimd0af7142024-04-29 11:41:46 -0700172 "org.openjdk.jmh:jmh-core:1.37",
173 "org.openjdk.jmh:jmh-generator-annprocess:1.37",
174 "org.ow2.asm:asm:9.2",
Yun Peng136dae12023-09-08 12:39:10 -0700175 "org.ow2.asm:asm-analysis:9.2",
176 "org.ow2.asm:asm-commons:9.2",
177 "org.ow2.asm:asm-tree:9.2",
178 "org.ow2.asm:asm-util:9.2",
Yun Peng136dae12023-09-08 12:39:10 -0700179 "org.pcollections:pcollections:3.1.4",
180 "org.threeten:threeten-extra:1.5.0",
181 "org.tukaani:xz:1.9",
182 "org.yaml:snakeyaml:1.28",
Tiago Quelhase061a022024-02-20 05:58:25 -0800183 "tools.profiler:async-profiler:3.0",
Yun Peng136dae12023-09-08 12:39:10 -0700184 # The following jars are for testing.
185 # junit is not test only due to //src/java_tools/junitrunner/java/com/google/testing/junit/junit4:runner,
186 # and hamcrest is a dependency of junit.
187 "junit:junit:4.13.2",
188 "org.hamcrest:hamcrest-core:1.3",
189 ],
190 excluded_artifacts = [
191 # org.apache.httpcomponents and org.eclipse.jgit:org.eclipse.jgit
192 # require java.security.jgss module to be embedded in the Bazel binary.
193 "org.apache.httpcomponents:httpclient",
194 "org.apache.httpcomponents:httpcore",
195 "org.eclipse.jgit:org.eclipse.jgit",
Yun Peng136dae12023-09-08 12:39:10 -0700196 ],
Yun Peng136dae12023-09-08 12:39:10 -0700197 fail_if_repin_required = True,
Yun Pengc749f802023-02-21 06:08:30 -0800198 lock_file = "//:maven_install.json",
199 repositories = [
200 "https://repo1.maven.org/maven2",
201 ],
John Catercadbaa52023-10-16 10:16:21 -0700202 strict_visibility = True,
Yun Pengc749f802023-02-21 06:08:30 -0800203)
John Catercadbaa52023-10-16 10:16:21 -0700204
Yun Peng136dae12023-09-08 12:39:10 -0700205# Test only maven dependencies
John Catercadbaa52023-10-16 10:16:21 -0700206[
207 maven.artifact(
208 testonly = True,
209 artifact = artifact,
210 group = group,
211 version = version,
212 )
213 for group, artifact, version in [coord.split(":") for coord in [
Xdng Yngc46b9ce2024-10-01 14:21:54 -0700214 "com.google.guava:guava-testlib:33.2.1-jre",
John Catercadbaa52023-10-16 10:16:21 -0700215 "com.google.jimfs:jimfs:1.2",
216 "com.google.testing.compile:compile-testing:0.18",
Googlere40dc992024-05-15 04:44:20 -0700217 "com.google.testparameterinjector:test-parameter-injector:1.16",
Googler5fc530c2024-02-08 01:41:44 -0800218 "com.google.truth:truth:1.4.0",
219 "com.google.truth.extensions:truth-java8-extension:1.4.0",
220 "com.google.truth.extensions:truth-liteproto-extension:1.4.0",
221 "com.google.truth.extensions:truth-proto-extension:1.4.0",
John Catercadbaa52023-10-16 10:16:21 -0700222 "org.mockito:mockito-core:5.4.0",
223 ]]
224]
225
Xdng Yngc46b9ce2024-10-01 14:21:54 -0700226use_repo(maven, "maven")
Yun Peng3d7937e2023-01-10 06:43:02 -0800227
Yun Peng9d308492023-08-08 00:49:00 -0700228java_toolchains = use_extension("@rules_java//java:extensions.bzl", "toolchains")
John Catercadbaa52023-10-16 10:16:21 -0700229use_repo(
230 java_toolchains,
Yun Pengb27ca732023-09-06 02:57:04 -0700231 "local_jdk",
Yun Pengc1f2aff2023-11-07 09:51:02 -0800232 # The following are required for visibility in //src:test_repos
Yun Pengb27ca732023-09-06 02:57:04 -0700233 "remote_java_tools",
Yun Pengb27ca732023-09-06 02:57:04 -0700234 "remote_java_tools_darwin_arm64",
John Catercadbaa52023-10-16 10:16:21 -0700235 "remote_java_tools_darwin_x86_64",
Yun Pengb27ca732023-09-06 02:57:04 -0700236 "remote_java_tools_linux",
237 "remote_java_tools_windows",
238 "remotejdk11_linux",
239 "remotejdk11_linux_aarch64",
240 "remotejdk11_linux_ppc64le",
241 "remotejdk11_linux_s390x",
242 "remotejdk11_macos",
243 "remotejdk11_macos_aarch64",
244 "remotejdk11_win",
245 "remotejdk11_win_arm64",
246 "remotejdk17_linux",
247 "remotejdk17_linux_s390x",
248 "remotejdk17_macos",
249 "remotejdk17_macos_aarch64",
250 "remotejdk17_win",
251 "remotejdk17_win_arm64",
Fabian Meumertzheimf79ca022023-10-19 10:11:18 -0700252 "remotejdk21_linux",
Sangita.Nalkar1c1dd492024-09-19 10:50:03 -0700253 "remotejdk21_linux_s390x",
Fabian Meumertzheimf79ca022023-10-19 10:11:18 -0700254 "remotejdk21_macos",
255 "remotejdk21_macos_aarch64",
256 "remotejdk21_win",
Googler3c84aa82023-04-11 09:40:31 -0700257)
258
Googlercf140392023-08-01 12:34:14 -0700259# =========================================
Yun Peng9d308492023-08-08 00:49:00 -0700260# Python dependencies
261# =========================================
262
263python = use_extension("@rules_python//python/extensions:python.bzl", "python")
Googlerde2a1032024-09-27 04:19:58 -0700264python.toolchain(python_version = "3.11")
Yun Peng9d308492023-08-08 00:49:00 -0700265
266pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
267pip.parse(
268 hub_name = "bazel_pip_dev_deps",
Googlerde2a1032024-09-27 04:19:58 -0700269 python_version = "3.11",
Yun Peng9d308492023-08-08 00:49:00 -0700270 requirements_lock = "//:requirements.txt",
271)
272use_repo(pip, "bazel_pip_dev_deps")
273
274# =========================================
Yun Pengb27ca732023-09-06 02:57:04 -0700275# Other Bazel build dependencies
Yun Peng9d308492023-08-08 00:49:00 -0700276# =========================================
277
Yun Pengb27ca732023-09-06 02:57:04 -0700278bazel_build_deps = use_extension("//:extensions.bzl", "bazel_build_deps")
Yun Peng9d308492023-08-08 00:49:00 -0700279use_repo(
Yun Pengb27ca732023-09-06 02:57:04 -0700280 bazel_build_deps,
Yun Peng50c83752023-10-10 18:30:26 -0700281 "bazel_tools_repo_cache",
John Catercadbaa52023-10-16 10:16:21 -0700282 "bootstrap_repo_cache",
John Cater12b62e42023-10-17 04:53:45 -0700283 "debian_bin_deps",
Yun Pengb27ca732023-09-06 02:57:04 -0700284 "debian_cc_deps",
John Cater12b62e42023-10-17 04:53:45 -0700285 "debian_java_deps",
286 "debian_proto_deps",
Yun Pengb27ca732023-09-06 02:57:04 -0700287 "openjdk_linux_aarch64_vanilla",
288 "openjdk_linux_ppc64le_vanilla",
289 "openjdk_linux_s390x_vanilla",
290 "openjdk_linux_vanilla",
291 "openjdk_macos_aarch64_vanilla",
292 "openjdk_macos_x86_64_vanilla",
293 "openjdk_win_arm64_vanilla",
294 "openjdk_win_vanilla",
Yun Pengc1f2aff2023-11-07 09:51:02 -0800295 "workspace_repo_cache",
Yun Pengb27ca732023-09-06 02:57:04 -0700296)
297
298# Required only by `--extra_toolchains=@local_config_cc//:cc-toolchain-arm64_windows` from .bazelrc
Googlerd0285222024-10-07 17:26:19 -0700299cc_configure = use_extension("@rules_cc//cc:extensions.bzl", "cc_configure_extension")
Yun Pengb27ca732023-09-06 02:57:04 -0700300use_repo(cc_configure, "local_config_cc")
301
Fabian Meumertzheim095ad382024-01-10 03:39:36 -0800302gvm = use_extension("@rules_graalvm//:extensions.bzl", "graalvm")
303gvm.graalvm(
304 name = "graalvm",
305 distribution = "ce",
Googler11498b52024-03-06 15:27:20 -0800306 java_version = "21",
307 version = "21.0.2",
Fabian Meumertzheim095ad382024-01-10 03:39:36 -0800308)
309use_repo(gvm, "graalvm_toolchains")
310
Fabian Meumertzheim31872502024-06-05 11:45:25 -0700311http_file = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file")
312
Fabian Meumertzheim0ca70992024-06-12 10:31:49 -0700313# DO NOT UPDATE the jq versions, they are used to verify compatibility with old and new versions.
Fabian Meumertzheim31872502024-06-05 11:45:25 -0700314http_file(
315 name = "jq_linux_amd64",
316 executable = True,
317 integrity = "sha256-xrOn19PntwxvUbcGo7kL0BgzhGxU0yyjLwAn8AIm/20=",
318 urls = ["https://github.com/jqlang/jq/releases/download/jq-1.5/jq-linux64"],
319)
320
321http_file(
Fabian Meumertzheim0ca70992024-06-12 10:31:49 -0700322 name = "jq_linux_arm64",
323 executable = True,
324 integrity = "sha256-TdLYoGYd8LIvG7mh+YMPBrbzuPfZEhGh7118TwaotKU=",
325 urls = ["https://github.com/jqlang/jq/releases/download/jq-1.7.1/jq-linux-arm64"],
326)
327
328http_file(
Sangita.Nalkar1c1dd492024-09-19 10:50:03 -0700329 name = "jq_linux_s390x",
330 executable = True,
331 integrity = "sha256-hot8PKdCJKAt22EyYd38LkOxLart1etYNz29x/LF+SQ=",
332 urls = ["https://github.com/jqlang/jq/releases/download/jq-1.7.1/jq-linux-s390x"],
333)
334
335http_file(
Fabian Meumertzheim31872502024-06-05 11:45:25 -0700336 name = "jq_macos_amd64",
337 executable = True,
338 integrity = "sha256-OG6SyYKlb+SFFGjXqTHfyilWDO4wag5mxqG9QGXT2sU=",
339 urls = ["https://github.com/jqlang/jq/releases/download/jq-1.5/jq-osx-amd64"],
340)
341
342http_file(
Fabian Meumertzheim0ca70992024-06-12 10:31:49 -0700343 name = "jq_macos_arm64",
344 executable = True,
345 integrity = "sha256-C75hnmY+DeLFUL4v4NJA0HZ5nW+KZStw+gSuqKg2Loo=",
346 urls = ["https://github.com/jqlang/jq/releases/download/jq-1.7.1/jq-macos-arm64"],
347)
348
349http_file(
Fabian Meumertzheim31872502024-06-05 11:45:25 -0700350 name = "jq_windows_amd64",
351 executable = True,
352 integrity = "sha256-6+zYQLpH779mgihoF4zHIaFRBgk396xAbj0xvQFb3pQ=",
353 urls = ["https://github.com/jqlang/jq/releases/download/jq-1.5/jq-win64.exe"],
354)
355
Yun Pengb27ca732023-09-06 02:57:04 -0700356# =========================================
357# Other Bazel testing dependencies
358# =========================================
359
Matthieu MOREL7ca7b352024-06-06 02:00:52 -0700360bazel_dep(name = "bazel_ci_rules", version = "1.0.0")
361
Yun Pengb27ca732023-09-06 02:57:04 -0700362bazel_test_deps = use_extension("//:extensions.bzl", "bazel_test_deps")
363use_repo(
364 bazel_test_deps,
Xdng Yng24fcc3e2024-08-29 00:45:43 -0700365 "kythe_release",
Yun Peng9d308492023-08-08 00:49:00 -0700366 "local_bazel_source_list",
367 "local_config_winsdk",
Yun Peng9d308492023-08-08 00:49:00 -0700368)
369
370bazel_rbe_deps = use_extension("//:rbe_extension.bzl", "bazel_rbe_deps")
Googler40824e12024-03-11 02:38:48 -0700371use_repo(bazel_rbe_deps, "rbe_ubuntu2004")
Yun Peng9d308492023-08-08 00:49:00 -0700372
Yun Pengb27ca732023-09-06 02:57:04 -0700373remote_coverage_tools_extension = use_extension("//tools/test:extensions.bzl", "remote_coverage_tools_extension")
374use_repo(remote_coverage_tools_extension, "remote_coverage_tools")
375
Yun Peng9d308492023-08-08 00:49:00 -0700376# =========================================
Yun Pengb27ca732023-09-06 02:57:04 -0700377# Register platforms & toolchains
378# =========================================
379
380register_execution_platforms("//:default_host_platform")
381
382register_toolchains("@bazel_tools//tools/python:autodetecting_toolchain")
383
384register_toolchains("@local_config_winsdk//:all")
385
386register_toolchains("//src/main/res:empty_rc_toolchain")
387
Fabian Meumertzheim095ad382024-01-10 03:39:36 -0800388register_toolchains("@graalvm_toolchains//:gvm")