blob: b6b6f03067d4cc13602979819697438c63d61de5 [file] [log] [blame]
David Pursehouse99014842019-09-05 08:43:41 +09001load("@rules_java//java:defs.bzl", "java_library")
Paladox none9aad7232017-02-12 20:28:42 +00002load("//tools/bzl:junit.bzl", "junit_tests")
3load(
4 "//tools/bzl:plugin.bzl",
Paladox none9aad7232017-02-12 20:28:42 +00005 "PLUGIN_DEPS",
6 "PLUGIN_TEST_DEPS",
David Pursehouse755067f2018-09-28 08:19:19 +09007 "gerrit_plugin",
Paladox none9aad7232017-02-12 20:28:42 +00008)
9
10gerrit_plugin(
11 name = "project-group-structure",
12 srcs = glob(["src/main/java/**/*.java"]),
Paladox none9aad7232017-02-12 20:28:42 +000013 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èseef2bf72017-07-20 13:14:49 -040018 "Implementation-Vendor: Ericsson",
Paladox none9aad7232017-02-12 20:28:42 +000019 ],
Hugo Arèsbd9e3572017-07-21 14:45:11 -040020 resources = glob(["src/main/resources/**/*"]),
Paladox none9aad7232017-02-12 20:28:42 +000021)
22
23junit_tests(
Marco Millerf47cfc32019-06-13 13:36:04 -040024 name = "project-group-structure_tests",
Paladox none9aad7232017-02-12 20:28:42 +000025 srcs = glob(["src/test/java/**/*.java"]),
26 tags = ["project-group-structure"],
Hugo Arès0249b402017-07-20 13:45:54 -040027 deps = [
28 ":project-group-structure__plugin_test_deps",
29 ],
30)
31
32java_library(
33 name = "project-group-structure__plugin_test_deps",
34 testonly = 1,
35 visibility = ["//visibility:public"],
36 exports = PLUGIN_DEPS + PLUGIN_TEST_DEPS + [
Paladox none9aad7232017-02-12 20:28:42 +000037 ":project-group-structure__plugin",
38 ],
39)