gerrit/polygerrit-ui/app
David Ostrovsky ac88bd0fa8 PolyGerrit: Make ES6 to ES5 transpilation actually work
Bump rules_closure version to this commit[1], that allows us to pass
--force_inject_library=es6_runtime to closure compiler, that fixes
missing injection of ES6 dependency with optimization level whitespace.

One side effect of this change: because of the recently made change in
rules_closure rules of how the external dependencies are consumed, we
cannot reuse some common dependencies that were already fetched during
gerrit build and must re-fetch them again, most notably:

* asm
* gson
* guava
* guice
* soy

The bad news here is, that re-fetching takes place with rules_closure's
java_import_external rule, that is not using our own download_file.py
utility and thus the artifacts are not cached in ~/.gerritcodereview
directory, so that when the build is repeated on the same machine but on
different clone of gerrit repository all rules_closure dependencies
are going to be re-fetched again.

Another complication of re-fetching is that the different versions of
the artifacts are now fetched: e.g. Gerrit is using guava 21, and
closure rule is using guava 20. The reason why we don't have the
collision here is because gerrit mounts this dependency under @guava
directory, whereas rules_closure is using canonical artifact name, so
that we get:

* external/com_google_guava/guava-20.0.jar # fetched by rules_closure
* external/guava/jar/guava-21.0.jar # fetched by gerrit

Test Plan:

1. conduct ES6 modification, e.g. apply this CL: [2]
2. run bazel build gerrit
3. verify that transpiled code actually work

[1] f68d4b5a55
[2] https://gerrit-review.googlesource.com/105104

Bug: Issue 6110
Change-Id: I3f3adf8ce5e613d45d1d0684b823e48e68a14080
2017-05-15 17:00:02 +09:00
..
behaviors Use 'Merge list' as display name for /MERGE_LIST 2017-05-08 10:41:59 +09:00
elements Fix Closure errors in PolyGerrit 2017-05-15 17:00:01 +09:00
scripts Remove unnecessary HTML escaping 2017-01-30 17:28:57 -08:00
styles Remove hint of underline from mobile subject 2017-02-24 13:09:35 -08:00
test Fix PolyGerrit URLs to support prefixed URL 2017-04-19 09:33:58 +00:00
.gitignore Ignore the polygerrit plugins directory 2017-02-10 10:57:29 -08:00
BUILD PolyGerrit: Make ES6 to ES5 transpilation actually work 2017-05-15 17:00:02 +09:00
favicon.ico Add a Retina (2x) resolution version to the default gerrit favicon. 2017-04-01 11:51:30 +00:00
index.html Use anonymous origin for gr-app.js 2017-02-13 10:14:49 -08:00
robots.txt Add the skeleton of a new UI based on Polymer, PolyGerrit 2015-11-09 22:01:28 +00:00
run_test.sh Don't hardcode /bin/bash 2017-03-03 08:12:45 -06:00
wct_test.sh Remove Buck based build 2017-01-23 12:44:58 +00:00