Yun Peng | 9d30849 | 2023-08-08 00:49:00 -0700 | [diff] [blame] | 1 | """Bazel build and test dependencies.""" |
| 2 | |
John Cater | cadbaa5 | 2023-10-16 10:16:21 -0700 | [diff] [blame] | 3 | # NOTE: When editing this file, also update the lockfile. |
| 4 | # bazel mod deps --lockfile_mode=update |
| 5 | |
Yun Peng | 6181a3c | 2021-10-28 03:11:19 -0700 | [diff] [blame] | 6 | module( |
Yun Peng | 1bf2246 | 2022-09-19 10:43:54 -0700 | [diff] [blame] | 7 | name = "bazel", |
Yun Peng | 1bf2246 | 2022-09-19 10:43:54 -0700 | [diff] [blame] | 8 | repo_name = "io_bazel", |
Yun Peng | 6181a3c | 2021-10-28 03:11:19 -0700 | [diff] [blame] | 9 | ) |
| 10 | |
Yun Peng | b27ca73 | 2023-09-06 02:57:04 -0700 | [diff] [blame] | 11 | # ========================================= |
| 12 | # Bazel module dependencies |
| 13 | # ========================================= |
| 14 | |
Tony Aiuto | 4797ba0 | 2023-06-20 05:54:54 -0700 | [diff] [blame] | 15 | bazel_dep(name = "rules_license", version = "0.0.7") |
Fabian Meumertzheim | 5f79684 | 2023-11-14 21:07:28 -0800 | [diff] [blame] | 16 | bazel_dep(name = "bazel_skylib", version = "1.5.0") |
Ivo List | e9929af | 2023-01-12 08:18:00 -0800 | [diff] [blame] | 17 | bazel_dep(name = "protobuf", version = "21.7", repo_name = "com_google_protobuf") |
Fabian Meumertzheim | 9631f41 | 2023-07-07 03:04:56 -0700 | [diff] [blame] | 18 | bazel_dep(name = "grpc", version = "1.48.1.bcr.1", repo_name = "com_github_grpc_grpc") |
Googler | 74c8ca4 | 2024-03-29 12:48:51 -0700 | [diff] [blame] | 19 | bazel_dep(name = "platforms", version = "0.0.9") |
Yun Peng | b27ca73 | 2023-09-06 02:57:04 -0700 | [diff] [blame] | 20 | bazel_dep(name = "rules_pkg", version = "0.9.1") |
Yun Peng | 849da31 | 2024-01-30 10:16:17 -0800 | [diff] [blame] | 21 | bazel_dep(name = "stardoc", version = "0.5.6", repo_name = "io_bazel_skydoc") |
Yun Peng | 9d30849 | 2023-08-08 00:49:00 -0700 | [diff] [blame] | 22 | bazel_dep(name = "zstd-jni", version = "1.5.2-3.bcr.1") |
Googler | 3e6284b | 2023-09-11 04:47:43 -0700 | [diff] [blame] | 23 | bazel_dep(name = "blake3", version = "1.3.3.bcr.1") |
Benjamin Peterson | cd9f8e0 | 2023-09-06 01:56:46 -0700 | [diff] [blame] | 24 | bazel_dep(name = "zlib", version = "1.3") |
Googler | 0e58b0d | 2023-09-20 08:16:28 -0700 | [diff] [blame] | 25 | bazel_dep(name = "rules_cc", version = "0.0.9") |
iancha1992 | 55ec5ea | 2024-03-21 13:59:58 -0700 | [diff] [blame] | 26 | bazel_dep(name = "rules_java", version = "7.5.0") |
Googler | 11498b5 | 2024-03-06 15:27:20 -0800 | [diff] [blame] | 27 | bazel_dep(name = "rules_graalvm", version = "0.11.1") |
Ivo List | e9929af | 2023-01-12 08:18:00 -0800 | [diff] [blame] | 28 | bazel_dep(name = "rules_proto", version = "5.3.0-21.7") |
Yun Peng | 849da31 | 2024-01-30 10:16:17 -0800 | [diff] [blame] | 29 | bazel_dep(name = "rules_jvm_external", version = "6.0") |
Googler | 0db3651 | 2024-01-26 10:42:47 -0800 | [diff] [blame] | 30 | bazel_dep(name = "rules_python", version = "0.28.0") |
Fabian Meumertzheim | 883b6ee | 2023-04-25 11:13:57 -0700 | [diff] [blame] | 31 | bazel_dep(name = "rules_testing", version = "0.0.4") |
Yun Peng | 51bddee | 2023-11-16 04:32:10 -0800 | [diff] [blame] | 32 | bazel_dep(name = "googletest", version = "1.14.0", repo_name = "com_google_googletest") |
Ivo List | 78729c0 | 2023-03-03 08:27:25 -0800 | [diff] [blame] | 33 | |
Googler | cf14039 | 2023-08-01 12:34:14 -0700 | [diff] [blame] | 34 | # TODO(pcloudy): Add remoteapis and googleapis as Bazel modules in the BCR. |
| 35 | bazel_dep(name = "remoteapis", version = "") |
| 36 | bazel_dep(name = "googleapis", version = "") |
| 37 | |
Yun Peng | c749f80 | 2023-02-21 06:08:30 -0800 | [diff] [blame] | 38 | single_version_override( |
| 39 | module_name = "rules_jvm_external", |
| 40 | patch_strip = 1, |
Yun Peng | 849da31 | 2024-01-30 10:16:17 -0800 | [diff] [blame] | 41 | patches = ["//third_party:rules_jvm_external_6.0.patch"], |
Yun Peng | 3d7937e | 2023-01-10 06:43:02 -0800 | [diff] [blame] | 42 | ) |
| 43 | |
Googler | cf14039 | 2023-08-01 12:34:14 -0700 | [diff] [blame] | 44 | local_path_override( |
| 45 | module_name = "remoteapis", |
| 46 | path = "./third_party/remoteapis", |
| 47 | ) |
| 48 | |
| 49 | local_path_override( |
| 50 | module_name = "googleapis", |
| 51 | path = "./third_party/googleapis", |
| 52 | ) |
| 53 | |
Yun Peng | b27ca73 | 2023-09-06 02:57:04 -0700 | [diff] [blame] | 54 | # The following Bazel modules are not direct dependencies for building Bazel, |
Yun Peng | c1f2aff | 2023-11-07 09:51:02 -0800 | [diff] [blame] | 55 | # but are required for visibility from DIST_ARCHIVE_REPOS in repositories.bzl |
Fabian Meumertzheim | 5f79684 | 2023-11-14 21:07:28 -0800 | [diff] [blame] | 56 | bazel_dep(name = "apple_support", version = "1.8.1") |
Yun Peng | fe68cfe | 2023-11-22 00:18:56 -0800 | [diff] [blame] | 57 | bazel_dep(name = "abseil-cpp", version = "20230125.1") |
Yun Peng | b27ca73 | 2023-09-06 02:57:04 -0700 | [diff] [blame] | 58 | bazel_dep(name = "c-ares", version = "1.15.0") |
| 59 | bazel_dep(name = "rules_go", version = "0.39.1") |
Yun Peng | 849da31 | 2024-01-30 10:16:17 -0800 | [diff] [blame] | 60 | bazel_dep(name = "rules_kotlin", version = "1.9.0") |
Yun Peng | b27ca73 | 2023-09-06 02:57:04 -0700 | [diff] [blame] | 61 | bazel_dep(name = "upb", version = "0.0.0-20220923-a547704") |
John Cater | ea88bb1 | 2024-02-29 12:14:00 -0800 | [diff] [blame] | 62 | single_version_override( |
| 63 | module_name = "upb", |
| 64 | patch_strip = 1, |
| 65 | patches = [ |
| 66 | "//third_party/upb:00_remove_toolchain_transition.patch", |
| 67 | ], |
| 68 | ) |
Yun Peng | b27ca73 | 2023-09-06 02:57:04 -0700 | [diff] [blame] | 69 | |
Googler | cf14039 | 2023-08-01 12:34:14 -0700 | [diff] [blame] | 70 | # ========================================= |
Yun Peng | 9d30849 | 2023-08-08 00:49:00 -0700 | [diff] [blame] | 71 | # Java dependencies |
Googler | cf14039 | 2023-08-01 12:34:14 -0700 | [diff] [blame] | 72 | # ========================================= |
| 73 | |
Yun Peng | c749f80 | 2023-02-21 06:08:30 -0800 | [diff] [blame] | 74 | maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven") |
| 75 | maven.install( |
Yun Peng | 136dae1 | 2023-09-08 12:39:10 -0700 | [diff] [blame] | 76 | artifacts = [ |
| 77 | "com.beust:jcommander:1.82", |
| 78 | "com.github.ben-manes.caffeine:caffeine:3.0.5", |
| 79 | "com.github.kevinstern:software-and-algorithms:1.0", |
| 80 | "com.github.stephenc.jcip:jcip-annotations:1.0-1", |
| 81 | "com.google.api-client:google-api-client-gson:1.35.2", |
| 82 | "com.google.api-client:google-api-client:1.35.2", |
| 83 | "com.google.auth:google-auth-library-credentials:1.6.0", |
| 84 | "com.google.auth:google-auth-library-oauth2-http:1.6.0", |
| 85 | "com.google.auto.service:auto-service-annotations:1.0.1", |
| 86 | "com.google.auto.service:auto-service:1.0", |
| 87 | "com.google.auto.value:auto-value-annotations:1.9", |
| 88 | "com.google.auto.value:auto-value:1.8.2", |
| 89 | "com.google.auto:auto-common:1.2.1", |
| 90 | "com.google.code.findbugs:jsr305:3.0.2", |
| 91 | "com.google.code.gson:gson:2.9.0", |
| 92 | "com.google.code.java-allocation-instrumenter:java-allocation-instrumenter:3.3.0", |
Benjamin Peterson | e692745 | 2023-10-23 08:24:39 -0700 | [diff] [blame] | 93 | "com.google.errorprone:error_prone_annotation:2.23.0", |
| 94 | "com.google.errorprone:error_prone_annotations:2.23.0", |
| 95 | "com.google.errorprone:error_prone_check_api:2.23.0", |
| 96 | "com.google.errorprone:error_prone_core:2.23.0", |
| 97 | "com.google.errorprone:error_prone_type_annotations:2.23.0", |
Yun Peng | 136dae1 | 2023-09-08 12:39:10 -0700 | [diff] [blame] | 98 | "com.google.flogger:flogger-system-backend:0.5.1", |
| 99 | "com.google.flogger:flogger:0.5.1", |
| 100 | "com.google.flogger:google-extensions:0.5.1", |
| 101 | "com.google.guava:failureaccess:1.0.1", |
Googler | c702865 | 2024-01-31 11:25:17 -0800 | [diff] [blame] | 102 | "com.google.guava:guava:33.0.0-jre", |
Yun Peng | 136dae1 | 2023-09-08 12:39:10 -0700 | [diff] [blame] | 103 | "com.google.http-client:google-http-client-gson:1.42.0", |
| 104 | "com.google.http-client:google-http-client:1.42.0", |
| 105 | "com.google.j2objc:j2objc-annotations:1.3", |
Liam Miller-Cushon | 50963db | 2024-03-07 07:10:43 -0800 | [diff] [blame] | 106 | "com.google.turbine:turbine:0.5.0", |
Yun Peng | 136dae1 | 2023-09-08 12:39:10 -0700 | [diff] [blame] | 107 | "com.ryanharter.auto.value:auto-value-gson-extension:1.3.1", |
| 108 | "com.ryanharter.auto.value:auto-value-gson-runtime:1.3.1", |
| 109 | "com.ryanharter.auto.value:auto-value-gson-factory:1.3.1", |
| 110 | "com.squareup:javapoet:1.12.0", |
| 111 | "commons-collections:commons-collections:3.2.2", |
| 112 | "commons-lang:commons-lang:2.6", |
Googler | 5c84339 | 2023-09-25 09:12:54 -0700 | [diff] [blame] | 113 | "io.github.java-diff-utils:java-diff-utils:4.12", |
Yun Peng | 136dae1 | 2023-09-08 12:39:10 -0700 | [diff] [blame] | 114 | "io.grpc:grpc-api:1.48.1", |
| 115 | "io.grpc:grpc-auth:1.48.1", |
| 116 | "io.grpc:grpc-context:1.48.1", |
| 117 | "io.grpc:grpc-core:1.48.1", |
| 118 | "io.grpc:grpc-netty:1.48.1", |
| 119 | "io.grpc:grpc-protobuf-lite:1.48.1", |
| 120 | "io.grpc:grpc-protobuf:1.48.1", |
| 121 | "io.grpc:grpc-stub:1.48.1", |
| 122 | "io.netty:netty-buffer:4.1.93.Final", |
| 123 | "io.netty:netty-codec-http2:4.1.93.Final", |
| 124 | "io.netty:netty-codec-http:4.1.93.Final", |
| 125 | "io.netty:netty-codec:4.1.93.Final", |
| 126 | "io.netty:netty-common:4.1.93.Final", |
| 127 | "io.netty:netty-handler-proxy:4.1.93.Final", |
| 128 | "io.netty:netty-handler:4.1.93.Final", |
| 129 | "io.netty:netty-resolver-dns:4.1.93.Final", |
| 130 | "io.netty:netty-resolver:4.1.93.Final", |
| 131 | "io.netty:netty-tcnative-boringssl-static:jar:linux-aarch_64:2.0.56.Final", |
| 132 | "io.netty:netty-tcnative-boringssl-static:jar:linux-x86_64:2.0.56.Final", |
| 133 | "io.netty:netty-tcnative-boringssl-static:jar:osx-aarch_64:2.0.56.Final", |
| 134 | "io.netty:netty-tcnative-boringssl-static:jar:osx-x86_64:2.0.56.Final", |
| 135 | "io.netty:netty-tcnative-boringssl-static:jar:windows-x86_64:2.0.56.Final", |
| 136 | "io.netty:netty-tcnative-classes:2.0.56.Final", |
| 137 | "io.netty:netty-transport-classes-epoll:4.1.93.Final", |
| 138 | "io.netty:netty-transport-classes-kqueue:4.1.93.Final", |
| 139 | "io.netty:netty-transport-native-epoll:jar:linux-aarch_64:4.1.93.Final", |
| 140 | "io.netty:netty-transport-native-epoll:jar:linux-x86_64:4.1.93.Final", |
| 141 | "io.netty:netty-transport-native-kqueue:jar:osx-aarch_64:4.1.93.Final", |
| 142 | "io.netty:netty-transport-native-kqueue:jar:osx-x86_64:4.1.93.Final", |
| 143 | "io.netty:netty-transport-native-unix-common:4.1.93.Final", |
| 144 | "io.netty:netty-transport-native-unix-common:jar:linux-aarch_64:4.1.93.Final", |
| 145 | "io.netty:netty-transport-native-unix-common:jar:linux-x86_64:4.1.93.Final", |
| 146 | "io.netty:netty-transport-native-unix-common:jar:osx-aarch_64:4.1.93.Final", |
| 147 | "io.netty:netty-transport-native-unix-common:jar:osx-x86_64:4.1.93.Final", |
| 148 | "io.netty:netty-transport:4.1.93.Final", |
| 149 | "io.reactivex.rxjava3:rxjava:3.1.2", |
Justin Horvitz | c934361 | 2023-11-30 10:43:29 -0800 | [diff] [blame] | 150 | "it.unimi.dsi:fastutil:7.2.1", |
Yun Peng | 136dae1 | 2023-09-08 12:39:10 -0700 | [diff] [blame] | 151 | "javax.activation:javax.activation-api:1.2.0", |
| 152 | "javax.annotation:javax.annotation-api:1.3.2", |
| 153 | "javax.inject:javax.inject:1", |
| 154 | "net.bytebuddy:byte-buddy-agent:1.14.5", |
| 155 | "net.bytebuddy:byte-buddy:1.14.5", |
Tiago Quelhas | 93729f4 | 2023-11-09 09:34:41 -0800 | [diff] [blame] | 156 | "org.apache.commons:commons-compress:1.20", |
Yun Peng | 136dae1 | 2023-09-08 12:39:10 -0700 | [diff] [blame] | 157 | "org.apache.commons:commons-pool2:2.8.0", |
| 158 | "org.apache.tomcat:tomcat-annotations-api:8.0.5", |
| 159 | "org.apache.velocity:velocity:1.7", |
| 160 | "org.checkerframework:checker-qual:3.19.0", |
| 161 | "org.ow2.asm:asm-analysis:9.2", |
| 162 | "org.ow2.asm:asm-commons:9.2", |
| 163 | "org.ow2.asm:asm-tree:9.2", |
| 164 | "org.ow2.asm:asm-util:9.2", |
| 165 | "org.ow2.asm:asm:9.2", |
| 166 | "org.pcollections:pcollections:3.1.4", |
| 167 | "org.threeten:threeten-extra:1.5.0", |
| 168 | "org.tukaani:xz:1.9", |
| 169 | "org.yaml:snakeyaml:1.28", |
Tiago Quelhas | e061a02 | 2024-02-20 05:58:25 -0800 | [diff] [blame] | 170 | "tools.profiler:async-profiler:3.0", |
Yun Peng | 136dae1 | 2023-09-08 12:39:10 -0700 | [diff] [blame] | 171 | # The following jars are for testing. |
| 172 | # junit is not test only due to //src/java_tools/junitrunner/java/com/google/testing/junit/junit4:runner, |
| 173 | # and hamcrest is a dependency of junit. |
| 174 | "junit:junit:4.13.2", |
| 175 | "org.hamcrest:hamcrest-core:1.3", |
| 176 | ], |
| 177 | excluded_artifacts = [ |
| 178 | # org.apache.httpcomponents and org.eclipse.jgit:org.eclipse.jgit |
| 179 | # require java.security.jgss module to be embedded in the Bazel binary. |
| 180 | "org.apache.httpcomponents:httpclient", |
| 181 | "org.apache.httpcomponents:httpcore", |
| 182 | "org.eclipse.jgit:org.eclipse.jgit", |
| 183 | # We build protobuf Java library from source, exclude protobuf jars to be safe. |
| 184 | "com.google.protobuf:protobuf-java", |
| 185 | "com.google.protobuf:protobuf-javalite", |
| 186 | ], |
| 187 | # Don't forget to change this to back to True before submitting your change. |
| 188 | fail_if_repin_required = True, |
Yun Peng | c749f80 | 2023-02-21 06:08:30 -0800 | [diff] [blame] | 189 | lock_file = "//:maven_install.json", |
| 190 | repositories = [ |
| 191 | "https://repo1.maven.org/maven2", |
| 192 | ], |
John Cater | cadbaa5 | 2023-10-16 10:16:21 -0700 | [diff] [blame] | 193 | strict_visibility = True, |
Yun Peng | c749f80 | 2023-02-21 06:08:30 -0800 | [diff] [blame] | 194 | ) |
John Cater | cadbaa5 | 2023-10-16 10:16:21 -0700 | [diff] [blame] | 195 | |
Yun Peng | 136dae1 | 2023-09-08 12:39:10 -0700 | [diff] [blame] | 196 | # Test only maven dependencies |
John Cater | cadbaa5 | 2023-10-16 10:16:21 -0700 | [diff] [blame] | 197 | [ |
| 198 | maven.artifact( |
| 199 | testonly = True, |
| 200 | artifact = artifact, |
| 201 | group = group, |
| 202 | version = version, |
| 203 | ) |
| 204 | for group, artifact, version in [coord.split(":") for coord in [ |
Googler | c702865 | 2024-01-31 11:25:17 -0800 | [diff] [blame] | 205 | "com.google.guava:guava-testlib:33.0.0-jre", |
John Cater | cadbaa5 | 2023-10-16 10:16:21 -0700 | [diff] [blame] | 206 | "com.google.jimfs:jimfs:1.2", |
| 207 | "com.google.testing.compile:compile-testing:0.18", |
Googler | 67ffe04 | 2024-02-08 07:26:13 -0800 | [diff] [blame] | 208 | "com.google.testparameterinjector:test-parameter-injector:1.15", |
Googler | 5fc530c | 2024-02-08 01:41:44 -0800 | [diff] [blame] | 209 | "com.google.truth:truth:1.4.0", |
| 210 | "com.google.truth.extensions:truth-java8-extension:1.4.0", |
| 211 | "com.google.truth.extensions:truth-liteproto-extension:1.4.0", |
| 212 | "com.google.truth.extensions:truth-proto-extension:1.4.0", |
John Cater | cadbaa5 | 2023-10-16 10:16:21 -0700 | [diff] [blame] | 213 | "org.mockito:mockito-core:5.4.0", |
| 214 | ]] |
| 215 | ] |
| 216 | |
Yun Peng | 136dae1 | 2023-09-08 12:39:10 -0700 | [diff] [blame] | 217 | use_repo(maven, "maven", "unpinned_maven") |
Yun Peng | 3d7937e | 2023-01-10 06:43:02 -0800 | [diff] [blame] | 218 | |
Yun Peng | 9d30849 | 2023-08-08 00:49:00 -0700 | [diff] [blame] | 219 | java_toolchains = use_extension("@rules_java//java:extensions.bzl", "toolchains") |
John Cater | cadbaa5 | 2023-10-16 10:16:21 -0700 | [diff] [blame] | 220 | use_repo( |
| 221 | java_toolchains, |
Yun Peng | b27ca73 | 2023-09-06 02:57:04 -0700 | [diff] [blame] | 222 | "local_jdk", |
Yun Peng | c1f2aff | 2023-11-07 09:51:02 -0800 | [diff] [blame] | 223 | # The following are required for visibility in //src:test_repos |
Yun Peng | b27ca73 | 2023-09-06 02:57:04 -0700 | [diff] [blame] | 224 | "remote_java_tools", |
Yun Peng | b27ca73 | 2023-09-06 02:57:04 -0700 | [diff] [blame] | 225 | "remote_java_tools_darwin_arm64", |
John Cater | cadbaa5 | 2023-10-16 10:16:21 -0700 | [diff] [blame] | 226 | "remote_java_tools_darwin_x86_64", |
Yun Peng | b27ca73 | 2023-09-06 02:57:04 -0700 | [diff] [blame] | 227 | "remote_java_tools_linux", |
| 228 | "remote_java_tools_windows", |
| 229 | "remotejdk11_linux", |
| 230 | "remotejdk11_linux_aarch64", |
| 231 | "remotejdk11_linux_ppc64le", |
| 232 | "remotejdk11_linux_s390x", |
| 233 | "remotejdk11_macos", |
| 234 | "remotejdk11_macos_aarch64", |
| 235 | "remotejdk11_win", |
| 236 | "remotejdk11_win_arm64", |
| 237 | "remotejdk17_linux", |
| 238 | "remotejdk17_linux_s390x", |
| 239 | "remotejdk17_macos", |
| 240 | "remotejdk17_macos_aarch64", |
| 241 | "remotejdk17_win", |
| 242 | "remotejdk17_win_arm64", |
Fabian Meumertzheim | f79ca02 | 2023-10-19 10:11:18 -0700 | [diff] [blame] | 243 | "remotejdk21_linux", |
| 244 | "remotejdk21_macos", |
| 245 | "remotejdk21_macos_aarch64", |
| 246 | "remotejdk21_win", |
Googler | 3c84aa8 | 2023-04-11 09:40:31 -0700 | [diff] [blame] | 247 | ) |
| 248 | |
Googler | cf14039 | 2023-08-01 12:34:14 -0700 | [diff] [blame] | 249 | # ========================================= |
Yun Peng | 9d30849 | 2023-08-08 00:49:00 -0700 | [diff] [blame] | 250 | # Python dependencies |
| 251 | # ========================================= |
| 252 | |
| 253 | python = use_extension("@rules_python//python/extensions:python.bzl", "python") |
| 254 | python.toolchain(python_version = "3.8") |
| 255 | |
| 256 | pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip") |
| 257 | pip.parse( |
| 258 | hub_name = "bazel_pip_dev_deps", |
| 259 | python_version = "3.8", |
| 260 | requirements_lock = "//:requirements.txt", |
| 261 | ) |
| 262 | use_repo(pip, "bazel_pip_dev_deps") |
| 263 | |
| 264 | # ========================================= |
Yun Peng | b27ca73 | 2023-09-06 02:57:04 -0700 | [diff] [blame] | 265 | # Other Bazel build dependencies |
Yun Peng | 9d30849 | 2023-08-08 00:49:00 -0700 | [diff] [blame] | 266 | # ========================================= |
| 267 | |
Yun Peng | b27ca73 | 2023-09-06 02:57:04 -0700 | [diff] [blame] | 268 | bazel_build_deps = use_extension("//:extensions.bzl", "bazel_build_deps") |
Yun Peng | 9d30849 | 2023-08-08 00:49:00 -0700 | [diff] [blame] | 269 | use_repo( |
Yun Peng | b27ca73 | 2023-09-06 02:57:04 -0700 | [diff] [blame] | 270 | bazel_build_deps, |
Yun Peng | 50c8375 | 2023-10-10 18:30:26 -0700 | [diff] [blame] | 271 | "bazel_tools_repo_cache", |
John Cater | cadbaa5 | 2023-10-16 10:16:21 -0700 | [diff] [blame] | 272 | "bootstrap_repo_cache", |
John Cater | 12b62e4 | 2023-10-17 04:53:45 -0700 | [diff] [blame] | 273 | "debian_bin_deps", |
Yun Peng | b27ca73 | 2023-09-06 02:57:04 -0700 | [diff] [blame] | 274 | "debian_cc_deps", |
John Cater | 12b62e4 | 2023-10-17 04:53:45 -0700 | [diff] [blame] | 275 | "debian_java_deps", |
| 276 | "debian_proto_deps", |
Yun Peng | b27ca73 | 2023-09-06 02:57:04 -0700 | [diff] [blame] | 277 | "openjdk_linux_aarch64_vanilla", |
| 278 | "openjdk_linux_ppc64le_vanilla", |
| 279 | "openjdk_linux_s390x_vanilla", |
| 280 | "openjdk_linux_vanilla", |
| 281 | "openjdk_macos_aarch64_vanilla", |
| 282 | "openjdk_macos_x86_64_vanilla", |
| 283 | "openjdk_win_arm64_vanilla", |
| 284 | "openjdk_win_vanilla", |
Yun Peng | c1f2aff | 2023-11-07 09:51:02 -0800 | [diff] [blame] | 285 | "workspace_repo_cache", |
Yun Peng | b27ca73 | 2023-09-06 02:57:04 -0700 | [diff] [blame] | 286 | ) |
| 287 | |
| 288 | # Required only by `--extra_toolchains=@local_config_cc//:cc-toolchain-arm64_windows` from .bazelrc |
| 289 | cc_configure = use_extension("@bazel_tools//tools/cpp:cc_configure.bzl", "cc_configure_extension") |
| 290 | use_repo(cc_configure, "local_config_cc") |
| 291 | |
Fabian Meumertzheim | 095ad38 | 2024-01-10 03:39:36 -0800 | [diff] [blame] | 292 | gvm = use_extension("@rules_graalvm//:extensions.bzl", "graalvm") |
| 293 | gvm.graalvm( |
| 294 | name = "graalvm", |
| 295 | distribution = "ce", |
Googler | 11498b5 | 2024-03-06 15:27:20 -0800 | [diff] [blame] | 296 | java_version = "21", |
| 297 | version = "21.0.2", |
Fabian Meumertzheim | 095ad38 | 2024-01-10 03:39:36 -0800 | [diff] [blame] | 298 | ) |
| 299 | use_repo(gvm, "graalvm_toolchains") |
| 300 | |
Yun Peng | b27ca73 | 2023-09-06 02:57:04 -0700 | [diff] [blame] | 301 | # ========================================= |
| 302 | # Other Bazel testing dependencies |
| 303 | # ========================================= |
| 304 | |
| 305 | bazel_test_deps = use_extension("//:extensions.bzl", "bazel_test_deps") |
| 306 | use_repo( |
| 307 | bazel_test_deps, |
John Cater | cadbaa5 | 2023-10-16 10:16:21 -0700 | [diff] [blame] | 308 | "bazelci_rules", |
Yun Peng | 9d30849 | 2023-08-08 00:49:00 -0700 | [diff] [blame] | 309 | "local_bazel_source_list", |
| 310 | "local_config_winsdk", |
Yun Peng | 9d30849 | 2023-08-08 00:49:00 -0700 | [diff] [blame] | 311 | ) |
| 312 | |
| 313 | bazel_rbe_deps = use_extension("//:rbe_extension.bzl", "bazel_rbe_deps") |
Googler | 40824e1 | 2024-03-11 02:38:48 -0700 | [diff] [blame] | 314 | use_repo(bazel_rbe_deps, "rbe_ubuntu2004") |
Yun Peng | 9d30849 | 2023-08-08 00:49:00 -0700 | [diff] [blame] | 315 | |
Yun Peng | b27ca73 | 2023-09-06 02:57:04 -0700 | [diff] [blame] | 316 | remote_coverage_tools_extension = use_extension("//tools/test:extensions.bzl", "remote_coverage_tools_extension") |
| 317 | use_repo(remote_coverage_tools_extension, "remote_coverage_tools") |
| 318 | |
Yun Peng | 9d30849 | 2023-08-08 00:49:00 -0700 | [diff] [blame] | 319 | # ========================================= |
Yun Peng | b27ca73 | 2023-09-06 02:57:04 -0700 | [diff] [blame] | 320 | # Register platforms & toolchains |
| 321 | # ========================================= |
| 322 | |
| 323 | register_execution_platforms("//:default_host_platform") |
| 324 | |
| 325 | register_toolchains("@bazel_tools//tools/python:autodetecting_toolchain") |
| 326 | |
| 327 | register_toolchains("@local_config_winsdk//:all") |
| 328 | |
| 329 | register_toolchains("//src/main/res:empty_rc_toolchain") |
| 330 | |
Fabian Meumertzheim | 095ad38 | 2024-01-10 03:39:36 -0800 | [diff] [blame] | 331 | register_toolchains("@graalvm_toolchains//:gvm") |
| 332 | |
Yun Peng | b27ca73 | 2023-09-06 02:57:04 -0700 | [diff] [blame] | 333 | # ========================================= |
| 334 | # Android tools dependencies |
Googler | cf14039 | 2023-08-01 12:34:14 -0700 | [diff] [blame] | 335 | # ========================================= |
| 336 | |
| 337 | maven_android = use_extension("@rules_jvm_external//:extensions.bzl", "maven") |
| 338 | maven_android.install( |
| 339 | name = "maven_android", |
Yun Peng | 136dae1 | 2023-09-08 12:39:10 -0700 | [diff] [blame] | 340 | artifacts = [ |
| 341 | "androidx.databinding:databinding-compiler:3.4.0-alpha10", |
| 342 | "com.android.tools.build:builder:7.1.3", |
| 343 | "com.android.tools.build:manifest-merger:30.1.3", |
| 344 | "com.android.tools:sdk-common:30.1.3", |
| 345 | "com.android.tools:annotations:30.1.3", |
| 346 | "com.android.tools.layoutlib:layoutlib-api:30.1.3", |
| 347 | "com.android.tools:common:30.1.3", |
| 348 | "com.android.tools:repository:30.1.3", |
| 349 | ], |
| 350 | # Don't forget to change this to back to True before submitting your change. |
| 351 | fail_if_repin_required = True, |
Googler | cf14039 | 2023-08-01 12:34:14 -0700 | [diff] [blame] | 352 | lock_file = "//src/tools/android:maven_android_install.json", |
| 353 | repositories = [ |
| 354 | "https://dl.google.com/android/maven2", |
| 355 | "https://repo1.maven.org/maven2", |
| 356 | ], |
| 357 | ) |
Yun Peng | 136dae1 | 2023-09-08 12:39:10 -0700 | [diff] [blame] | 358 | use_repo(maven_android, "maven_android", "unpinned_maven_android") |
Googler | cf14039 | 2023-08-01 12:34:14 -0700 | [diff] [blame] | 359 | |
| 360 | bazel_android_deps = use_extension("//:extensions.bzl", "bazel_android_deps") |
Yun Peng | b27ca73 | 2023-09-06 02:57:04 -0700 | [diff] [blame] | 361 | use_repo(bazel_android_deps, "desugar_jdk_libs") |
| 362 | |
| 363 | remote_android_extensions = use_extension("//tools/android:android_extensions.bzl", "remote_android_tools_extensions") |
| 364 | use_repo(remote_android_extensions, "android_gmaven_r8", "android_tools") |
Googler | 7f749e9 | 2024-02-29 14:24:49 -0800 | [diff] [blame] | 365 | |
| 366 | android_sdk_proxy_extensions = use_extension("//tools/android:android_extensions.bzl", "android_sdk_proxy_extensions") |
| 367 | use_repo(android_sdk_proxy_extensions, "android_external") |