13 Commits

Author SHA1 Message Date
David Pursehouse
8b3324c69e Merge branch 'stable-2.14' into stable-2.15
* stable-2.14:
  Apply buildifier to .bzl files.
  Update Bower to 1.8.2
  Bump commons-io version to 2.2

Change-Id: Ic90865db76a0e34f0f8fef33b83ec7b2fd75c875
2018-07-11 08:35:07 +09:00
Han-Wen Nienhuys
b6a4048986 Apply buildifier to .bzl files.
Buildifier is now also used for formatting .bzl files.

This change was created by running buildifier 0.12 over our source tree.

Change-Id: I9f15112d4fe23e5cec0700cfe47f1ca649f61d2a
2018-07-10 20:38:52 +09:00
David Pursehouse
dcb0d67c93 Merge branch 'stable-2.14' into stable-2.15
* stable-2.14:
  Make zip generation (more) reproducible
  Make _bower_archive rule deterministic

Change-Id: Ic7f059bc53b1a5bb970b8e52708679f9c784c6bf
2018-04-25 08:58:24 +09:00
Han-Wen Nienhuys
ec12294301 Make zip generation (more) reproducible
The 'touch' command uses the system default timezone if none is
supplied. This makes zip files dependent on the timezone of the
generating machine.

Zip by default stores extended attributes (eg. ctime, atime) on Unix
systems. These can be further sources of non-determinism, so switch it
off with --no-extra

Change-Id: I7e102be7368ef339cbaf47524b90688c32a09238
2018-04-25 08:25:31 +09:00
Vladimir Moskva
2d2cf71d20 Rename set to depset in .bzl files
`set` is a deprecated alias of `depset` and will be removed from Bazel
starting from 0.6.

Change-Id: I0d9ca334d7fd32a36c1af4ca6baaed08d1600a9a
2017-10-02 12:31:54 +01:00
David Ostrovsky
e2eed17d37 Bazel: Replace ctx.action with actions#run / actions#run_shell
ctx.action() is deprecated in favor of ctx.actions.run() /
ctx.actions.run_shell(): [1]. See discussion in [2], why we need this.

[1] https://docs.bazel.build/versions/master/skylark/lib/ctx.html#action
[2] https://github.com/bazelbuild/bazel/issues/3589

Change-Id: I11af3afebc0d3c76bb8fb59a790db2e3f3ce982b
2017-08-30 08:49:11 +02:00
Vladimir Moskva
8fb9558ef6 Rename set to depset in .bzl files
`set` is a deprecated alias of `depset` and will be removed from Bazel
starting from 0.6.

Change-Id: I0d9ca334d7fd32a36c1af4ca6baaed08d1600a9a
2017-08-28 15:39:01 +02:00
David Pursehouse
2d08500516 Format .bzl files with Bazel Buildifier
Change-Id: I3ab30565e5ac110a18cbe3d34f76307801c30373
2016-12-11 19:00:21 +09:00
David Pursehouse
fb705488ae Bazel: Allow to specify additional external links for Javadocs
Change-Id: Icb9f7ce751460a7817d73ad1d77a73e9a0a61580
2016-10-25 07:51:02 +02:00
David Pursehouse
d7cb755e73 Bazel: Remove output directories before extracting jars for javadoc
On MacOS the output directories are persisted, which causes errors
when attempting to create them again on subsequent runs.

Explicitly remove the directories before (re)creating them.

Change-Id: Icccd06ae538f72788196c07006f42c48b9d47174
2016-10-24 18:44:31 +09:00
David Pursehouse
b57f6363c6 Bazel: Add javadoc option to prevent warnings from doclint
Change-Id: I78c7335372e1a1cabb16d265cbabc4640a624ab0
2016-10-24 07:05:16 +00:00
David Pursehouse
92100d5e97 Bazel: Fix link to external Javadocs to use Java 8 URL
Change-Id: If4ab6f3ea724eb1a77faacf88b72138f272e7e04
2016-10-24 12:02:11 +09:00
Han-Wen Nienhuys
e703f3a35a Bazel: add java_doc rule
Add javadoc rules for plugin API:

* gerrit-extension-api
* gerrit-plugin-api
* gerrit-acceptance-framework

Note that GWT UI is not covered by Bazel build yet, so that we cannot
offer gerrit-plugin-gwtui:plugin-gwtui-javadoc rule in this change.

TEST PLAN:

  bazel build gerrit-acceptance-framework:acceptance-framework-javadoc
  bazel build gerrit-extension-api:extension-api-javadoc
  bazel build gerrit-plugin-api:plugin-api-javadoc

Change-Id: I60832752010118e33eb6a06529032d86f169ee44
2016-09-19 16:57:16 +02:00