blob: f6a6e4828067fdece5ca5cf5895fcc74ffe2834f [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-InitStep: com.googlesource.gerrit.plugins.replication.pull.InitPlugin",
"Gerrit-SshModule: com.googlesource.gerrit.plugins.replication.pull.SshModule",
"Gerrit-HttpModule: com.googlesource.gerrit.plugins.replication.pull.api.HttpModule",
],
resources = glob(["src/main/resources/**/*"]),
deps = [
"//lib/commons:io",
"//plugins/replication",
"@events-broker//jar:neverlink",
],
)
junit_tests(
name = "pull_replication_tests",
srcs = glob([
"src/test/java/**/*Test.java",
"src/test/java/**/*IT.java",
]),
tags = ["pull-replication"],
visibility = ["//visibility:public"],
deps = PLUGIN_TEST_DEPS + PLUGIN_DEPS + [
":pull-replication__plugin",
":pull_replication_util",
"//plugins/replication",
"@events-broker//jar",
],
)
java_library(
name = "pull_replication_util",
testonly = True,
srcs = glob(
["src/test/java/**/*.java"],
exclude = [
"src/test/java/**/*Test.java",
"src/test/java/**/*IT.java",
],
),
deps = PLUGIN_TEST_DEPS + PLUGIN_DEPS + [
":pull-replication__plugin",
"//plugins/replication:replication",
],
)