blob: b0ec26b7bea6c74c74e9516009162cd0a1cef25b [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 = "quota",
srcs = glob(["src/main/java/**/*.java"]),
manifest_entries = [
"Gerrit-PluginName: quota",
"Gerrit-Module: com.googlesource.gerrit.plugins.quota.Module",
"Gerrit-HttpModule: com.googlesource.gerrit.plugins.quota.HttpModule",
],
resources = glob(["src/main/resources/**/*"]),
)
junit_tests(
name = "quota_tests",
srcs = glob(["src/test/java/**/*.java"]),
tags = ["quota"],
deps = [
":quota__plugin_test_deps",
],
)
java_library(
name = "quota__plugin_test_deps",
testonly = 1,
visibility = ["//visibility:public"],
exports = PLUGIN_DEPS + PLUGIN_TEST_DEPS + [
":quota__plugin",
"@mockito//jar",
],
)