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