blob: c5f1e4f413da51ed77f0bbfed969c4da0e8c01d9 [file] [log] [blame]
Marcin Czech4755bc02019-09-09 15:17:39 +02001load("//tools/bzl:junit.bzl", "junit_tests")
2load(
3 "//tools/bzl:plugin.bzl",
4 "PLUGIN_DEPS",
5 "PLUGIN_TEST_DEPS",
6 "gerrit_plugin",
7)
8
9gerrit_plugin(
Luca Milanesio56194d62020-03-25 22:30:08 +000010 name = "zookeeper-refdb",
Marcin Czech4755bc02019-09-09 15:17:39 +020011 srcs = glob(["src/main/java/**/*.java"]),
12 manifest_entries = [
Luca Milanesio56194d62020-03-25 22:30:08 +000013 "Gerrit-PluginName: zookeeper-refdb",
Marcin Czech4755bc02019-09-09 15:17:39 +020014 "Gerrit-Module: com.googlesource.gerrit.plugins.validation.dfsrefdb.zookeeper.ZkValidationModule",
Luca Milanesiobb165782021-02-23 01:24:32 +000015 "Gerrit-InitStep: com.googlesource.gerrit.plugins.validation.dfsrefdb.zookeeper.ZkInit",
Luca Milanesio56194d62020-03-25 22:30:08 +000016 "Implementation-Title: zookeeper ref-db plugin",
Marcin Czech4755bc02019-09-09 15:17:39 +020017 "Implementation-URL: https://review.gerrithub.io/admin/repos/GerritForge/plugins_zookeeper",
18 ],
19 resources = glob(["src/main/resources/**/*"]),
20 deps = [
21 "@curator-client//jar",
22 "@curator-framework//jar",
23 "@curator-recipes//jar",
24 "@global-refdb//jar",
Luca Milanesio67e10412023-10-16 14:55:17 +010025 "@netty-buffer//jar",
26 "@netty-codec//jar",
Luca Milanesioa2694382023-10-15 23:45:43 +010027 "@netty-common//jar",
Luca Milanesio67e10412023-10-16 14:55:17 +010028 "@netty-handler//jar",
29 "@netty-resolver//jar",
30 "@netty-transport-classes-epoll//jar",
31 "@netty-transport-native-epoll//jar",
32 "@netty-transport-native-unix-common//jar",
Luca Milanesioa2694382023-10-15 23:45:43 +010033 "@netty-transport//jar",
Matthias Sohn34bc02f2023-07-21 01:05:14 +020034 "@zookeeper-jute//jar",
35 "@zookeeper//jar",
Marcin Czech4755bc02019-09-09 15:17:39 +020036 ],
37)
38
39junit_tests(
Luca Milanesio56194d62020-03-25 22:30:08 +000040 name = "zookeeper-refdb_tests",
Marcin Czech4755bc02019-09-09 15:17:39 +020041 srcs = glob(["src/test/java/**/*.java"]),
42 resources = glob(["src/test/resources/**/*"]),
43 tags = [
44 "local",
45 "zookeeper",
46 ],
47 deps = [
Luca Milanesio56194d62020-03-25 22:30:08 +000048 ":zookeeper-refdb__plugin_test_deps",
Marcin Czech4755bc02019-09-09 15:17:39 +020049 ],
50)
51
52java_library(
Luca Milanesio56194d62020-03-25 22:30:08 +000053 name = "zookeeper-refdb__plugin_test_deps",
Marcin Czech4755bc02019-09-09 15:17:39 +020054 testonly = 1,
55 visibility = ["//visibility:public"],
56 exports = PLUGIN_DEPS + PLUGIN_TEST_DEPS + [
Matthias Sohn34bc02f2023-07-21 01:05:14 +020057 ":zookeeper-refdb__plugin",
58 "@curator-client//jar",
Marcin Czech4755bc02019-09-09 15:17:39 +020059 "@curator-framework//jar",
60 "@curator-recipes//jar",
61 "@curator-test//jar",
Fabio Poncirolie7d05022022-04-28 19:11:15 +020062 "@docker-java-api//jar",
Matthias Sohn34bc02f2023-07-21 01:05:14 +020063 "@docker-java-transport-zerodep//jar",
Fabio Poncirolie7d05022022-04-28 19:11:15 +020064 "@docker-java-transport//jar",
65 "@duct-tape//jar",
Matthias Sohn34bc02f2023-07-21 01:05:14 +020066 "@jackson-annotations//jar",
Fabio Poncirolie7d05022022-04-28 19:11:15 +020067 "@jackson-databind//jar",
Matthias Sohn34bc02f2023-07-21 01:05:14 +020068 "@jackson-dataformat-cbor//jar",
69 "@jna//jar",
70 "@testcontainer-localstack//jar",
71 "@testcontainers//jar",
72 "@visible-assertions//jar",
Marcin Czech4755bc02019-09-09 15:17:39 +020073 ],
74)