Add support for Bazel in Gerrit tree build
Change-Id: Iace4540a5d4f48a717c9e3fb3c9be647df82c1e0
diff --git a/BUILD b/BUILD
new file mode 100644
index 0000000..fd1de6a
--- /dev/null
+++ b/BUILD
@@ -0,0 +1,15 @@
+load("//tools/bzl:plugin.bzl", "gerrit_plugin")
+
+gerrit_plugin(
+ name = "plugin-manager",
+ srcs = glob(["src/main/java/**/*.java"]),
+ resources = glob(["src/main/resources/**/*"]),
+ manifest_entries = [
+ "Gerrit-PluginName: plugin-manager",
+ "Gerrit-HttpModule: com.googlesource.gerrit.plugins.manager.WebModule",
+ "Gerrit-Module: com.googlesource.gerrit.plugins.manager.Module",
+ "Gerrit-ReloadMode: restart",
+ "Implementation-Title: Plugin manager",
+ "Implementation-URL: https://gerrit-review.googlesource.com/#/admin/projects/plugins/plugin-manager",
+ ],
+)