blob: a8d88ae98b460f6fa4deaa0fbecdc3e6ee6d0f71 [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 = "automerger",
srcs = glob(["src/main/java/**/*.java"]),
manifest_entries = [
"Gerrit-PluginName: automerger",
"Gerrit-Module: com.googlesource.gerrit.plugins.automerger.AutomergerModule",
"Implementation-Title: Automerger plugin",
"Implementation-URL: https://gerrit-review.googlesource.com/#/admin/projects/plugins/automerger",
],
resources = glob(["src/main/resources/**/*"]),
deps = [
"@re2j//jar",
"@yaml//jar",
],
)
junit_tests(
name = "automerger_tests",
srcs = glob(["src/test/java/**/*.java"]),
resources = glob(["src/test/resources/**/*"]),
tags = ["automerger"],
deps = PLUGIN_DEPS + PLUGIN_TEST_DEPS + [
":automerger__plugin",
"@mockito//jar",
],
)