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', |
David Ostrovsky | 9378906 | 2014-10-02 22:50:20 +0200 | [diff] [blame] | 28 | '//gerrit-gwtexpui:server', |
Shawn Pearce | 4e1a8bc | 2013-11-28 18:38:30 -0800 | [diff] [blame] | 29 | '//gerrit-reviewdb:server', |
| 30 | '//lib:args4j', |
Saša Živkov | 8e85143 | 2016-04-19 14:54:14 +0200 | [diff] [blame] | 31 | '//lib:blame-cache', |
David Pursehouse | 6a7c2d2 | 2016-08-21 20:26:01 +0900 | [diff] [blame] | 32 | '//lib:gson', |
Shawn Pearce | 4e1a8bc | 2013-11-28 18:38:30 -0800 | [diff] [blame] | 33 | '//lib:guava', |
| 34 | '//lib:gwtorm', |
| 35 | '//lib:jsch', |
David Ostrovsky | 9378906 | 2014-10-02 22:50:20 +0200 | [diff] [blame] | 36 | '//lib:mime-util', |
David Ostrovsky | e01d9b7 | 2014-01-04 22:25:01 +0100 | [diff] [blame] | 37 | '//lib:servlet-api-3_1', |
David Ostrovsky | 6205b19 | 2015-09-19 16:06:48 +0200 | [diff] [blame] | 38 | '//lib:velocity', |
Edwin Kempin | 90b3f5d | 2014-10-10 10:51:03 +0200 | [diff] [blame] | 39 | '//lib/commons:lang', |
David Pursehouse | 571bf89 | 2016-08-21 20:25:42 +0900 | [diff] [blame] | 40 | '//lib/dropwizard:dropwizard-core', |
Shawn Pearce | 4e1a8bc | 2013-11-28 18:38:30 -0800 | [diff] [blame] | 41 | '//lib/guice:guice', |
| 42 | '//lib/guice:guice-assistedinject', |
| 43 | '//lib/guice:guice-servlet', |
David Ostrovsky | 08ea694 | 2016-04-20 08:55:24 +0200 | [diff] [blame] | 44 | '//lib/jgit/org.eclipse.jgit:jgit', |
| 45 | '//lib/jgit/org.eclipse.jgit.http.server:jgit-servlet', |
David Ostrovsky | 8045b86 | 2015-09-23 07:12:20 +0200 | [diff] [blame] | 46 | '//lib/joda:joda-time', |
Shawn Pearce | 4e1a8bc | 2013-11-28 18:38:30 -0800 | [diff] [blame] | 47 | '//lib/log:api', |
| 48 | '//lib/mina:sshd', |
David Ostrovsky | 2c69859 | 2016-06-22 07:32:22 +0200 | [diff] [blame] | 49 | '//lib/prolog:compiler', |
David Ostrovsky | 7746410 | 2016-10-21 08:47:00 +0200 | [diff] [blame] | 50 | '//lib/prolog:runtime', |
Shawn Pearce | 4e1a8bc | 2013-11-28 18:38:30 -0800 | [diff] [blame] | 51 | ], |
Shawn Pearce | 154d418 | 2013-11-24 13:42:47 -0800 | [diff] [blame] | 52 | visibility = ['PUBLIC'], |
David Ostrovsky | bb360eb | 2013-11-23 22:28:05 +0100 | [diff] [blame] | 53 | ) |
| 54 | |
| 55 | java_binary( |
| 56 | name = 'plugin-api-src', |
| 57 | deps = [ |
| 58 | '//gerrit-extension-api:extension-api-src', |
| 59 | ] + [d + '-src' for d in PLUGIN_API], |
| 60 | visibility = ['PUBLIC'], |
| 61 | ) |
| 62 | |
| 63 | java_doc( |
| 64 | name = 'plugin-api-javadoc', |
| 65 | title = 'Gerrit Review Plugin API Documentation', |
David Ostrovsky | ec38762 | 2014-10-22 01:22:23 +0200 | [diff] [blame] | 66 | pkgs = ['com.google.gerrit'], |
David Ostrovsky | bb360eb | 2013-11-23 22:28:05 +0100 | [diff] [blame] | 67 | paths = [n for n in SRCS], |
| 68 | srcs = glob([n + '**/*.java' for n in SRCS]), |
| 69 | deps = [ |
| 70 | ':plugin-api', |
| 71 | '//lib/bouncycastle:bcprov', |
| 72 | '//lib/bouncycastle:bcpg', |
David Ostrovsky | ee0a74e | 2016-02-14 10:49:12 +0100 | [diff] [blame] | 73 | '//lib/bouncycastle:bcpkix', |
David Ostrovsky | bb360eb | 2013-11-23 22:28:05 +0100 | [diff] [blame] | 74 | ], |
| 75 | visibility = ['PUBLIC'], |
David Ostrovsky | 3f3e9ad | 2014-03-26 11:48:26 -0700 | [diff] [blame] | 76 | do_it_wrong = True, |
David Ostrovsky | bb360eb | 2013-11-23 22:28:05 +0100 | [diff] [blame] | 77 | ) |