| 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.0.7" |
| |
| def gerrit_api(): |
| bouncycastle_repos() |
| rules_python_repos() |
| |
| maven_jar( |
| name = "gerrit_plugin_api", |
| artifact = "com.google.gerrit:gerrit-plugin-api:" + VER, |
| sha1 = "8c30a40beed3ef004d360831b9fad2f371975db2", |
| ) |
| maven_jar( |
| name = "gerrit_acceptance_framework", |
| artifact = "com.google.gerrit:gerrit-acceptance-framework:" + VER, |
| sha1 = "84e5cd3df453552f822244955d909a416bd892dc", |
| ) |
| 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", |
| ) |