blob: bd46d6c5de4d570f2a02a3ea8ba4ad681e214fe6 [file] [log] [blame]
Nasser Grainawi29fd47f2020-05-29 14:04:20 -06001load(
2 "//tools/bzl:plugin.bzl",
3 "PLUGIN_DEPS",
4 "PLUGIN_TEST_DEPS",
5 "gerrit_plugin",
6)
Nicholas Legg6936d3a2018-03-06 14:55:24 -07007
Nasser Grainawi2a31b6b2020-06-01 13:41:22 -06008load("@rules_java//java:defs.bzl", "java_library", "java_plugin")
9
10java_plugin(
11 name = "auto-annotation-plugin",
12 processor_class = "com.google.auto.value.processor.AutoAnnotationProcessor",
13 deps = [
14 "@auto-value-annotations//jar",
15 "@auto-value//jar",
16 ],
17)
18
19java_plugin(
20 name = "auto-value-plugin",
21 processor_class = "com.google.auto.value.processor.AutoValueProcessor",
22 deps = [
23 "@auto-value-annotations//jar",
24 "@auto-value//jar",
25 ],
26)
27
28java_library(
29 name = "auto-value",
30 exported_plugins = [
31 ":auto-annotation-plugin",
32 ":auto-value-plugin",
33 ],
34 visibility = ["//visibility:public"],
35 exports = ["@auto-value//jar"],
36)
37
38java_library(
39 name = "auto-value-annotations",
40 exported_plugins = [
41 ":auto-annotation-plugin",
42 ":auto-value-plugin",
43 ],
44 visibility = ["//visibility:public"],
45 exports = ["@auto-value-annotations//jar"],
46)
47
Nicholas Legg6936d3a2018-03-06 14:55:24 -070048gerrit_plugin(
49 name = "batch",
50 srcs = glob(["src/main/java/**/*.java"]),
51 manifest_entries = [
52 "Gerrit-PluginName: batch",
Nasser Grainawie2bd0962020-11-16 14:36:15 -070053 "Gerrit-ApiVersion: 3.4.0-SNAPSHOT",
Nicholas Legg6936d3a2018-03-06 14:55:24 -070054 "Implementation-Title: Batch Plugin",
55 "Implementation-URL: https://gerrit-review.googlesource.com/#/admin/projects/plugins/batch",
56 "Gerrit-Module: com.googlesource.gerrit.plugins.batch.Module",
57 "Gerrit-SshModule: com.googlesource.gerrit.plugins.batch.ssh.SshModule",
58 ],
59 resources = glob(["src/main/resources/**/*"]),
Nasser Grainawi2a31b6b2020-06-01 13:41:22 -060060 deps = [
61 ":auto-value",
62 ":auto-value-annotations"
63 ],
Nicholas Legg6936d3a2018-03-06 14:55:24 -070064)