blob: da21e309b4b7ac346fcbcd7c78198cec32abe973 [file] [log] [blame] [edit]
load("//tools/bzl:junit.bzl", "junit_tests")
load(
"//tools/bzl:plugin.bzl",
"PLUGIN_DEPS",
"PLUGIN_TEST_DEPS",
"gerrit_plugin",
)
gerrit_plugin(
name = "multi-site",
srcs = glob(["src/main/java/**/*.java"]),
manifest_entries = [
"Gerrit-PluginName: multi-site",
"Gerrit-Module: com.googlesource.gerrit.plugins.multisite.PluginModule",
"Implementation-Title: multi-site plugin",
"Implementation-URL: https://review.gerrithub.io/admin/repos/GerritForge/plugins_multi-site",
],
resources = glob(["src/main/resources/**/*"]),
deps = [
":replication-neverlink",
"@curator-client//jar",
"@curator-framework//jar",
"@curator-recipes//jar",
"@kafka-client//jar",
"@zookeeper//jar",
],
)
java_library(
name = "replication-neverlink",
neverlink = 1,
exports = ["//plugins/replication"],
)
junit_tests(
name = "multi_site_tests",
srcs = glob(["src/test/java/**/*.java"]),
resources = glob(["src/test/resources/**/*"]),
tags = [
"local",
"multi-site",
],
deps = [
":multi-site__plugin_test_deps",
],
)
java_library(
name = "multi-site__plugin_test_deps",
testonly = 1,
visibility = ["//visibility:public"],
exports = PLUGIN_DEPS + PLUGIN_TEST_DEPS + [
":multi-site__plugin",
"@curator-client//jar",
"@curator-framework//jar",
"@curator-test//jar",
"@mockito//jar",
"@testcontainers-kafka//jar",
"//lib/jackson:jackson-annotations",
"//lib/testcontainers",
"//lib/testcontainers:docker-java-api",
"//lib/testcontainers:docker-java-transport",
"//plugins/replication",
],
)