Add support for Bazel in Gerrit tree build

Change-Id: Icad8def01e08710fb32fbf77c1993455b86d29dd
3 files changed
tree: 3d56104abf8f0c925fbb59ab2784be23f73e7dde
  1. BUCK
  2. BUILD
  3. LICENSE
  4. README.md
  5. external_plugin_deps.bzl
  6. lib/
  7. src/
README.md

Kafka: Gerrit event producer for Apache Kafka

Build Status

Synopsis

This plugins allows to define a distributed stream of events published by Gerrit.

Events can be anything, from the traditional stream events to the Gerrit metrics.

This plugin requires Gerrit 2.13 or laster.

Environments

  • linux
  • java-1.8
  • Buck

Build

Clone or link this plugin to the plugins directory of Gerrit's source tree, and issue the command:

buck build plugins/kafka-events

The output is created in

buck-out/gen/plugins/kafka-events/kafka-events.jar

Minimum Configuration

Assuming a running Kafka broker on the same Gerrit host, add the following settings to gerrit.config:

  [plugin "kafka-events"]
    bootstrapServers = localhost:9092