blob: c4fb7fc7eef456007955781def5b4d63f484da34 [file] [log] [blame] [view]
Build
=====
This plugin is built using Bazel.
Only the Gerrit in-tree build is supported.
Clone or link this plugin to the plugins directory of Gerrit's source
tree.
```bash
git clone https://gerrit.googlesource.com/gerrit
git clone https://gerrit.googlesource.com/plugins/find-owners
cd gerrit/plugins
ln -s ../../find-owners .
```
From Gerrit source tree issue the command:
```bash
bazel build plugins/find-owners
```
The output is created in
```bash
bazel-bin/plugins/find-owners/find-owners.jar
```
To execute the tests run:
```bash
bazel test plugins/find-owners/...
```
or filtering using the comma separated tags:
```bash
bazel test --test_tag_filters=findowners //...
```
This project can be imported into the Eclipse IDE.
Add the plugin name to the `CUSTOM_PLUGINS` set in
Gerrit core in `tools/bzl/plugins.bzl`, and execute:
```bash
./tools/eclipse/project.py
```