Merge branch 'stable-3.1'

* stable-3.1:
  Replace documentation of gerrit.ui with gerrit.enableGwtUi
  Use the environment variables provided by the GerritCodeReview-plugin
  DeleteZombieCommentsRefsTest: Open RevWalk in try-with-resource
  Documentation: Mention unused_deps with buildifier
  Bazel: Remove bazel version check
  Documentation: Recommend Bazelisk to launch bazel
  Add a pgm to delete dead draft comments refs

Change-Id: I78758c7168b7374b491413dcc7f130df3d9dfd58
This commit is contained in:
David Pursehouse
2020-01-29 18:02:53 +09:00
9 changed files with 479 additions and 74 deletions

View File

@@ -22,12 +22,22 @@ To build Gerrit from source, you need:
* Python 2 or 3
* link:https://github.com/nodesource/distributions/blob/master/README.md[Node.js (including npm),role=external,window=_blank]
* Bower (`sudo npm install -g bower`)
* link:https://docs.bazel.build/versions/master/install.html[Bazel,role=external,window=_blank] directly
or through link:https://github.com/bazelbuild/bazelisk[Bazelisk,role=external,window=_blank]
* link:https://docs.bazel.build/versions/master/install.html[Bazel,role=external,window=_blank] -launched with
link:https://github.com/bazelbuild/bazelisk[Bazelisk,role=external,window=_blank]
* Maven
* zip, unzip
* gcc
[[bazel]]
=== Bazel
link:https://github.com/bazelbuild/bazelisk[Bazelisk,role=external,window=_blank] includes a
link:https://bazel.build/[Bazel,role=external,window=_blank] version check and downloads the correct
`bazel` version for the git project/repository. Bazelisk is the recommended
`bazel` launcher for Gerrit. Once Bazelisk is installed locally, a `bazel`
symlink can be created towards it. This is so that every `bazel` command
seamlessly uses Bazelisk, which then runs the proper `bazel` binary version.
[[java]]
=== Java