The spanner-refdb plugin can be built in-tree in Gerrit's /plugins
path.
The plugins/external_plugin_deps.bzl
file will need to be updated to match or contain spanner-refdb/external_plugin_deps.bzl
.
git clone --recursive https://gerrit.googlesource.com/gerrit cd gerrit git clone "https://gerrit.googlesource.com/plugins/spanner-refdb" plugins/spanner-refdb ln -sf plugins/spanner-refdb/external_plugin_deps.bzl plugins/. bazelisk build plugins/spanner-refdb
The output is created in
gerrit/bazel-bin/plugins/spanner-refdb/spanner-refdb.jar