blob: b6b6f03067d4cc13602979819697438c63d61de5 [file] [log] [blame] [edit]
load("@rules_java//java:defs.bzl", "java_library")
load("//tools/bzl:junit.bzl", "junit_tests")
load(
"//tools/bzl:plugin.bzl",
"PLUGIN_DEPS",
"PLUGIN_TEST_DEPS",
"gerrit_plugin",
)
gerrit_plugin(
name = "project-group-structure",
srcs = glob(["src/main/java/**/*.java"]),
manifest_entries = [
"Gerrit-PluginName: project-group-structure",
"Gerrit-Module: com.ericsson.gerrit.plugins.projectgroupstructure.Module",
"Implementation-Title: project-group-structure plugin",
"Implementation-URL: https://gerrit-review.googlesource.com/#/admin/projects/plugins/project-group-structure",
"Implementation-Vendor: Ericsson",
],
resources = glob(["src/main/resources/**/*"]),
)
junit_tests(
name = "project-group-structure_tests",
srcs = glob(["src/test/java/**/*.java"]),
tags = ["project-group-structure"],
deps = [
":project-group-structure__plugin_test_deps",
],
)
java_library(
name = "project-group-structure__plugin_test_deps",
testonly = 1,
visibility = ["//visibility:public"],
exports = PLUGIN_DEPS + PLUGIN_TEST_DEPS + [
":project-group-structure__plugin",
],
)