David Pursehouse | 9901484 | 2019-09-05 08:43:41 +0900 | [diff] [blame] | 1 | load("@rules_java//java:defs.bzl", "java_library") |
Paladox none | 9aad723 | 2017-02-12 20:28:42 +0000 | [diff] [blame] | 2 | load("//tools/bzl:junit.bzl", "junit_tests") |
| 3 | load( |
| 4 | "//tools/bzl:plugin.bzl", |
Paladox none | 9aad723 | 2017-02-12 20:28:42 +0000 | [diff] [blame] | 5 | "PLUGIN_DEPS", |
| 6 | "PLUGIN_TEST_DEPS", |
David Pursehouse | 755067f | 2018-09-28 08:19:19 +0900 | [diff] [blame] | 7 | "gerrit_plugin", |
Paladox none | 9aad723 | 2017-02-12 20:28:42 +0000 | [diff] [blame] | 8 | ) |
| 9 | |
| 10 | gerrit_plugin( |
| 11 | name = "project-group-structure", |
| 12 | srcs = glob(["src/main/java/**/*.java"]), |
Paladox none | 9aad723 | 2017-02-12 20:28:42 +0000 | [diff] [blame] | 13 | manifest_entries = [ |
| 14 | "Gerrit-PluginName: project-group-structure", |
| 15 | "Gerrit-Module: com.ericsson.gerrit.plugins.projectgroupstructure.Module", |
| 16 | "Implementation-Title: project-group-structure plugin", |
| 17 | "Implementation-URL: https://gerrit-review.googlesource.com/#/admin/projects/plugins/project-group-structure", |
Hugo Arès | eef2bf7 | 2017-07-20 13:14:49 -0400 | [diff] [blame] | 18 | "Implementation-Vendor: Ericsson", |
Paladox none | 9aad723 | 2017-02-12 20:28:42 +0000 | [diff] [blame] | 19 | ], |
Hugo Arès | bd9e357 | 2017-07-21 14:45:11 -0400 | [diff] [blame] | 20 | resources = glob(["src/main/resources/**/*"]), |
Paladox none | 9aad723 | 2017-02-12 20:28:42 +0000 | [diff] [blame] | 21 | ) |
| 22 | |
| 23 | junit_tests( |
Marco Miller | f47cfc3 | 2019-06-13 13:36:04 -0400 | [diff] [blame] | 24 | name = "project-group-structure_tests", |
Paladox none | 9aad723 | 2017-02-12 20:28:42 +0000 | [diff] [blame] | 25 | srcs = glob(["src/test/java/**/*.java"]), |
| 26 | tags = ["project-group-structure"], |
Hugo Arès | 0249b40 | 2017-07-20 13:45:54 -0400 | [diff] [blame] | 27 | deps = [ |
| 28 | ":project-group-structure__plugin_test_deps", |
| 29 | ], |
| 30 | ) |
| 31 | |
| 32 | java_library( |
| 33 | name = "project-group-structure__plugin_test_deps", |
| 34 | testonly = 1, |
| 35 | visibility = ["//visibility:public"], |
| 36 | exports = PLUGIN_DEPS + PLUGIN_TEST_DEPS + [ |
Paladox none | 9aad723 | 2017-02-12 20:28:42 +0000 | [diff] [blame] | 37 | ":project-group-structure__plugin", |
| 38 | ], |
| 39 | ) |