blob: a6afafb36576c0a8d9bc5a31de1dab231bb31d7c [file] [log] [blame]
David Ostrovskybb360eb2013-11-23 22:28:05 +01001SRCS = [
2 'gerrit-server/src/main/java/',
3 'gerrit-httpd/src/main/java/',
Shawn Pearce4e1a8bc2013-11-28 18:38:30 -08004 'gerrit-sshd/src/main/java/',
David Ostrovskybb360eb2013-11-23 22:28:05 +01005]
6
7PLUGIN_API = [
David Ostrovskybb360eb2013-11-23 22:28:05 +01008 '//gerrit-httpd:httpd',
Shawn Pearce4e1a8bc2013-11-28 18:38:30 -08009 '//gerrit-pgm:init-api',
10 '//gerrit-server:server',
11 '//gerrit-sshd:sshd',
David Ostrovskybb360eb2013-11-23 22:28:05 +010012]
13
14java_binary(
15 name = 'plugin-api',
16 deps = [':lib'],
17 visibility = ['PUBLIC'],
18)
19
20java_library(
21 name = 'lib',
Shawn Pearce4e1a8bc2013-11-28 18:38:30 -080022 exported_deps = PLUGIN_API + [
David Ostrovsky48a30b62014-07-15 23:39:03 +020023 '//gerrit-antlr:query_exception',
24 '//gerrit-antlr:query_parser',
Shawn Pearce05cb0532013-11-30 02:22:26 -080025 '//gerrit-common:annotations',
Shawn Pearce4e1a8bc2013-11-28 18:38:30 -080026 '//gerrit-common:server',
27 '//gerrit-extension-api:api',
28 '//gerrit-reviewdb:server',
29 '//lib:args4j',
30 '//lib:guava',
31 '//lib:gwtorm',
32 '//lib:jsch',
David Ostrovskye01d9b72014-01-04 22:25:01 +010033 '//lib:servlet-api-3_1',
Shawn Pearce4e1a8bc2013-11-28 18:38:30 -080034 '//lib/guice:guice',
35 '//lib/guice:guice-assistedinject',
36 '//lib/guice:guice-servlet',
37 '//lib/jgit:jgit',
38 '//lib/log:api',
39 '//lib/mina:sshd',
40 ],
Shawn Pearce154d4182013-11-24 13:42:47 -080041 visibility = ['PUBLIC'],
David Ostrovskybb360eb2013-11-23 22:28:05 +010042)
43
44java_binary(
45 name = 'plugin-api-src',
46 deps = [
47 '//gerrit-extension-api:extension-api-src',
48 ] + [d + '-src' for d in PLUGIN_API],
49 visibility = ['PUBLIC'],
50)
51
52java_doc(
53 name = 'plugin-api-javadoc',
54 title = 'Gerrit Review Plugin API Documentation',
55 pkg = 'com.google.gerrit',
56 paths = [n for n in SRCS],
57 srcs = glob([n + '**/*.java' for n in SRCS]),
58 deps = [
59 ':plugin-api',
60 '//lib/bouncycastle:bcprov',
61 '//lib/bouncycastle:bcpg',
62 ],
63 visibility = ['PUBLIC'],
David Ostrovsky3f3e9ad2014-03-26 11:48:26 -070064 do_it_wrong = True,
David Ostrovskybb360eb2013-11-23 22:28:05 +010065)