Reformat the Bazel build files with the buildifier tool [1].
The style is different for Bazel files. Most notably, indentation level
is 4 spaces instead of 2, and " is used instead of '.
[1] https://github.com/bazelbuild/buildifier
Change-Id: I95c0c6f11b6d76572797853b4ebb5cee5ebd3c98
Among other this version fixed "Compile-time constant expression
overflows" bug, reported by Bazel 0.4.0. Other fixes and improvements
are here: [1].
This upgrade is needed to be able to support Bazel 0.4.0.
[1] https://github.com/google/auto/releases/tag/auto-value-1.4-rc1
Change-Id: I2e792bae1afa276efdf1580b6543fdc0cec6d45c
To run the tests:
bazel test //...
To build the Gerrit plugin API, run:
bazel build gerrit-plugin-api:plugin-api_deploy.jar
To build the Gerrit extension API, run:
bazel build gerrit-extension-api:extension-api_deploy.jar
TODOs:
Licenses
Reduce visibility (all public for now)
Generate HTML Documentation
Core plugins
gerrit_plugin() rule to build plugins in tree and standalone modes
GWT UI (only gwt_module() skylark rule is provided, no gwt_binary())
PolyGerrit UI
WAR
Publish artifacts to Maven Central
Ask Bazel team to add Gerrit to their CI on ci.bazel.io
Contributed-By: Han-Wen Nienhuys <hanwen@google.com>
Change-Id: I9a86e670882a44a5c966579cdeb8ed79b1590de3
We don't need any of the new features, for us this just fixes an
extraneous semicolon in generated code that causes an Eclipse warning.
This library is stable enough that using an RC should be fine.
Change-Id: I6da71c1d32286188e4e92a790cf1dc876c3b4c98
The latest version includes no unrelocated dependencies, so we no
longer need to exclude them as a hack.
Change-Id: I8ca79475fcbf526b0a9bb93996d17421e9bf6063
The upstream jar is now shaded, so direct dependencies are reduced.
However, the shaded jar contains un-relocated versions of Apache
classes, which need to be stripped out and replaced with our own
dependencies.
Change-Id: I0f0c481d75d5cc44fb787624b5bd9e88fd79f790
AutoValue[1] is a lightweight annotation-processor-based library for
implementing classes with simple, obvious value semantics.
Add support for AutoValue to build rules and Eclipse project
generation. Buck does not currently have an officially-supported
interface for specifying annotation processor dependencies[2], so we
have to take the slightly ugly approach of monkey-patching
java_library and java_test to add annotation processor arguments to
each rule that requires annotation processing; hopefully this ugliness
can be reduced in the future.
[1] https://github.com/google/auto/tree/master/value
[2] https://github.com/facebook/buck/issues/85
Change-Id: I8b49d6f9f25d61688b667d964848c6ce106ae4ec