blob: 064033f2ecebde0a700c9aaad8a6598a3a4ec7f7 [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"]),
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",
],
)
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",
],
)