blob: d08738aad21173f50d81310d8c68f35e859b9fd6 [file] [log] [blame]
Saša Živkov78c4c182017-06-13 14:57:32 +02001load("//tools/bzl:junit.bzl", "junit_tests")
2load(
3 "//tools/bzl:plugin.bzl",
Saša Živkov78c4c182017-06-13 14:57:32 +02004 "PLUGIN_DEPS",
5 "PLUGIN_TEST_DEPS",
David Pursehouse32d82d42018-08-01 16:15:19 +02006 "gerrit_plugin",
Saša Živkov78c4c182017-06-13 14:57:32 +02007)
8
9gerrit_plugin(
10 name = "webhooks",
11 srcs = glob(["src/main/java/**/*.java"]),
12 manifest_entries = [
13 "Gerrit-PluginName: webhooks",
Edwin Kempin9e4cd702021-10-19 15:30:03 +020014 "Gerrit-Module: com.googlesource.gerrit.plugins.webhooks.PluginModule",
Saša Živkov78c4c182017-06-13 14:57:32 +020015 "Implementation-Title: webhooks plugin",
16 "Implementation-URL: https://gerrit-review.googlesource.com/#/admin/projects/plugins/webhooks",
17 "Implementation-Vendor: Gerrit Code Review",
18 ],
19 resources = glob(["src/main/resources/**/*"]),
20)
21
22junit_tests(
23 name = "webhooks_tests",
24 srcs = glob(["src/test/java/**/*.java"]),
David Ostrovskye2674562019-10-13 19:35:31 +020025 tags = ["webhooks"],
26 deps = PLUGIN_DEPS + PLUGIN_TEST_DEPS + [
Hugo Arès66e021b2018-01-24 20:27:27 -050027 ":webhooks__plugin",
Saša Živkov78c4c182017-06-13 14:57:32 +020028 ],
29)