commit | 2cd5b7470897796b91488b57333d542a325a8276 | [log] [tgz] |
---|---|---|
author | David Ostrovsky <david@ostrovsky.org> | Sun Oct 06 00:13:58 2019 +0200 |
committer | David Pursehouse <dpursehouse@collab.net> | Mon Feb 17 08:20:25 2020 +0900 |
tree | 537936a57c043279b2eac121024d21d626ba869c | |
parent | 17ef12713b76b75a31fdf03b80bbd60f21ee5d0b [diff] |
Bazel: Remove superfluous dependencies flagged by unused_deps Bazel buildtools project includes in addition to buildifier also unused deps and buildozer utilities, that detect unused dependencies and fix them by applying the removal to the build files. This change is created by installing unused_deps from buildtools@HEAD and running: $ unused_deps //... and applying the suggested modifications. One side effect of this clean up, is that some plugins might need to be adapted. Particularly, j.c.g.g.server.audit:audit rule excessively added unused dependencies, among other lucene, and the audit rule is included in j.c.g.g.testing:gerrit-test-util rules and thus inherited by the core and plugins testing code. The correct way to do it, is to add lucene as runtime dependency instead. Another side effect is that //prolog:gerrit-prolog-common is now removed from j.c.g.g.httpd.init:init rule (as it is unused there). Given that init rule is a root for gerrit.war gathering machinery, the prolog predicates would be missing in the final build artifact. To rectify, add prolog predicates in addition to the init rule to the gerrit.war gathering machinery. Change-Id: Ib3e6c218ffc6a85f31e8a1192cdd60c759cbd68e
Gerrit is a code review and project management tool for Git based projects.
Gerrit makes reviews easier by showing changes in a side-by-side display, and allowing inline comments to be added by any reviewer.
Gerrit simplifies Git based project maintainership by permitting any authorized user to submit changes to the master Git repository, rather than requiring all approved changes to be merged in by hand by the project maintainer.
For information about how to install and use Gerrit, refer to the documentation.
Our canonical Git repository is located on googlesource.com. There is a mirror of the repository on Github.
Please report bugs on the issue tracker.
Gerrit is the work of hundreds of contributors. We appreciate your help!
Please read the contribution guidelines.
Note that we do not accept Pull Requests via the Github mirror.
The Developer Mailing list is repo-discuss on Google Groups.
Gerrit is provided under the Apache License 2.0.
Install Bazel and run the following:
git clone --recurse-submodules https://gerrit.googlesource.com/gerrit cd gerrit && bazel build release
The instruction how to configure GerritForge/BinTray repositories is here
On Debian/Ubuntu run:
apt-get update & apt-get install gerrit=<version>-<release>
NOTE: release is a counter that starts with 1 and indicates the number of packages that have been released with the same version of the software.
On CentOS/RedHat run:
yum clean all && yum install gerrit-<version>[-<release>]
On Fedora run:
dnf clean all && dnf install gerrit-<version>[-<release>]
Docker images of Gerrit are available on DockerHub
To run a CentOS 7 based Gerrit image:
docker run -p 8080:8080 gerritforge/gerrit-centos7[:version]
To run a Ubuntu 15.04 based Gerrit image:
docker run -p 8080:8080 gerritforge/gerrit-ubuntu15.04[:version]
NOTE: release is optional. Last released package of the version is installed if the release number is omitted.