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") |
hvd | 8f55a57 | 2024-05-16 23:47:23 -0700 | [diff] [blame] | 16 | bazel_dep(name = "bazel_skylib", version = "1.6.1") |
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") |
Fabian Meumertzheim | c529cb2 | 2024-06-21 03:13:33 -0700 | [diff] [blame] | 19 | bazel_dep(name = "platforms", version = "0.0.10") |
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") |
Fabian Meumertzheim | 5e63f2d | 2024-04-26 01:39:36 -0700 | [diff] [blame] | 23 | bazel_dep(name = "blake3", version = "1.5.1.bcr.1") |
Googler | 8ef7b70 | 2024-04-25 05:46:55 -0700 | [diff] [blame] | 24 | bazel_dep(name = "sqlite3", version = "3.42.0.bcr.1") |
Benjamin Peterson | cd9f8e0 | 2023-09-06 01:56:46 -0700 | [diff] [blame] | 25 | bazel_dep(name = "zlib", version = "1.3") |
Googler | 0e58b0d | 2023-09-20 08:16:28 -0700 | [diff] [blame] | 26 | bazel_dep(name = "rules_cc", version = "0.0.9") |
Googler | cd345e8 | 2024-07-16 03:14:01 -0700 | [diff] [blame^] | 27 | bazel_dep(name = "rules_java", version = "7.7.0") |
Googler | 11498b5 | 2024-03-06 15:27:20 -0800 | [diff] [blame] | 28 | bazel_dep(name = "rules_graalvm", version = "0.11.1") |
Fabian Meumertzheim | 01f6dec | 2024-06-20 15:33:18 -0700 | [diff] [blame] | 29 | bazel_dep(name = "rules_proto", version = "6.0.0") |
Yun Peng | 849da31 | 2024-01-30 10:16:17 -0800 | [diff] [blame] | 30 | bazel_dep(name = "rules_jvm_external", version = "6.0") |
Fabian Meumertzheim | 01f6dec | 2024-06-20 15:33:18 -0700 | [diff] [blame] | 31 | bazel_dep(name = "rules_python", version = "0.33.2") |
Fabian Meumertzheim | 8ee8f79 | 2024-04-19 03:39:43 -0700 | [diff] [blame] | 32 | bazel_dep(name = "rules_testing", version = "0.6.0") |
Gowroji Sunil | 417c6b8 | 2024-06-04 09:23:45 -0700 | [diff] [blame] | 33 | bazel_dep(name = "googletest", version = "1.14.0.bcr.1", repo_name = "com_google_googletest") |
Fabian Meumertzheim | 5e63f2d | 2024-04-26 01:39:36 -0700 | [diff] [blame] | 34 | bazel_dep(name = "with_cfg.bzl", version = "0.2.4") |
Fabian Meumertzheim | 651294b | 2024-06-12 00:34:02 -0700 | [diff] [blame] | 35 | bazel_dep(name = "abseil-cpp", version = "20230802.1") |
Ivo List | 78729c0 | 2023-03-03 08:27:25 -0800 | [diff] [blame] | 36 | |
Googler | cf14039 | 2023-08-01 12:34:14 -0700 | [diff] [blame] | 37 | # TODO(pcloudy): Add remoteapis and googleapis as Bazel modules in the BCR. |
| 38 | bazel_dep(name = "remoteapis", version = "") |
| 39 | bazel_dep(name = "googleapis", version = "") |
| 40 | |
Yun Peng | c749f80 | 2023-02-21 06:08:30 -0800 | [diff] [blame] | 41 | single_version_override( |
| 42 | module_name = "rules_jvm_external", |
| 43 | patch_strip = 1, |
Yun Peng | 849da31 | 2024-01-30 10:16:17 -0800 | [diff] [blame] | 44 | patches = ["//third_party:rules_jvm_external_6.0.patch"], |
Yun Peng | 3d7937e | 2023-01-10 06:43:02 -0800 | [diff] [blame] | 45 | ) |
| 46 | |
Googler | cf14039 | 2023-08-01 12:34:14 -0700 | [diff] [blame] | 47 | local_path_override( |
| 48 | module_name = "remoteapis", |
| 49 | path = "./third_party/remoteapis", |
| 50 | ) |
| 51 | |
| 52 | local_path_override( |
| 53 | module_name = "googleapis", |
| 54 | path = "./third_party/googleapis", |
| 55 | ) |
| 56 | |
Keith Smiley | 6abdd2a | 2024-05-28 11:35:51 -0700 | [diff] [blame] | 57 | single_version_override( |
| 58 | module_name = "grpc", |
| 59 | patch_strip = 1, |
| 60 | patches = [ |
| 61 | "//third_party/grpc:00_disable_layering_check.patch", |
| 62 | ], |
| 63 | ) |
| 64 | |
Yun Peng | b27ca73 | 2023-09-06 02:57:04 -0700 | [diff] [blame] | 65 | # The following Bazel modules are not direct dependencies for building Bazel, |
Yun Peng | c1f2aff | 2023-11-07 09:51:02 -0800 | [diff] [blame] | 66 | # but are required for visibility from DIST_ARCHIVE_REPOS in repositories.bzl |
Fabian Meumertzheim | 5f79684 | 2023-11-14 21:07:28 -0800 | [diff] [blame] | 67 | bazel_dep(name = "apple_support", version = "1.8.1") |
Yun Peng | b27ca73 | 2023-09-06 02:57:04 -0700 | [diff] [blame] | 68 | bazel_dep(name = "c-ares", version = "1.15.0") |
| 69 | bazel_dep(name = "rules_go", version = "0.39.1") |
Yun Peng | 849da31 | 2024-01-30 10:16:17 -0800 | [diff] [blame] | 70 | bazel_dep(name = "rules_kotlin", version = "1.9.0") |
Yun Peng | b27ca73 | 2023-09-06 02:57:04 -0700 | [diff] [blame] | 71 | bazel_dep(name = "upb", version = "0.0.0-20220923-a547704") |
John Cater | ea88bb1 | 2024-02-29 12:14:00 -0800 | [diff] [blame] | 72 | single_version_override( |
| 73 | module_name = "upb", |
| 74 | patch_strip = 1, |
| 75 | patches = [ |
| 76 | "//third_party/upb:00_remove_toolchain_transition.patch", |
| 77 | ], |
| 78 | ) |
Yun Peng | b27ca73 | 2023-09-06 02:57:04 -0700 | [diff] [blame] | 79 | |
Googler | cf14039 | 2023-08-01 12:34:14 -0700 | [diff] [blame] | 80 | # ========================================= |
Yun Peng | 9d30849 | 2023-08-08 00:49:00 -0700 | [diff] [blame] | 81 | # Java dependencies |
Googler | cf14039 | 2023-08-01 12:34:14 -0700 | [diff] [blame] | 82 | # ========================================= |
| 83 | |
Yun Peng | c749f80 | 2023-02-21 06:08:30 -0800 | [diff] [blame] | 84 | maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven") |
| 85 | maven.install( |
Yun Peng | 136dae1 | 2023-09-08 12:39:10 -0700 | [diff] [blame] | 86 | artifacts = [ |
Fabian Meumertzheim | d0af714 | 2024-04-29 11:41:46 -0700 | [diff] [blame] | 87 | # keep sorted |
Yun Peng | 136dae1 | 2023-09-08 12:39:10 -0700 | [diff] [blame] | 88 | "com.beust:jcommander:1.82", |
| 89 | "com.github.ben-manes.caffeine:caffeine:3.0.5", |
Yun Peng | 136dae1 | 2023-09-08 12:39:10 -0700 | [diff] [blame] | 90 | "com.github.stephenc.jcip:jcip-annotations:1.0-1", |
Yun Peng | 136dae1 | 2023-09-08 12:39:10 -0700 | [diff] [blame] | 91 | "com.google.api-client:google-api-client:1.35.2", |
Fabian Meumertzheim | d0af714 | 2024-04-29 11:41:46 -0700 | [diff] [blame] | 92 | "com.google.api-client:google-api-client-gson:1.35.2", |
Yun Peng | 136dae1 | 2023-09-08 12:39:10 -0700 | [diff] [blame] | 93 | "com.google.auth:google-auth-library-credentials:1.6.0", |
| 94 | "com.google.auth:google-auth-library-oauth2-http:1.6.0", |
Yun Peng | 136dae1 | 2023-09-08 12:39:10 -0700 | [diff] [blame] | 95 | "com.google.auto:auto-common:1.2.1", |
Fabian Meumertzheim | d0af714 | 2024-04-29 11:41:46 -0700 | [diff] [blame] | 96 | "com.google.auto.service:auto-service:1.0", |
| 97 | "com.google.auto.service:auto-service-annotations:1.0.1", |
John Cater | 98054a2 | 2024-06-04 00:54:31 -0700 | [diff] [blame] | 98 | "com.google.auto.value:auto-value:1.11.0", |
| 99 | "com.google.auto.value:auto-value-annotations:1.11.0", |
Yun Peng | 136dae1 | 2023-09-08 12:39:10 -0700 | [diff] [blame] | 100 | "com.google.code.findbugs:jsr305:3.0.2", |
Fabian Meumertzheim | 5df1236 | 2024-05-28 08:43:48 -0700 | [diff] [blame] | 101 | "com.google.code.gson:gson:2.10.1", |
Yun Peng | 136dae1 | 2023-09-08 12:39:10 -0700 | [diff] [blame] | 102 | "com.google.code.java-allocation-instrumenter:java-allocation-instrumenter:3.3.0", |
Benjamin Peterson | e692745 | 2023-10-23 08:24:39 -0700 | [diff] [blame] | 103 | "com.google.errorprone:error_prone_annotation:2.23.0", |
| 104 | "com.google.errorprone:error_prone_annotations:2.23.0", |
| 105 | "com.google.errorprone:error_prone_check_api:2.23.0", |
| 106 | "com.google.errorprone:error_prone_core:2.23.0", |
| 107 | "com.google.errorprone:error_prone_type_annotations:2.23.0", |
Yun Peng | 136dae1 | 2023-09-08 12:39:10 -0700 | [diff] [blame] | 108 | "com.google.flogger:flogger:0.5.1", |
Fabian Meumertzheim | d0af714 | 2024-04-29 11:41:46 -0700 | [diff] [blame] | 109 | "com.google.flogger:flogger-system-backend:0.5.1", |
Yun Peng | 136dae1 | 2023-09-08 12:39:10 -0700 | [diff] [blame] | 110 | "com.google.flogger:google-extensions:0.5.1", |
| 111 | "com.google.guava:failureaccess:1.0.1", |
Googler | c702865 | 2024-01-31 11:25:17 -0800 | [diff] [blame] | 112 | "com.google.guava:guava:33.0.0-jre", |
Yun Peng | 136dae1 | 2023-09-08 12:39:10 -0700 | [diff] [blame] | 113 | "com.google.http-client:google-http-client:1.42.0", |
Fabian Meumertzheim | d0af714 | 2024-04-29 11:41:46 -0700 | [diff] [blame] | 114 | "com.google.http-client:google-http-client-gson:1.42.0", |
Yun Peng | 136dae1 | 2023-09-08 12:39:10 -0700 | [diff] [blame] | 115 | "com.google.j2objc:j2objc-annotations:1.3", |
Xdng Yng | f313376 | 2024-05-09 10:05:04 -0700 | [diff] [blame] | 116 | "com.google.turbine:turbine:0.6.0", |
Fabian Meumertzheim | 9d8d6c7 | 2024-06-24 11:19:58 -0700 | [diff] [blame] | 117 | "com.guardsquare:proguard-base:jar:7.5.0", |
Yun Peng | 136dae1 | 2023-09-08 12:39:10 -0700 | [diff] [blame] | 118 | "com.ryanharter.auto.value:auto-value-gson-extension:1.3.1", |
Yun Peng | 136dae1 | 2023-09-08 12:39:10 -0700 | [diff] [blame] | 119 | "com.ryanharter.auto.value:auto-value-gson-factory:1.3.1", |
Fabian Meumertzheim | d0af714 | 2024-04-29 11:41:46 -0700 | [diff] [blame] | 120 | "com.ryanharter.auto.value:auto-value-gson-runtime:1.3.1", |
Yun Peng | 136dae1 | 2023-09-08 12:39:10 -0700 | [diff] [blame] | 121 | "com.squareup:javapoet:1.12.0", |
| 122 | "commons-collections:commons-collections:3.2.2", |
| 123 | "commons-lang:commons-lang:2.6", |
Googler | 5c84339 | 2023-09-25 09:12:54 -0700 | [diff] [blame] | 124 | "io.github.java-diff-utils:java-diff-utils:4.12", |
Yun Peng | 136dae1 | 2023-09-08 12:39:10 -0700 | [diff] [blame] | 125 | "io.grpc:grpc-api:1.48.1", |
| 126 | "io.grpc:grpc-auth:1.48.1", |
| 127 | "io.grpc:grpc-context:1.48.1", |
| 128 | "io.grpc:grpc-core:1.48.1", |
| 129 | "io.grpc:grpc-netty:1.48.1", |
Yun Peng | 136dae1 | 2023-09-08 12:39:10 -0700 | [diff] [blame] | 130 | "io.grpc:grpc-protobuf:1.48.1", |
Fabian Meumertzheim | d0af714 | 2024-04-29 11:41:46 -0700 | [diff] [blame] | 131 | "io.grpc:grpc-protobuf-lite:1.48.1", |
Yun Peng | 136dae1 | 2023-09-08 12:39:10 -0700 | [diff] [blame] | 132 | "io.grpc:grpc-stub:1.48.1", |
| 133 | "io.netty:netty-buffer:4.1.93.Final", |
Yun Peng | 136dae1 | 2023-09-08 12:39:10 -0700 | [diff] [blame] | 134 | "io.netty:netty-codec:4.1.93.Final", |
Fabian Meumertzheim | d0af714 | 2024-04-29 11:41:46 -0700 | [diff] [blame] | 135 | "io.netty:netty-codec-http:4.1.93.Final", |
| 136 | "io.netty:netty-codec-http2:4.1.93.Final", |
Yun Peng | 136dae1 | 2023-09-08 12:39:10 -0700 | [diff] [blame] | 137 | "io.netty:netty-common:4.1.93.Final", |
Yun Peng | 136dae1 | 2023-09-08 12:39:10 -0700 | [diff] [blame] | 138 | "io.netty:netty-handler:4.1.93.Final", |
Fabian Meumertzheim | d0af714 | 2024-04-29 11:41:46 -0700 | [diff] [blame] | 139 | "io.netty:netty-handler-proxy:4.1.93.Final", |
Yun Peng | 136dae1 | 2023-09-08 12:39:10 -0700 | [diff] [blame] | 140 | "io.netty:netty-resolver:4.1.93.Final", |
Fabian Meumertzheim | d0af714 | 2024-04-29 11:41:46 -0700 | [diff] [blame] | 141 | "io.netty:netty-resolver-dns:4.1.93.Final", |
Yun Peng | 136dae1 | 2023-09-08 12:39:10 -0700 | [diff] [blame] | 142 | "io.netty:netty-tcnative-boringssl-static:jar:linux-aarch_64:2.0.56.Final", |
| 143 | "io.netty:netty-tcnative-boringssl-static:jar:linux-x86_64:2.0.56.Final", |
| 144 | "io.netty:netty-tcnative-boringssl-static:jar:osx-aarch_64:2.0.56.Final", |
| 145 | "io.netty:netty-tcnative-boringssl-static:jar:osx-x86_64:2.0.56.Final", |
| 146 | "io.netty:netty-tcnative-boringssl-static:jar:windows-x86_64:2.0.56.Final", |
| 147 | "io.netty:netty-tcnative-classes:2.0.56.Final", |
Fabian Meumertzheim | d0af714 | 2024-04-29 11:41:46 -0700 | [diff] [blame] | 148 | "io.netty:netty-transport:4.1.93.Final", |
Yun Peng | 136dae1 | 2023-09-08 12:39:10 -0700 | [diff] [blame] | 149 | "io.netty:netty-transport-classes-epoll:4.1.93.Final", |
| 150 | "io.netty:netty-transport-classes-kqueue:4.1.93.Final", |
| 151 | "io.netty:netty-transport-native-epoll:jar:linux-aarch_64:4.1.93.Final", |
| 152 | "io.netty:netty-transport-native-epoll:jar:linux-x86_64:4.1.93.Final", |
| 153 | "io.netty:netty-transport-native-kqueue:jar:osx-aarch_64:4.1.93.Final", |
| 154 | "io.netty:netty-transport-native-kqueue:jar:osx-x86_64:4.1.93.Final", |
| 155 | "io.netty:netty-transport-native-unix-common:4.1.93.Final", |
| 156 | "io.netty:netty-transport-native-unix-common:jar:linux-aarch_64:4.1.93.Final", |
| 157 | "io.netty:netty-transport-native-unix-common:jar:linux-x86_64:4.1.93.Final", |
| 158 | "io.netty:netty-transport-native-unix-common:jar:osx-aarch_64:4.1.93.Final", |
| 159 | "io.netty:netty-transport-native-unix-common:jar:osx-x86_64:4.1.93.Final", |
Yun Peng | 136dae1 | 2023-09-08 12:39:10 -0700 | [diff] [blame] | 160 | "io.reactivex.rxjava3:rxjava:3.1.2", |
Justin Horvitz | c934361 | 2023-11-30 10:43:29 -0800 | [diff] [blame] | 161 | "it.unimi.dsi:fastutil:7.2.1", |
Yun Peng | 136dae1 | 2023-09-08 12:39:10 -0700 | [diff] [blame] | 162 | "javax.activation:javax.activation-api:1.2.0", |
| 163 | "javax.annotation:javax.annotation-api:1.3.2", |
| 164 | "javax.inject:javax.inject:1", |
Mark Elliot | 2330a11 | 2024-05-07 12:26:09 -0700 | [diff] [blame] | 165 | "org.apache.commons:commons-compress:1.26.1", |
Yun Peng | 136dae1 | 2023-09-08 12:39:10 -0700 | [diff] [blame] | 166 | "org.apache.commons:commons-pool2:2.8.0", |
| 167 | "org.apache.tomcat:tomcat-annotations-api:8.0.5", |
| 168 | "org.apache.velocity:velocity:1.7", |
| 169 | "org.checkerframework:checker-qual:3.19.0", |
Fabian Meumertzheim | d0af714 | 2024-04-29 11:41:46 -0700 | [diff] [blame] | 170 | "org.openjdk.jmh:jmh-core:1.37", |
| 171 | "org.openjdk.jmh:jmh-generator-annprocess:1.37", |
| 172 | "org.ow2.asm:asm:9.2", |
Yun Peng | 136dae1 | 2023-09-08 12:39:10 -0700 | [diff] [blame] | 173 | "org.ow2.asm:asm-analysis:9.2", |
| 174 | "org.ow2.asm:asm-commons:9.2", |
| 175 | "org.ow2.asm:asm-tree:9.2", |
| 176 | "org.ow2.asm:asm-util:9.2", |
Yun Peng | 136dae1 | 2023-09-08 12:39:10 -0700 | [diff] [blame] | 177 | "org.pcollections:pcollections:3.1.4", |
| 178 | "org.threeten:threeten-extra:1.5.0", |
| 179 | "org.tukaani:xz:1.9", |
| 180 | "org.yaml:snakeyaml:1.28", |
Tiago Quelhas | e061a02 | 2024-02-20 05:58:25 -0800 | [diff] [blame] | 181 | "tools.profiler:async-profiler:3.0", |
Yun Peng | 136dae1 | 2023-09-08 12:39:10 -0700 | [diff] [blame] | 182 | # The following jars are for testing. |
| 183 | # junit is not test only due to //src/java_tools/junitrunner/java/com/google/testing/junit/junit4:runner, |
| 184 | # and hamcrest is a dependency of junit. |
| 185 | "junit:junit:4.13.2", |
| 186 | "org.hamcrest:hamcrest-core:1.3", |
| 187 | ], |
| 188 | excluded_artifacts = [ |
| 189 | # org.apache.httpcomponents and org.eclipse.jgit:org.eclipse.jgit |
| 190 | # require java.security.jgss module to be embedded in the Bazel binary. |
| 191 | "org.apache.httpcomponents:httpclient", |
| 192 | "org.apache.httpcomponents:httpcore", |
| 193 | "org.eclipse.jgit:org.eclipse.jgit", |
| 194 | # We build protobuf Java library from source, exclude protobuf jars to be safe. |
| 195 | "com.google.protobuf:protobuf-java", |
| 196 | "com.google.protobuf:protobuf-javalite", |
| 197 | ], |
| 198 | # Don't forget to change this to back to True before submitting your change. |
| 199 | fail_if_repin_required = True, |
Yun Peng | c749f80 | 2023-02-21 06:08:30 -0800 | [diff] [blame] | 200 | lock_file = "//:maven_install.json", |
| 201 | repositories = [ |
| 202 | "https://repo1.maven.org/maven2", |
| 203 | ], |
John Cater | cadbaa5 | 2023-10-16 10:16:21 -0700 | [diff] [blame] | 204 | strict_visibility = True, |
Yun Peng | c749f80 | 2023-02-21 06:08:30 -0800 | [diff] [blame] | 205 | ) |
John Cater | cadbaa5 | 2023-10-16 10:16:21 -0700 | [diff] [blame] | 206 | |
Yun Peng | 136dae1 | 2023-09-08 12:39:10 -0700 | [diff] [blame] | 207 | # Test only maven dependencies |
John Cater | cadbaa5 | 2023-10-16 10:16:21 -0700 | [diff] [blame] | 208 | [ |
| 209 | maven.artifact( |
| 210 | testonly = True, |
| 211 | artifact = artifact, |
| 212 | group = group, |
| 213 | version = version, |
| 214 | ) |
| 215 | for group, artifact, version in [coord.split(":") for coord in [ |
Googler | c702865 | 2024-01-31 11:25:17 -0800 | [diff] [blame] | 216 | "com.google.guava:guava-testlib:33.0.0-jre", |
John Cater | cadbaa5 | 2023-10-16 10:16:21 -0700 | [diff] [blame] | 217 | "com.google.jimfs:jimfs:1.2", |
| 218 | "com.google.testing.compile:compile-testing:0.18", |
Googler | e40dc99 | 2024-05-15 04:44:20 -0700 | [diff] [blame] | 219 | "com.google.testparameterinjector:test-parameter-injector:1.16", |
Googler | 5fc530c | 2024-02-08 01:41:44 -0800 | [diff] [blame] | 220 | "com.google.truth:truth:1.4.0", |
| 221 | "com.google.truth.extensions:truth-java8-extension:1.4.0", |
| 222 | "com.google.truth.extensions:truth-liteproto-extension:1.4.0", |
| 223 | "com.google.truth.extensions:truth-proto-extension:1.4.0", |
John Cater | cadbaa5 | 2023-10-16 10:16:21 -0700 | [diff] [blame] | 224 | "org.mockito:mockito-core:5.4.0", |
| 225 | ]] |
| 226 | ] |
| 227 | |
Yun Peng | 136dae1 | 2023-09-08 12:39:10 -0700 | [diff] [blame] | 228 | use_repo(maven, "maven", "unpinned_maven") |
Yun Peng | 3d7937e | 2023-01-10 06:43:02 -0800 | [diff] [blame] | 229 | |
Yun Peng | 9d30849 | 2023-08-08 00:49:00 -0700 | [diff] [blame] | 230 | java_toolchains = use_extension("@rules_java//java:extensions.bzl", "toolchains") |
John Cater | cadbaa5 | 2023-10-16 10:16:21 -0700 | [diff] [blame] | 231 | use_repo( |
| 232 | java_toolchains, |
Yun Peng | b27ca73 | 2023-09-06 02:57:04 -0700 | [diff] [blame] | 233 | "local_jdk", |
Yun Peng | c1f2aff | 2023-11-07 09:51:02 -0800 | [diff] [blame] | 234 | # The following are required for visibility in //src:test_repos |
Yun Peng | b27ca73 | 2023-09-06 02:57:04 -0700 | [diff] [blame] | 235 | "remote_java_tools", |
Yun Peng | b27ca73 | 2023-09-06 02:57:04 -0700 | [diff] [blame] | 236 | "remote_java_tools_darwin_arm64", |
John Cater | cadbaa5 | 2023-10-16 10:16:21 -0700 | [diff] [blame] | 237 | "remote_java_tools_darwin_x86_64", |
Yun Peng | b27ca73 | 2023-09-06 02:57:04 -0700 | [diff] [blame] | 238 | "remote_java_tools_linux", |
| 239 | "remote_java_tools_windows", |
| 240 | "remotejdk11_linux", |
| 241 | "remotejdk11_linux_aarch64", |
| 242 | "remotejdk11_linux_ppc64le", |
| 243 | "remotejdk11_linux_s390x", |
| 244 | "remotejdk11_macos", |
| 245 | "remotejdk11_macos_aarch64", |
| 246 | "remotejdk11_win", |
| 247 | "remotejdk11_win_arm64", |
| 248 | "remotejdk17_linux", |
| 249 | "remotejdk17_linux_s390x", |
| 250 | "remotejdk17_macos", |
| 251 | "remotejdk17_macos_aarch64", |
| 252 | "remotejdk17_win", |
| 253 | "remotejdk17_win_arm64", |
Fabian Meumertzheim | f79ca02 | 2023-10-19 10:11:18 -0700 | [diff] [blame] | 254 | "remotejdk21_linux", |
| 255 | "remotejdk21_macos", |
| 256 | "remotejdk21_macos_aarch64", |
| 257 | "remotejdk21_win", |
Googler | 3c84aa8 | 2023-04-11 09:40:31 -0700 | [diff] [blame] | 258 | ) |
| 259 | |
Googler | cf14039 | 2023-08-01 12:34:14 -0700 | [diff] [blame] | 260 | # ========================================= |
Yun Peng | 9d30849 | 2023-08-08 00:49:00 -0700 | [diff] [blame] | 261 | # Python dependencies |
| 262 | # ========================================= |
| 263 | |
| 264 | python = use_extension("@rules_python//python/extensions:python.bzl", "python") |
| 265 | python.toolchain(python_version = "3.8") |
| 266 | |
| 267 | pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip") |
| 268 | pip.parse( |
| 269 | hub_name = "bazel_pip_dev_deps", |
| 270 | python_version = "3.8", |
| 271 | requirements_lock = "//:requirements.txt", |
| 272 | ) |
| 273 | use_repo(pip, "bazel_pip_dev_deps") |
| 274 | |
| 275 | # ========================================= |
Yun Peng | b27ca73 | 2023-09-06 02:57:04 -0700 | [diff] [blame] | 276 | # Other Bazel build dependencies |
Yun Peng | 9d30849 | 2023-08-08 00:49:00 -0700 | [diff] [blame] | 277 | # ========================================= |
| 278 | |
Yun Peng | b27ca73 | 2023-09-06 02:57:04 -0700 | [diff] [blame] | 279 | bazel_build_deps = use_extension("//:extensions.bzl", "bazel_build_deps") |
Yun Peng | 9d30849 | 2023-08-08 00:49:00 -0700 | [diff] [blame] | 280 | use_repo( |
Yun Peng | b27ca73 | 2023-09-06 02:57:04 -0700 | [diff] [blame] | 281 | bazel_build_deps, |
Yun Peng | 50c8375 | 2023-10-10 18:30:26 -0700 | [diff] [blame] | 282 | "bazel_tools_repo_cache", |
John Cater | cadbaa5 | 2023-10-16 10:16:21 -0700 | [diff] [blame] | 283 | "bootstrap_repo_cache", |
John Cater | 12b62e4 | 2023-10-17 04:53:45 -0700 | [diff] [blame] | 284 | "debian_bin_deps", |
Yun Peng | b27ca73 | 2023-09-06 02:57:04 -0700 | [diff] [blame] | 285 | "debian_cc_deps", |
John Cater | 12b62e4 | 2023-10-17 04:53:45 -0700 | [diff] [blame] | 286 | "debian_java_deps", |
| 287 | "debian_proto_deps", |
Yun Peng | b27ca73 | 2023-09-06 02:57:04 -0700 | [diff] [blame] | 288 | "openjdk_linux_aarch64_vanilla", |
| 289 | "openjdk_linux_ppc64le_vanilla", |
| 290 | "openjdk_linux_s390x_vanilla", |
| 291 | "openjdk_linux_vanilla", |
| 292 | "openjdk_macos_aarch64_vanilla", |
| 293 | "openjdk_macos_x86_64_vanilla", |
| 294 | "openjdk_win_arm64_vanilla", |
| 295 | "openjdk_win_vanilla", |
Yun Peng | c1f2aff | 2023-11-07 09:51:02 -0800 | [diff] [blame] | 296 | "workspace_repo_cache", |
Yun Peng | b27ca73 | 2023-09-06 02:57:04 -0700 | [diff] [blame] | 297 | ) |
| 298 | |
| 299 | # Required only by `--extra_toolchains=@local_config_cc//:cc-toolchain-arm64_windows` from .bazelrc |
| 300 | cc_configure = use_extension("@bazel_tools//tools/cpp:cc_configure.bzl", "cc_configure_extension") |
| 301 | use_repo(cc_configure, "local_config_cc") |
| 302 | |
Fabian Meumertzheim | 095ad38 | 2024-01-10 03:39:36 -0800 | [diff] [blame] | 303 | gvm = use_extension("@rules_graalvm//:extensions.bzl", "graalvm") |
| 304 | gvm.graalvm( |
| 305 | name = "graalvm", |
| 306 | distribution = "ce", |
Googler | 11498b5 | 2024-03-06 15:27:20 -0800 | [diff] [blame] | 307 | java_version = "21", |
| 308 | version = "21.0.2", |
Fabian Meumertzheim | 095ad38 | 2024-01-10 03:39:36 -0800 | [diff] [blame] | 309 | ) |
| 310 | use_repo(gvm, "graalvm_toolchains") |
| 311 | |
Fabian Meumertzheim | 3187250 | 2024-06-05 11:45:25 -0700 | [diff] [blame] | 312 | http_file = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file") |
| 313 | |
Fabian Meumertzheim | 0ca7099 | 2024-06-12 10:31:49 -0700 | [diff] [blame] | 314 | # DO NOT UPDATE the jq versions, they are used to verify compatibility with old and new versions. |
Fabian Meumertzheim | 3187250 | 2024-06-05 11:45:25 -0700 | [diff] [blame] | 315 | http_file( |
| 316 | name = "jq_linux_amd64", |
| 317 | executable = True, |
| 318 | integrity = "sha256-xrOn19PntwxvUbcGo7kL0BgzhGxU0yyjLwAn8AIm/20=", |
| 319 | urls = ["https://github.com/jqlang/jq/releases/download/jq-1.5/jq-linux64"], |
| 320 | ) |
| 321 | |
| 322 | http_file( |
Fabian Meumertzheim | 0ca7099 | 2024-06-12 10:31:49 -0700 | [diff] [blame] | 323 | name = "jq_linux_arm64", |
| 324 | executable = True, |
| 325 | integrity = "sha256-TdLYoGYd8LIvG7mh+YMPBrbzuPfZEhGh7118TwaotKU=", |
| 326 | urls = ["https://github.com/jqlang/jq/releases/download/jq-1.7.1/jq-linux-arm64"], |
| 327 | ) |
| 328 | |
| 329 | http_file( |
Fabian Meumertzheim | 3187250 | 2024-06-05 11:45:25 -0700 | [diff] [blame] | 330 | name = "jq_macos_amd64", |
| 331 | executable = True, |
| 332 | integrity = "sha256-OG6SyYKlb+SFFGjXqTHfyilWDO4wag5mxqG9QGXT2sU=", |
| 333 | urls = ["https://github.com/jqlang/jq/releases/download/jq-1.5/jq-osx-amd64"], |
| 334 | ) |
| 335 | |
| 336 | http_file( |
Fabian Meumertzheim | 0ca7099 | 2024-06-12 10:31:49 -0700 | [diff] [blame] | 337 | name = "jq_macos_arm64", |
| 338 | executable = True, |
| 339 | integrity = "sha256-C75hnmY+DeLFUL4v4NJA0HZ5nW+KZStw+gSuqKg2Loo=", |
| 340 | urls = ["https://github.com/jqlang/jq/releases/download/jq-1.7.1/jq-macos-arm64"], |
| 341 | ) |
| 342 | |
| 343 | http_file( |
Fabian Meumertzheim | 3187250 | 2024-06-05 11:45:25 -0700 | [diff] [blame] | 344 | name = "jq_windows_amd64", |
| 345 | executable = True, |
| 346 | integrity = "sha256-6+zYQLpH779mgihoF4zHIaFRBgk396xAbj0xvQFb3pQ=", |
| 347 | urls = ["https://github.com/jqlang/jq/releases/download/jq-1.5/jq-win64.exe"], |
| 348 | ) |
| 349 | |
Yun Peng | b27ca73 | 2023-09-06 02:57:04 -0700 | [diff] [blame] | 350 | # ========================================= |
| 351 | # Other Bazel testing dependencies |
| 352 | # ========================================= |
| 353 | |
Matthieu MOREL | 7ca7b35 | 2024-06-06 02:00:52 -0700 | [diff] [blame] | 354 | bazel_dep(name = "bazel_ci_rules", version = "1.0.0") |
| 355 | |
Yun Peng | b27ca73 | 2023-09-06 02:57:04 -0700 | [diff] [blame] | 356 | bazel_test_deps = use_extension("//:extensions.bzl", "bazel_test_deps") |
| 357 | use_repo( |
| 358 | bazel_test_deps, |
Yun Peng | 9d30849 | 2023-08-08 00:49:00 -0700 | [diff] [blame] | 359 | "local_bazel_source_list", |
| 360 | "local_config_winsdk", |
Yun Peng | 9d30849 | 2023-08-08 00:49:00 -0700 | [diff] [blame] | 361 | ) |
| 362 | |
| 363 | bazel_rbe_deps = use_extension("//:rbe_extension.bzl", "bazel_rbe_deps") |
Googler | 40824e1 | 2024-03-11 02:38:48 -0700 | [diff] [blame] | 364 | use_repo(bazel_rbe_deps, "rbe_ubuntu2004") |
Yun Peng | 9d30849 | 2023-08-08 00:49:00 -0700 | [diff] [blame] | 365 | |
Yun Peng | b27ca73 | 2023-09-06 02:57:04 -0700 | [diff] [blame] | 366 | remote_coverage_tools_extension = use_extension("//tools/test:extensions.bzl", "remote_coverage_tools_extension") |
| 367 | use_repo(remote_coverage_tools_extension, "remote_coverage_tools") |
| 368 | |
Yun Peng | 9d30849 | 2023-08-08 00:49:00 -0700 | [diff] [blame] | 369 | # ========================================= |
Yun Peng | b27ca73 | 2023-09-06 02:57:04 -0700 | [diff] [blame] | 370 | # Register platforms & toolchains |
| 371 | # ========================================= |
| 372 | |
| 373 | register_execution_platforms("//:default_host_platform") |
| 374 | |
| 375 | register_toolchains("@bazel_tools//tools/python:autodetecting_toolchain") |
| 376 | |
| 377 | register_toolchains("@local_config_winsdk//:all") |
| 378 | |
| 379 | register_toolchains("//src/main/res:empty_rc_toolchain") |
| 380 | |
Fabian Meumertzheim | 095ad38 | 2024-01-10 03:39:36 -0800 | [diff] [blame] | 381 | register_toolchains("@graalvm_toolchains//:gvm") |
| 382 | |
Yun Peng | b27ca73 | 2023-09-06 02:57:04 -0700 | [diff] [blame] | 383 | # ========================================= |
| 384 | # Android tools dependencies |
Googler | cf14039 | 2023-08-01 12:34:14 -0700 | [diff] [blame] | 385 | # ========================================= |
| 386 | |
| 387 | maven_android = use_extension("@rules_jvm_external//:extensions.bzl", "maven") |
| 388 | maven_android.install( |
| 389 | name = "maven_android", |
Yun Peng | 136dae1 | 2023-09-08 12:39:10 -0700 | [diff] [blame] | 390 | artifacts = [ |
| 391 | "androidx.databinding:databinding-compiler:3.4.0-alpha10", |
| 392 | "com.android.tools.build:builder:7.1.3", |
| 393 | "com.android.tools.build:manifest-merger:30.1.3", |
| 394 | "com.android.tools:sdk-common:30.1.3", |
| 395 | "com.android.tools:annotations:30.1.3", |
| 396 | "com.android.tools.layoutlib:layoutlib-api:30.1.3", |
| 397 | "com.android.tools:common:30.1.3", |
| 398 | "com.android.tools:repository:30.1.3", |
| 399 | ], |
| 400 | # Don't forget to change this to back to True before submitting your change. |
| 401 | fail_if_repin_required = True, |
Googler | cf14039 | 2023-08-01 12:34:14 -0700 | [diff] [blame] | 402 | lock_file = "//src/tools/android:maven_android_install.json", |
| 403 | repositories = [ |
| 404 | "https://dl.google.com/android/maven2", |
| 405 | "https://repo1.maven.org/maven2", |
| 406 | ], |
| 407 | ) |
Yun Peng | 136dae1 | 2023-09-08 12:39:10 -0700 | [diff] [blame] | 408 | use_repo(maven_android, "maven_android", "unpinned_maven_android") |
Googler | cf14039 | 2023-08-01 12:34:14 -0700 | [diff] [blame] | 409 | |
| 410 | bazel_android_deps = use_extension("//:extensions.bzl", "bazel_android_deps") |
Yun Peng | b27ca73 | 2023-09-06 02:57:04 -0700 | [diff] [blame] | 411 | use_repo(bazel_android_deps, "desugar_jdk_libs") |
| 412 | |
| 413 | remote_android_extensions = use_extension("//tools/android:android_extensions.bzl", "remote_android_tools_extensions") |
| 414 | use_repo(remote_android_extensions, "android_gmaven_r8", "android_tools") |
Googler | 7f749e9 | 2024-02-29 14:24:49 -0800 | [diff] [blame] | 415 | |
| 416 | android_sdk_proxy_extensions = use_extension("//tools/android:android_extensions.bzl", "android_sdk_proxy_extensions") |
| 417 | use_repo(android_sdk_proxy_extensions, "android_external") |