| David Pursehouse | aa7b570 | 2018-03-09 13:02:40 +0900 | [diff] [blame] | 1 | load("//tools/bzl:junit.bzl", "junit_tests") |
| 2 | load( |
| 3 | "//tools/bzl:plugin.bzl", |
| David Pursehouse | aa7b570 | 2018-03-09 13:02:40 +0900 | [diff] [blame] | 4 | "PLUGIN_DEPS", |
| 5 | "PLUGIN_TEST_DEPS", |
| David Pursehouse | c999b43 | 2018-10-11 11:52:26 +0900 | [diff] [blame^] | 6 | "gerrit_plugin", |
| David Pursehouse | aa7b570 | 2018-03-09 13:02:40 +0900 | [diff] [blame] | 7 | ) |
| 8 | |
| 9 | gerrit_plugin( |
| 10 | name = "slack-integration", |
| 11 | srcs = glob(["src/main/java/**/*.java"]), |
| 12 | manifest_entries = [ |
| 13 | "Gerrit-PluginName: slack-integration", |
| 14 | "Implementation-Title: slack-integration plugin", |
| 15 | "Implementation-URL: https://gerrit-review.googlesource.com/#/admin/projects/plugins/slack-integration", |
| 16 | ], |
| 17 | resources = glob(["src/main/resources/**/*"]), |
| 18 | ) |
| 19 | |
| 20 | junit_tests( |
| 21 | name = "slack-integration_tests", |
| 22 | srcs = glob(["src/test/java/**/*.java"]), |
| 23 | resources = glob(["src/test/resources/**/*"]), |
| 24 | tags = [ |
| 25 | "slack-integration", |
| 26 | ], |
| 27 | deps = [ |
| 28 | ":slack-integration__plugin_test_deps", |
| 29 | ], |
| 30 | ) |
| 31 | |
| 32 | java_library( |
| 33 | name = "slack-integration__plugin_test_deps", |
| 34 | testonly = 1, |
| 35 | visibility = ["//visibility:public"], |
| 36 | exports = PLUGIN_DEPS + PLUGIN_TEST_DEPS + [ |
| 37 | ":slack-integration__plugin", |
| 38 | "@mockito//jar", |
| 39 | "@powermock_module_junit4//jar", |
| 40 | "@powermock_api_mockito//jar", |
| 41 | ], |
| 42 | ) |