| Saša Živkov | 78c4c18 | 2017-06-13 14:57:32 +0200 | [diff] [blame^] | 1 | load("//tools/bzl:junit.bzl", "junit_tests") |
| 2 | load( |
| 3 | "//tools/bzl:plugin.bzl", |
| 4 | "gerrit_plugin", |
| 5 | "PLUGIN_DEPS", |
| 6 | "PLUGIN_TEST_DEPS", |
| 7 | ) |
| 8 | |
| 9 | gerrit_plugin( |
| 10 | name = "webhooks", |
| 11 | srcs = glob(["src/main/java/**/*.java"]), |
| 12 | manifest_entries = [ |
| 13 | "Gerrit-PluginName: webhooks", |
| 14 | "Gerrit-Module: com.googlesource.gerrit.plugins.webhooks.Module", |
| 15 | "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 | |
| 22 | junit_tests( |
| 23 | name = "webhooks_tests", |
| 24 | srcs = glob(["src/test/java/**/*.java"]), |
| 25 | resources = glob(["src/test/resources/**/*"]), |
| 26 | tags = [ |
| 27 | "webhooks", |
| 28 | "local", |
| 29 | ], |
| 30 | deps = PLUGIN_DEPS + PLUGIN_TEST_DEPS + [ |
| 31 | ":webhooks__plugin_test_deps", |
| 32 | ":webhooks__plugin", |
| 33 | ], |
| 34 | ) |
| 35 | |
| 36 | java_library( |
| 37 | name = "webhooks__plugin_test_deps", |
| 38 | visibility = ["//visibility:public"], |
| 39 | exports = [ |
| 40 | "@byte-buddy//jar", |
| 41 | "@mockito//jar", |
| 42 | "@objenesis//jar", |
| 43 | ], |
| 44 | ) |