David Ostrovsky | bb360eb | 2013-11-23 22:28:05 +0100 | [diff] [blame] | 1 | SRCS = [ |
| 2 | 'gerrit-server/src/main/java/', |
| 3 | 'gerrit-httpd/src/main/java/', |
Shawn Pearce | 4e1a8bc | 2013-11-28 18:38:30 -0800 | [diff] [blame] | 4 | 'gerrit-sshd/src/main/java/', |
David Ostrovsky | bb360eb | 2013-11-23 22:28:05 +0100 | [diff] [blame] | 5 | ] |
| 6 | |
| 7 | PLUGIN_API = [ |
David Ostrovsky | bb360eb | 2013-11-23 22:28:05 +0100 | [diff] [blame] | 8 | '//gerrit-httpd:httpd', |
Shawn Pearce | 4e1a8bc | 2013-11-28 18:38:30 -0800 | [diff] [blame] | 9 | '//gerrit-pgm:init-api', |
| 10 | '//gerrit-server:server', |
| 11 | '//gerrit-sshd:sshd', |
David Ostrovsky | bb360eb | 2013-11-23 22:28:05 +0100 | [diff] [blame] | 12 | ] |
| 13 | |
| 14 | java_binary( |
| 15 | name = 'plugin-api', |
| 16 | deps = [':lib'], |
| 17 | visibility = ['PUBLIC'], |
| 18 | ) |
| 19 | |
| 20 | java_library( |
| 21 | name = 'lib', |
Shawn Pearce | 4e1a8bc | 2013-11-28 18:38:30 -0800 | [diff] [blame] | 22 | exported_deps = PLUGIN_API + [ |
David Ostrovsky | 48a30b6 | 2014-07-15 23:39:03 +0200 | [diff] [blame] | 23 | '//gerrit-antlr:query_exception', |
| 24 | '//gerrit-antlr:query_parser', |
Shawn Pearce | 05cb053 | 2013-11-30 02:22:26 -0800 | [diff] [blame] | 25 | '//gerrit-common:annotations', |
Shawn Pearce | 4e1a8bc | 2013-11-28 18:38:30 -0800 | [diff] [blame] | 26 | '//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 Ostrovsky | e01d9b7 | 2014-01-04 22:25:01 +0100 | [diff] [blame] | 33 | '//lib:servlet-api-3_1', |
Shawn Pearce | 4e1a8bc | 2013-11-28 18:38:30 -0800 | [diff] [blame] | 34 | '//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 Pearce | 154d418 | 2013-11-24 13:42:47 -0800 | [diff] [blame] | 41 | visibility = ['PUBLIC'], |
David Ostrovsky | bb360eb | 2013-11-23 22:28:05 +0100 | [diff] [blame] | 42 | ) |
| 43 | |
| 44 | java_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 | |
| 52 | java_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 Ostrovsky | 3f3e9ad | 2014-03-26 11:48:26 -0700 | [diff] [blame] | 64 | do_it_wrong = True, |
David Ostrovsky | bb360eb | 2013-11-23 22:28:05 +0100 | [diff] [blame] | 65 | ) |