| load("//:bouncycastle.bzl", "bouncycastle_repos") |
| load("//:rules_python.bzl", "rules_python_repos") |
| load("//tools:maven_jar.bzl", "maven_jar") |
| |
| """Bazel rule for building [Gerrit Code Review](https://www.gerritcodereview.com/) |
| gerrit_api is rule for fetching Gerrit plugin API using Bazel. |
| """ |
| |
| VER = "3.1.2" |
| |
| def gerrit_api(): |
| bouncycastle_repos() |
| rules_python_repos() |
| |
| maven_jar( |
| name = "gerrit_plugin_api", |
| artifact = "com.google.gerrit:gerrit-plugin-api:" + VER, |
| sha1 = "3d36e1f8ded9b1cd26a104a981da919430df7716", |
| ) |
| maven_jar( |
| name = "gerrit_acceptance_framework", |
| artifact = "com.google.gerrit:gerrit-acceptance-framework:" + VER, |
| sha1 = "043396fa2fb00e9f9ba1d778716c83159b1e31c5", |
| ) |
| native.bind( |
| name = "gerrit-plugin-api", |
| actual = "@gerrit_plugin_api//jar", |
| ) |
| native.bind( |
| name = "gerrit-acceptance-framework", |
| actual = "@gerrit_acceptance_framework//jar", |
| ) |
| native.bind( |
| name = "gerrit-plugin-api-neverlink", |
| actual = "@gerrit_plugin_api//jar:neverlink", |
| ) |
| native.bind( |
| name = "gerrit-acceptance-framework-neverlink", |
| actual = "@gerrit_acceptance_framework//jar:neverlink", |
| ) |