gerrit/.buckconfig
David Ostrovsky 17bb3dbfe8 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
2016-02-09 00:40:08 +00:00

41 lines
850 B
Plaintext

[alias]
api = //:api
api_deploy = //tools/maven:api_deploy
api_install = //tools/maven:api_install
war_deploy = //tools/maven:war_deploy
war_install = //tools/maven:war_install
chrome = //:chrome
docs = //Documentation:searchfree
firefox = //:firefox
gerrit = //:gerrit
gwtgerrit = //:gwtgerrit
headless = //:headless
polygerrit = //:polygerrit
release = //:release
safari = //:safari
soyc = //gerrit-gwtui:ui_soyc
soyc_r = //gerrit-gwtui:ui_soyc_r
withdocs = //:withdocs
[buildfile]
includes = //tools/default.defs
[java]
jar_spool_mode = direct_to_jar
src_roots = java, resources, src
[project]
ignore = .git, eclipse-out
parallel_parsing = true
[cache]
mode = dir
dir = ~/.gerritcodereview/buck-cache/locally-built-artifacts
[test]
excluded_labels = manual
[repositories]
jgit = lib/jgit