blob: b047e31499ec665b264b4ad32002c24699918af0 [file] [log] [blame]
load("//tools/bzl:junit.bzl", "junit_tests")
load("//tools/bzl:plugin.bzl", "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",
],
)