11 Commits

Author SHA1 Message Date
David Ostrovsky
fdbfcad77d Remove Buck based build
Bug: Issue 5302
Change-Id: I6e860446ef30ff0ad1c7c49fc0e39d39d921820b
2017-01-23 12:44:58 +00:00
David Ostrovsky
fa18907d7f Bazel: Reformat build files
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
2016-12-07 11:33:07 +00:00
David Ostrovsky
d7dc720738 Bump auto-value to 1.4-rc1
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
2016-11-03 23:23:19 +01:00
Yuxuan 'fishy' Wang
75b98f77d9 bazel: add license to appropriate lib/ targets
This is to prepare for implementing genlicenses rule in bazel.

Change-Id: I60d79d5b53f9dd05c9f9ebfe6e6f658604c5a037
2016-09-26 16:42:38 +08:00
Edwin Kempin
b644ff8fcf Merge "Implement Bazel build" 2016-06-24 10:51:33 +00:00
David Ostrovsky
b81b4f75ae Implement Bazel build
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
2016-06-14 21:12:02 +02:00
Dave Borowitz
4ae5ed86b5 Update auto-value to 1.3-rc1
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
2016-06-13 12:39:39 -04:00
David Ostrovsky
383ada8a86 Bump auto-value version to 1.2
The latest version includes no unrelocated dependencies, so we no
longer need to exclude them as a hack.

Change-Id: I8ca79475fcbf526b0a9bb93996d17421e9bf6063
2016-05-24 14:42:08 +00:00
Dave Borowitz
a92aa55115 Update AutoValue to 1.1
Includes new support for builders.

Change-Id: Id3f73dd1b3f0fcb9c1f9c1e866639f8b65d4d4b3
2015-08-28 09:54:52 +09:00
Dave Borowitz
c87d29ec16 Update AutoValue to 1.0
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
2015-01-22 12:15:18 -08:00
Dave Borowitz
08180de4de Support AutoValue
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
2014-11-08 08:31:08 -08:00