blob: 6a70ba0a3f4a686bc67ac8ffe7dbf8636e2410e0 [file] [log] [blame]
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 = "events-log",
srcs = glob(["src/main/java/**/*.java"]),
manifest_entries = [
"Gerrit-PluginName: events-log",
"Implementation-URL: https://gerrit-review.googlesource.com/#/admin/projects/plugins/events-log",
"Implementation-Title: events-log plugin",
"Gerrit-Module: com.ericsson.gerrit.plugins.eventslog.sql.SQLModule",
"Gerrit-HttpModule: com.ericsson.gerrit.plugins.eventslog.HttpModule",
],
resources = glob(["src/main/resources/**/*"]),
deps = ["@hikaricp//jar"],
)
junit_tests(
name = "events-log_tests",
testonly = 1,
srcs = glob(["src/test/java/**/*.java"]),
tags = ["events-log"],
deps = [
":events-log__plugin_test_deps",
],
)
java_library(
name = "events-log__plugin_test_deps",
testonly = 1,
visibility = ["//visibility:public"],
exports = PLUGIN_DEPS + PLUGIN_TEST_DEPS + [
":events-log__plugin",
"@mockito//jar",
"@hikaricp//jar",
],
)