blob: 27ca508bca69cb6b1b1adfbf68d0eb7de499720b [file] [log] [blame]
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 = "2.15.18"
def gerrit_api():
bouncycastle_repos()
rules_python_repos()
maven_jar(
name = "gerrit_plugin_api",
artifact = "com.google.gerrit:gerrit-plugin-api:" + VER,
sha1 = "ea03c6d58c96b2e9d41602862ed713612e558e3e",
)
maven_jar(
name = "gerrit_plugin_gwtui",
artifact = "com.google.gerrit:gerrit-plugin-gwtui:" + VER,
sha1 = "4c57d4fa58b7f264b6c3fcd142021e071d08ed74",
exclude = ["com/google/gwt/*"],
)
maven_jar(
name = "gerrit_acceptance_framework",
artifact = "com.google.gerrit:gerrit-acceptance-framework:" + VER,
sha1 = "21cc57fb3ba9cc0235bc7bec990bf23e241ad395",
)
native.bind(
name = "gerrit-plugin-api",
actual = "@gerrit_plugin_api//jar",
)
native.bind(
name = "gerrit-plugin-gwtui",
actual = "@gerrit_plugin_gwtui//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-plugin-gwtui-neverlink",
actual = "@gerrit_plugin_gwtui//jar:neverlink",
)
native.bind(
name = "gerrit-acceptance-framework-neverlink",
actual = "@gerrit_acceptance_framework//jar:neverlink",
)