8 Commits

Author SHA1 Message Date
David Ostrovsky
37d719af8c Bazel: Use version check function from bazel-skylib repository
Since version 0.10.0rc1 Bazel started to include version in release
candidate and this broke version check in Bazel Gerrit CI: [1].

bazel-skylib is a project from the Bazel community that exposes utility
rules. Consume working Bazel minimum version check from this repository.
This version parsing machinery was adapted to work with release
candidate version, by omiting rcx part during parsing. See this issue
for more details: [2].

This change also bumps required bazel version to 0.7.0.

[1] https://ci.bazel.build/blue/organizations/jenkins/Global%2Fgerrit/detail/gerrit/345/pipeline
[2] https://github.com/bazelbuild/bazel/issues/4425

Change-Id: Ie3e17ea327c556daa234aeebbc2919be51109e91
2018-01-13 09:37:41 +01:00
Dmitry Lomov
60e3a55960 Allow building gerrit with experimental/unreleased Bazel.
Change-Id: I448dd8c0f42b70870805c3fd6b9a215a3be0fe06
2017-10-25 12:44:10 +02:00
Saša Živkov
0098a0ffb3 Specify min required bazel version
If bazel is too old fail build early with a precise error message.
Idea taken from [1].

[1] 6c2aaacb5b

Change-Id: I5dafd1ab7b88caa19707b68d4a07c3b9ab9005cf
2017-10-09 14:15:35 +02:00
Dave Borowitz
1e93ca366c Update versions to 2.16-SNAPSHOT
I've said before that I don't expect there to be a 2.16, and 3.0 will be
the next version. I still believe that, but here I'm hedging.

Change-Id: I0722d582cfec4d5c08dffc83c24efc34613a345e
2017-10-01 17:17:25 -04:00
Dave Borowitz
3c0499aaf2 Release 2.15-rc0
Change-Id: Ic40a05a5d6d27a007d1cae35f61a96e325aecfdb
2017-10-01 16:21:38 -04:00
David Pursehouse
23fa65a65b Set version to 2.15-SNAPSHOT
Change-Id: I560b77a951558cc25a0fddd436540e9fed87975e
2017-03-23 21:11:23 +09: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
50785fdbb2 Bazel: Publish maven artifacts to local and remote repositories
Currently too big files are published, because some unwanted transitive
dependencies are included in the final artifacts. That will be fixed in
follow-up change by using neverlink option in java_library rule or using
provided_deps attribute that will be addded in future releases of Bazel:
[1].

TEST PLAN:

  $ VERBOSE=1 tools/maven/api.sh install bazel
  $ VERBOSE=1 tools/maven/api.sh install buck

* [1] https://github.com/bazelbuild/bazel/issues/1402

Change-Id: Ie73d4ae34d96be7f97f6329c4c30c814f54688d5
2016-11-03 12:47:24 +00:00