blob: cb5b65f24f2ff40e62797f7f9995945b0899a7ef [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.16.11.1"
def gerrit_api():
bouncycastle_repos()
maven_jar(
name = "gerrit_plugin_api",
artifact = "com.google.gerrit:gerrit-plugin-api:" + VER,
sha1 = "27a792af7f2c67a4e181b3b4227537ab44f6ab3b",
)
maven_jar(
name = "gerrit_plugin_gwtui",
artifact = "com.google.gerrit:gerrit-plugin-gwtui:" + VER,
sha1 = "767f91897af23b85ad067811f01fd62fb0d0a8e2",
exclude = ["com/google/gwt/*"],
)
maven_jar(
name = "gerrit_acceptance_framework",
artifact = "com.google.gerrit:gerrit-acceptance-framework:" + VER,
sha1 = "8a77b3f5a55ab5100db773544eb50d9255a3e255",
)
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",
)