blob: db99a0abc9866062abafca2ed8e0dbeefc2a5b2c [file] [log] [blame]
load("//tools/bzl:junit.bzl", "junit_tests")
load(
"//tools/bzl:plugin.bzl",
"gerrit_plugin",
"PLUGIN_DEPS",
"PLUGIN_TEST_DEPS",
)
gerrit_plugin(
name = "audit-sl4j",
srcs = glob(["src/main/java/**/*.java"]),
manifest_entries = [
"Gerrit-PluginName: audit-sl4j",
"Gerrit-ReloadMode: reload",
"Gerrit-Module: com.googlesource.gerrit.plugins.auditsl4j.Module",
"Gerrit-SshModule: com.googlesource.gerrit.plugins.auditsl4j.SshModule",
"Implementation-Title: Gerrit Audit provider for SLF4J",
"Implementation-URL: https://gerrit.googlesource.com/plugins/audit-sl4j/",
],
resources = glob(["src/main/resources/**/*"]),
deps = [ ],
)
junit_tests(
name = "audit_sl4j_tests",
srcs = glob(["src/test/java/**/*Test.java"]),
visibility = ["//visibility:public"],
deps = PLUGIN_TEST_DEPS + PLUGIN_DEPS + [
":audit-sl4j__plugin",
":audit_sl4j_util",
],
)
java_library(
name = "audit_sl4j_util",
testonly = 1,
srcs = glob(
["src/test/java/**/*.java"],
exclude = ["src/test/java/**/*Test.java"],
),
deps = PLUGIN_TEST_DEPS + PLUGIN_DEPS + [
":audit-sl4j__plugin",
],
)