blob: 92a7ebb4e5c50fab8dad3ff53baef4e901b61b92 [file] [log] [blame]
load("@rules_java//java:defs.bzl", "java_library")
load(
"//tools/bzl:plugin.bzl",
"PLUGIN_DEPS",
"PLUGIN_TEST_DEPS",
"gerrit_plugin",
)
load("//tools/bzl:junit.bzl", "junit_tests")
gerrit_plugin(
name = "verify-status",
srcs = glob(["src/main/java/**/*.java"]),
gwt_module = "com.googlesource.gerrit.plugins.verifystatus.VerifyStatusForm",
manifest_entries = [
"Gerrit-PluginName: verify-status",
"Gerrit-Module: com.googlesource.gerrit.plugins.verifystatus.GlobalModule",
"Gerrit-HttpModule: com.googlesource.gerrit.plugins.verifystatus.HttpModule",
"Gerrit-SshModule: com.googlesource.gerrit.plugins.verifystatus.SshModule",
"Gerrit-InitStep: com.googlesource.gerrit.plugins.verifystatus.init.InitPlugin",
"Implementation-Title: Verify Status Plugin",
"Implementation-URL: https://gerrit-review.googlesource.com/#/admin/projects/plugins/verify-status",
],
resources = glob(["src/main/**/*"]),
)
junit_tests(
name = "verify-status-tests",
size = "small",
srcs = ["src/test/java/com/googlesource/gerrit/plugins/verifystatus/VerifyStatusIT.java"],
tags = ["verify-status"],
deps = [
":verify-status__plugin_test_deps",
],
)
java_library(
name = "verify-status__plugin_test_deps",
testonly = 1,
visibility = ["//visibility:public"],
exports = PLUGIN_DEPS + PLUGIN_TEST_DEPS + [
":verify-status__plugin",
],
)