| module(name = "gerrit") | |
| # Core Bazel deps. | |
| bazel_dep(name = "bazel_features", version = "1.51.0") | |
| bazel_dep(name = "platforms", version = "1.1.0") | |
| bazel_dep(name = "rules_jvm_external", version = "7.1") | |
| # Language rules. | |
| bazel_dep(name = "aspect_bazel_lib", version = "2.22.5") | |
| bazel_dep(name = "aspect_rules_js", version = "3.2.3") | |
| bazel_dep(name = "aspect_rules_rollup", version = "2.0.1") | |
| bazel_dep(name = "aspect_rules_ts", version = "3.9.2") | |
| bazel_dep(name = "rules_android", version = "0.7.3") | |
| bazel_dep(name = "rules_go", version = "0.62.0") | |
| bazel_dep(name = "rules_java", version = "9.5.0") | |
| bazel_dep(name = "rules_nodejs", version = "6.7.5") | |
| bazel_dep(name = "rules_python", version = "2.2.0") | |
| 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.5.0", | |
| ) | |
| # Libraries / toolchains. | |
| bazel_dep(name = "protobuf", version = "36.1.bcr.1") | |
| # 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") |