commit | 17bb3dbfe837c2195383827fdf955f5e1e463272 | [log] [tgz] |
---|---|---|
author | David Ostrovsky <david@ostrovsky.org> | Thu Dec 03 23:18:25 2015 +0100 |
committer | David Pursehouse <david.pursehouse@sonymobile.com> | Tue Feb 09 00:40:08 2016 +0000 |
tree | b7473722a4d2d6457b0995eced3d9d37116fd966 | |
parent | 254da3a316212359f37980caace2ebd596595b1f [diff] |
Buck: Allow to consume JGit from its own cell Consume JGit as first third party library from its own cell. Normally the cell is defined as lib/jgit directory. It can be easily replaced with CLI: buck build --config repositories.jgit=path/to/dev/jgit gerrit or tweaking the .buckconfig: [repositories] jgit = path/to/dev/jgit The former approach is sufficient to build and run the test from the CLI, the latter is needed to generate eclipse project. To isolate the JGit rules in its own cell some refactoring was needed. JGit patch for GWT module was moved to gerrit-patch-jgit project, and some symlinks were needed for maven machinery to work. include_defs() doesn't work for now across cell boundaries, and native `buck fetch` feature still has some limitations: [1]. Moreover, excluding paths, unsigning JARs and license linking should be re-implemented on top of it. [1] https://github.com/facebook/buck/issues/602 Test Plan: Normal gerrit build and the build with hijacked JGit cell should work in both standalone (gerrit.war) and Eclipse environment. Note, that to test --config repositories.jgit=path/to/dev/jgit use case, the most recent JGit tree must be used, that contains Buck driven build implementation. Change-Id: I39f2d5d75bbac88804406d6242b5e714f4916926
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 IRC channel on freenode is #gerrit. An archive is available at: echelog.com.
The Developer Mailing list is repo-discuss on Google Groups.
Gerrit is provided under the Apache License 2.0.
Install Buck and run the following:
git clone --recursive https://gerrit.googlesource.com/gerrit cd gerrit && buck 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>]
NOTE: release is optional. Last released package of the version is installed if the release number is omitted.