blob: 7fa956c6796fa412c2ec9476775193cc90b1d0c4 [file] [log] [blame]
load("//tools/bzl:junit.bzl", "junit_tests")
load("//tools/bzl:plugin.bzl", "PLUGIN_DEPS", "PLUGIN_TEST_DEPS", "gerrit_plugin")
gerrit_plugin(
name = "pull-replication",
srcs = glob(["src/main/java/**/*.java"]),
manifest_entries = [
"Implementation-Title: Pull Replication plugin",
"Implementation-URL: https://gerrit-review.googlesource.com/#/admin/projects/plugins/pull-replication",
"Gerrit-PluginName: pull-replication",
"Gerrit-Module: com.googlesource.gerrit.plugins.replication.pull.PullReplicationModule",
"Gerrit-SshModule: com.googlesource.gerrit.plugins.replication.pull.SshModule",
],
resources = glob(["src/main/resources/**/*"]),
deps = [
"//lib/commons:io",
"//plugins/replication:replication",
],
)
junit_tests(
name = "pull_replication_tests",
srcs = glob(["src/test/java/**/*Test.java"]),
tags = ["pull-replication"],
visibility = ["//visibility:public"],
deps = PLUGIN_TEST_DEPS + PLUGIN_DEPS + [
":pull-replication__plugin",
"//plugins/replication:replication",
],
)