commit | 55b1a6a708f536cf6abb4ab532e0ca95a28d461a | [log] [tgz] |
---|---|---|
author | Marcin Czech <maczech@gmail.com> | Tue Sep 19 16:25:18 2023 +0200 |
committer | Marcin Czech <maczech@gmail.com> | Tue Sep 19 16:25:18 2023 +0200 |
tree | be946be0d7a70641abc5f5c381311193301124e7 | |
parent | b39bd51e82bccb669d791414c7a179ead72e7e71 [diff] |
Remove Maven legacy pom.xml Now that the build is fully working and integrated in Bazel, including the consumption and validation with other implementation plugins, the legacy pom.xml is not needed anymore. Change-Id: I9220a2fc3e2146aa8485efb5ed7c15c4a2f2c62a
Global ref-database interface for use with Gerrit Code Review.
Enables the de-coupling between Gerrit, its libModules and the different implementations of a globally shared ref-database.
The design for a global ref-db interface can be found as part of the multi-site design documentation, where it first originated and was approved by the community.
In order to consume this library, some Guice bindings need to be registered appropriately. More information in the relevant documentation.
Global ref-database expose metrics to measure the global ref-database operation latency. List of the available metrics can be found here.
This libModule is built like a Gerrit in-tree plugin, using Bazelisk.
Create a symbolic link of the repository source to the Gerrit source tree /plugins/global-refdb directory.
Example:
git clone https://gerrit.googlesource.com/gerrit git clone https://gerrit.googlesource.com/modules/global-refdb cd gerrit/plugins ln -s ../../global-refdb . From the Gerrit source tree issue the command bazelsk build plugins/global-refdb
Example:
bazelisk build plugins/global-refdb
The libModule jar file is created under basel-bin/plugins/global-refdb/global-refdb.jar
To execute the tests run bazelisk test plugins/global-refdb/... from the Gerrit source tree.
Example:
bazelisk test plugins/global-refdb/...
Add global-refdb
in the CUSTOM_PLUGINS
section of the tools/bzl/plugins.bzl
.
Example:
CUSTOM_PLUGINS = [ "global-refdb", ]
Run tools/eclipse/project.py
for generating or updating the Eclipse project.