Bump Closure Compiler version to v20151216

The closure-compiler jar now incudes its Java dependencies.

closure-compiler-externs no longer publishes a sources jar.

Change parse_graph() in Documentation/gen_licenses.py to always exclude
the edge from //lib/codemirror:js to //lib/codemirror:js_minifier.

Change-Id: I6a9160ffdb02347202a2b64c226f00c13cc0e19c
This commit is contained in:
Michael Zhou
2016-01-04 21:30:07 -05:00
parent fbb95cb6d2
commit f4a06114cc
2 changed files with 16 additions and 19 deletions

View File

@@ -56,16 +56,18 @@ def parse_graph():
if target in KNOWN_PROVIDED_DEPS:
continue
if args.partial:
if dep == '//lib/codemirror:js_minifier':
if target == '//lib/codemirror:js':
continue
if target.startswith('//lib/codemirror:mode_'):
continue
if (target == '//gerrit-gwtui:ui_module'
and dep == '//gerrit-gwtexpui:CSS'):
# js_minifier is only used by the build process.
# Skip it, even if --partial is not passed.
if dep == '//lib/codemirror:js_minifier':
if (target == '//lib/codemirror:js'
or target.startswith('//lib/codemirror:mode_')):
continue
if (args.partial
and dep == '//gerrit-gwtexpui:CSS'
and target == '//gerrit-gwtui:ui_module'):
continue
graph[target].append(dep)
r = p.wait()
if r != 0:

View File

@@ -16,7 +16,7 @@ else:
ZIP = 'codemirror-%s.zip' % VERSION
CLOSURE_VERSION = 'v20141120'
CLOSURE_VERSION = 'v20151216'
CLOSURE_COMPILER_ARGS = [
'--compilation_level SIMPLE_OPTIMIZATIONS',
@@ -131,22 +131,17 @@ java_binary(
maven_jar(
name = 'compiler-jar',
id = 'com.google.javascript:closure-compiler:' + CLOSURE_VERSION,
sha1 = '369618bf5a96f73e32655dc48919c0f97558d3b1',
license = 'Apache2.0',
deps = [
':closure-compiler-externs',
'//lib:args4j',
'//lib:gson',
'//lib:guava',
'//lib:protobuf',
],
sha1 = 'b5cd14a356cd9079791ba10b6d9623ef4ae4df6e',
license = 'DO_NOT_DISTRIBUTE',
deps = [':closure-compiler-externs'],
visibility = [],
)
maven_jar(
name = 'closure-compiler-externs',
id = 'com.google.javascript:closure-compiler-externs:' + CLOSURE_VERSION,
sha1 = '247eff337e2737de43c8d963aaaef15bd8cda132',
sha1 = 'c2787d9927cb0825e8389e83fd3e1a798aae09cc',
license = 'Apache2.0',
visibility = [],
attach_source = False,
)