Paladox none | 210e3b9 | 2017-02-14 23:03:50 +0000 | [diff] [blame] | 1 | Build |
| 2 | ===== |
| 3 | |
| 4 | This plugin is built with Bazel. |
| 5 | |
| 6 | Clone (or link) this plugin to the `plugins` directory of Gerrit's source tree. |
| 7 | |
| 8 | Put the external dependency Bazel build file into the Gerrit /plugins directory, |
| 9 | replacing the existing empty one. |
| 10 | |
| 11 | ``` |
| 12 | cd gerrit/plugins |
| 13 | rm external_plugin_deps.bzl |
| 14 | ln -s @PLUGIN@/external_plugin_deps.bzl . |
| 15 | ``` |
| 16 | |
| 17 | Then issue |
| 18 | |
| 19 | ``` |
| 20 | bazel build plugins/@PLUGIN@ |
| 21 | ``` |
| 22 | |
| 23 | in the root of Gerrit's source tree to build |
| 24 | |
| 25 | The output is created in |
| 26 | |
| 27 | ``` |
David Pursehouse | c016102 | 2019-10-16 12:56:53 +0900 | [diff] [blame] | 28 | bazel-bin/plugins/@PLUGIN@/@PLUGIN@.jar |
Paladox none | 210e3b9 | 2017-02-14 23:03:50 +0000 | [diff] [blame] | 29 | ``` |
| 30 | |
| 31 | This project can be imported into the Eclipse IDE. |
| 32 | Add the plugin name to the `CUSTOM_PLUGINS` set in |
| 33 | Gerrit core in `tools/bzl/plugins.bzl`, and execute: |
| 34 | |
| 35 | ``` |
| 36 | ./tools/eclipse/project.py |
| 37 | ``` |
| 38 | |
| 39 | [Back to @PLUGIN@ documentation index][index] |
| 40 | |
| 41 | [index]: index.html |