| module(name = "gerrit") |
| |
| # Core Bazel deps. |
| bazel_dep(name = "bazel_features", version = "1.51.0") |
| bazel_dep(name = "bazel_lib", version = "3.7.2") |
| bazel_dep(name = "platforms", version = "1.1.0") |
| bazel_dep(name = "rules_jvm_external", version = "7.2") |
| |
| # Language rules. |
| bazel_dep(name = "aspect_rules_js", version = "3.4.1") |
| bazel_dep(name = "aspect_rules_rollup", version = "2.0.1") |
| bazel_dep(name = "aspect_rules_ts", version = "3.10.1") |
| bazel_dep(name = "rules_android", version = "0.7.3") |
| bazel_dep(name = "rules_go", version = "0.63.0") |
| bazel_dep(name = "rules_java", version = "9.9.0") |
| bazel_dep(name = "rules_nodejs", version = "6.7.6") |
| bazel_dep(name = "rules_python", version = "2.3.4") |
| bazel_dep(name = "rules_shell", version = "0.8.0") |
| |
| # Pin rules_java to Gerrit's chosen version. Transitive bzlmod modules can |
| # otherwise raise it through MVS, which changes the Java toolchain inputs |
| # and can break custom plugin builds. When merging up, keep this override |
| # but update the version to the target branch's chosen rules_java version. |
| single_version_override( |
| module_name = "rules_java", |
| version = "9.9.0", |
| ) |
| |
| # Libraries / toolchains. |
| bazel_dep(name = "protobuf", version = "36.2") |
| |
| # TODO(davido): Gerrit uses Java protobufs only. Disable Protobuf's transitive |
| # Rust setup until upstream avoids resolving Cargo/Rust tools for non-Rust consumers. |
| # https://github.com/protocolbuffers/protobuf/issues/30684 |
| single_version_override( |
| module_name = "protobuf", |
| patch_strip = 1, |
| patches = ["//tools/patches:protobuf-36.2-no-rust.patch"], |
| version = "36.2", |
| ) |
| |
| # In-tree modules. |
| bazel_dep(name = "jgit") |
| local_path_override( |
| module_name = "jgit", |
| path = "./modules/jgit", |
| ) |
| |
| # Toolchain setup. |
| register_toolchains("//tools:all") |
| |
| # Plugin packaging support: bazlets pin and generated Gerrit API version repo. |
| include("//tools:bazlets.MODULE.bazel") |
| |
| # Repository rules for in-tree sources. |
| include("//tools:repos.MODULE.bazel") |
| |
| # External dependency wiring is split out. |
| include("//tools:java_deps.MODULE.bazel") |
| |
| # PolyGerrit dependency wiring is split out. |
| include("//polygerrit-ui:polygerrit.MODULE.bazel") |
| |
| # Wiring for external dependencies contributed by in-tree plugins. |
| include("//plugins:external_plugin_deps.MODULE.bazel") |