Allows the load Gerrit plugins implemented as Groovy scripts

Clone this repo:
  1. f4f24b1 Remove BUCK file and update build documentation by David Pursehouse · 2 weeks ago master
  2. 41f24cd Upgrade groovy-all to version 2.4.12 by David Pursehouse · 2 weeks ago
  3. b89f8d0 Remove unnecessarily nested else-clause by David Pursehouse · 2 weeks ago
  4. 8c1af0e Add support for Bazel in Gerrit tree build by Paladox none · 8 months ago v2.14
  5. bc06230 Adapt to Gerrit 2.14 and Java 8 by Luca Milanesio · 11 months ago

Gerrit Groovy Provider Plugin

This plugin provides Groovy runtime environment for Gerrit plugins in Groovy.

To build, link this directory under Gerrit's tree plugins directory, merge the dependencies from external_plugin_deps.bzl into the file of the same name in the plugins directory, and from the root of the gerrit tree run:

  bazel build plugins/groovy-provider

The resulting artifact can be found under:

 bazel-genfiles/plugins/groovy-provider/groovy-provider.jar

To test deploy the review plugin [1] and copy this Groovy Provider plugin under $gerrit_site/plugins directory.

Review plugin in Groovy can be used:

  ssh gerrit review approve I59302cbb
  Approve change: I59302cbb