blob: 52010dc96af1b99679ae03e13ece8cabb0f7bb6c [file] [log] [blame] [view]
Paladox none210e3b92017-02-14 23:03:50 +00001Build
2=====
3
4This plugin is built with Bazel.
5
6Clone (or link) this plugin to the `plugins` directory of Gerrit's source tree.
7
8Put the external dependency Bazel build file into the Gerrit /plugins directory,
9replacing 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
17Then issue
18
19```
20 bazel build plugins/@PLUGIN@
21```
22
23in the root of Gerrit's source tree to build
24
25The output is created in
26
27```
David Pursehousec0161022019-10-16 12:56:53 +090028 bazel-bin/plugins/@PLUGIN@/@PLUGIN@.jar
Paladox none210e3b92017-02-14 23:03:50 +000029```
30
31This project can be imported into the Eclipse IDE.
32Add the plugin name to the `CUSTOM_PLUGINS` set in
33Gerrit 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