blob: bad06dc1c48ef2f5e34bfde844136a7a05dff7c5 [file] [log] [blame]
load("//tools/bzl:junit.bzl", "junit_tests")
load("//tools/bzl:plugin.bzl", "PLUGIN_DEPS", "PLUGIN_TEST_DEPS", "gerrit_plugin")
gerrit_plugin(
name = "plugin-manager",
srcs = glob(["src/main/java/**/*.java"]),
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",
],
resources = glob(["src/main/resources/**/*"]),
)
junit_tests(
name = "plugin_manager_tests",
srcs = glob(["src/test/java/**/*.java"]),
data = ["//:release.war"],
visibility = ["//visibility:public"],
deps = PLUGIN_TEST_DEPS + [
":plugin-manager__plugin",
],
)