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.

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:

bazel build plugins/find-owners

The output is created in

bazel-bin/plugins/find-owners/find-owners.jar

To execute the tests run:

bazel test plugins/find-owners:findowners_tests

or filtering using the comma separated tags:

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:

./tools/eclipse/project.py