blob: b6ec8b28e7ed4742119bb8646acab18bec9e3a20 [file] [log] [blame]
load("//tools/bzl:junit.bzl", "junit_tests")
load("//tools/bzl:plugin.bzl", "gerrit_plugin")
MODULE = "com.googlesource.gerrit.plugins.cookbook.HelloForm"
gerrit_plugin(
name = "cookbook-plugin",
srcs = glob(["src/main/java/**/*.java"]),
gwt_module = MODULE,
manifest_entries = [
"Gerrit-PluginName: cookbook",
"Gerrit-Module: com.googlesource.gerrit.plugins.cookbook.Module",
"Gerrit-HttpModule: com.googlesource.gerrit.plugins.cookbook.HttpModule",
"Gerrit-SshModule: com.googlesource.gerrit.plugins.cookbook.SshModule",
"Implementation-Title: Cookbook plugin",
"Implementation-URL: https://gerrit-review.googlesource.com/#/admin/projects/plugins/cookbook-plugin",
],
resources = glob(["src/main/**/*"]),
)
# For the reasons, how the plugin tests are implemented
# they cannot be run hermetically.
junit_tests(
name = "cookbook_tests",
size = "large",
srcs = glob(["src/test/java/**/*IT.java"]),
tags = [
"cookbook-plugin",
"local",
],
visibility = ["//visibility:public"],
deps = [
":cookbook-plugin__plugin",
"//gerrit-acceptance-framework:lib",
"//gerrit-plugin-api:lib",
],
)