blob: 545cefc35f1add4246842a494b90c9eb50c67c58 [file] [log] [blame]
load("//:bouncycastle.bzl", "bouncycastle_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.14.20"
def gerrit_api():
bouncycastle_repos()
maven_jar(
name = "gerrit_plugin_api",
artifact = "com.google.gerrit:gerrit-plugin-api:" + VER,
sha1 = "6fe6d56db0f2b37e10d7bdc0d399dc9702b20588",
)
maven_jar(
name = "gerrit_plugin_gwtui",
artifact = "com.google.gerrit:gerrit-plugin-gwtui:" + VER,
sha1 = "c7f7a452ca4d8ccf5dfea4b09c0c20b718a95c5c",
exclude = ["com/google/gwt/*"],
)
maven_jar(
name = "gerrit_acceptance_framework",
artifact = "com.google.gerrit:gerrit-acceptance-framework:" + VER,
sha1 = "cc71d30efffdb307b302333cd11ff232c6d3cc02",
)
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",
)