diff --git a/Documentation/gen_licenses.py b/Documentation/gen_licenses.py index 47a132c1a2..f0f45dd43f 100755 --- a/Documentation/gen_licenses.py +++ b/Documentation/gen_licenses.py @@ -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: diff --git a/lib/codemirror/BUCK b/lib/codemirror/BUCK index 6187b3b35a..d55428ceb7 100644 --- a/lib/codemirror/BUCK +++ b/lib/codemirror/BUCK @@ -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, )