This plugin is built with Bazel and two build modes are supported:
Standalone build mode is recommended, as this mode doesn’t require local Gerrit tree to exist.
To build the plugin, issue the following command:
bazel build rename-project
The output is created in
bazel-bin/rename-project.jar
To package the plugin sources run:
bazel build librename-project__plugin-src.jar
The output is created in:
bazel-bin/librename-project__plugin-src.jar
To execute the tests run:
bazel test //...
This project can be imported into the Eclipse IDE. Execute:
./tools/eclipse/project.sh
to generate the required files and then import the project.
Clone or link this plugin to the plugins directory of Gerrit’s source tree, and issue the command:
bazel build plugins/rename-project
The output is created in
bazel-bin/plugins/rename-project/rename-project.jar
To execute the tests run either one of:
bazel test --test_tag_filters=rename-project //...
bazel test plugins/rename-project:rename-project_tests
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