Make chumpdetector use polygerrit_plugin() BUILD rule

Change-Id: Ifba38164868c49c823ec9c2a5598e1b8ef188c2d
Reviewed-on: https://chromium-review.googlesource.com/c/1294774
Reviewed-by: Quinten Yearsley <qyearsley@chromium.org>
2 files changed
tree: 426456a5feda238544bbfef9ac957cb93cbc0e89
  1. BUCK
  2. BUILD
  3. LICENSE
  4. README.md
  5. codereview.settings
  6. src/
README.md

ChumpDetector Plugin for Gerrit

To use with the local testsite

ln -s /path/to/chumpdetector-plugin plugins/chumpdetector
NO_BUCKD=1 buck build plugins/chumpdetector && \
  cp buck-out/gen/plugins/chumpdetector/chumpdetector.jar ../gerrit_testsite/plugins/ && \
  ../gerrit_testsite/bin/gerrit.sh restart

To use with the polygerrit-ui server against live data

mkdir -p polygerrit-ui/app/plugins/chumpdetector
ln -s /path/to/chumpdetector-plugin/src/main/resources/static polygerrit-ui/app/plugins/chumpdetector/static
./polygerrit-ui/run-server.sh -host chromium-review.googlesource.com

You may also need to edit chumpdetectorURL to point directly at chromium-review.googlesource.com instead of being relative.