Merge remote-tracking branch 'origin/github/rinrinne/dev-3.0' into stable-2.10

* origin/github/rinrinne/dev-3.0:
  Remove unused import and annotation
  Put exception message to logger
  Rename ChangeWorker to EventWorker
  Apply multibinding to Solver
  Rename RabbitMQManager to Manager
  Apply Provider pattern to SessionFactory
  Fix shutdown channel/connection logic
  Fix close logic for session
  Fix shutdown session
  Apply Guice Multibinder to Section injection
  Add Guice multibinding extension library
  Update gradle-shadow plugin to 1.2.1 then fix build.gradle
  Update git ignore pattern
  Some improvements
  Change Solver structure
  Decoupled normalize() from fromConfig()
  Structured configuration classes
  Cleanup codes
  Create some packages then move classes
  Roughly support multi config
  Add MessagePublishers to listen ChangeEvent
  Add dependency: commons-io
  Get plugin name then assume config filename
  Remove unnecessary codes

Change-Id: If41294c035f5bc3cdd658c686134acc30f36e184
tree: 7fbf9e4057e786eb3eb75ba97622e4913e900c64
  1. gradle/
  2. src/
  3. .gitignore
  4. .travis.yml
  5. build.gradle
  6. gradle.properties
  7. gradlew
  8. gradlew.bat
  9. LICENSE
  10. README.md
  11. settings.gradle
README.md

gerrit-rabbitmq-plugin: Gerrit event publish plugin via RabbitMQ

Build Status

Synopsis

This is Gerrit plugin.

This can publish gerrit events to message queue provided by RabbitMQ. Published events are the same as Gerrit stream evnets.

This plugin works on Gerrit 2.8 or later.

Environments

  • linux
    • java-1.7
      • gradle

Build

To build plugin with gradle.

./gradlew build

Using another version API

Now avaliable for Gerrit 2.8.5 only. If you want to use it on another version of Gerrit, please try the below.

./gradlew build -PapiVersion=2.8

Reference

Minimum Configuration

  [amqp]
    uri = amqp://localhost
  [exchange]
    name = exchange-for-gerrit-queue
  [message]
    routingKey = com.foobar.www.gerrit
  [gerrit]
    name = foobar-gerrit
    hostname = www.foobar.com

History

  • 1.4

    • Binary release
    • Add gradle support
    • Remove maven support
  • 1.3

    • Build with Buck
    • Bumped api version to 2.8.3
  • 1.2

    • Fix repository location for gerrit-api
    • Update README
  • 1.1

    • Fix channel handling
    • Add property: monitor.failureCount
    • Update README and documents
  • 1.0

    • First release

License

The Apache Software License, Version 2.0

Copyright

Copyright (c) 2013 rinrinne a.k.a. rin_ne