blob: d74284295167e0dca97742d4f2f7bdf9b338d198 [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.14.21"
def gerrit_api():
bouncycastle_repos()
rules_python_repos()
maven_jar(
name = "gerrit_plugin_api",
artifact = "com.google.gerrit:gerrit-plugin-api:" + VER,
sha1 = "c7152a923d1564e092654f992ab62553c0c9b0e0",
)
maven_jar(
name = "gerrit_plugin_gwtui",
artifact = "com.google.gerrit:gerrit-plugin-gwtui:" + VER,
sha1 = "ce1a05823076eb9d9eb3bc1532dfdb1e156bfe41",
exclude = ["com/google/gwt/*"],
)
maven_jar(
name = "gerrit_acceptance_framework",
artifact = "com.google.gerrit:gerrit-acceptance-framework:" + VER,
sha1 = "2f5f419e4f4d93adaaedde181c8ac2e7540f3fce",
)
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",
)