blob: 49709efbccab658b956843aebcd8eff512fdc879 [file] [log] [blame] [view]
Edwin Kempin0ebb76d2013-11-08 13:54:20 +01001Build
2=====
3
Paladox nonef040fbb2017-02-05 17:13:03 +00004This plugin is built with Bazel.
David Pursehouse1f3424d2014-03-12 19:48:50 +09005
Paladox nonef040fbb2017-02-05 17:13:03 +00006Clone (or link) this plugin to the `plugins` directory of Gerrit's source tree.
David Ostrovsky36371142014-07-21 10:30:00 +02007
Paladox nonef040fbb2017-02-05 17:13:03 +00008Then issue
David Ostrovsky36371142014-07-21 10:30:00 +02009
10```
Paladox nonef040fbb2017-02-05 17:13:03 +000011 bazel build plugins/@PLUGIN@
David Ostrovsky36371142014-07-21 10:30:00 +020012```
13
Paladox nonef040fbb2017-02-05 17:13:03 +000014in the root of Gerrit's source tree to build
David Ostrovsky36371142014-07-21 10:30:00 +020015
16The output is created in
17
18```
David Pursehouse28c00482019-10-16 12:48:35 +090019 bazel-bin/plugins/@PLUGIN@/@PLUGIN@.jar
David Ostrovsky36371142014-07-21 10:30:00 +020020```
21
Nguyen Tuan Khang Phan302975e2020-01-28 13:34:01 -050022To execute the tests run either one of:
23
24```
25 bazel test --test_tag_filters=@PLUGIN@ //...
26 bazel test plugins/@PLUGIN@:@PLUGIN@_tests
27```
28
Paladox nonef040fbb2017-02-05 17:13:03 +000029This project can be imported into the Eclipse IDE.
30Add the plugin name to the `CUSTOM_PLUGINS` set in
31Gerrit core in `tools/bzl/plugins.bzl`, and execute:
David Ostrovsky8770d542013-11-11 22:39:45 +010032
33```
34 ./tools/eclipse/project.py
35```
Nguyen Tuan Khang Phan887cbcd2020-01-28 13:26:14 -050036
37[Back to @PLUGIN@ documentation index][index]
38
39[index]: index.html