Allows the load Gerrit plugins implemented as Groovy scripts

Clone this repo:
  1. 458d76a Add deprecation notice by Luca Milanesio · 5 days ago master
  2. 5bf6a7d Adapt to PluginContentScanner.entries() on stable-3.6 by Luca Milanesio · 3 years, 5 months ago
  3. cabc4d1 Replace bazel-genfiles with bazel-bin in documentation by David Pursehouse · 6 years ago stable-2.16 stable-3.0 stable-3.1 stable-3.2 stable-3.3 stable-3.4 stable-3.5 v3.3.0
  4. 5a87362 GroovyPluginProvider: Adjust to changed constructor of ServerPlugin by David Pursehouse · 7 years ago v2.16 v3.0
  5. 235025d Format all Java files with google-java-format by David Pursehouse · 7 years ago stable-2.14 stable-2.15

DEPRECATION NOTICE

GerritForge has decided to change the license to BSL therefore the Apache 2.0 version of this plugin is deprecated. The recommended version of the groovy-provider plugin is on GitHub and the development continues on GerritHub.io.

Gerrit Groovy Provider Plugin (DEPRECATED)

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-bin/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