question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

compiler.jar size is 40% larger, includes copy of Apache Ant

See original GitHub issue

According to the message at [1], future versions of Closure Compiler binaries will no longer distributed from https://dl.google.com/closure-compiler/ URLs. When comparing the last published version in that endpoint at [2], with the one from NPM there is a substantial 8.3MB->12MB (40%) increase in the compiler.jar size.

Compare with the following commands:

wget https://dl.google.com/closure-compiler/compiler-20200719.tar.gz
tar xvfz compiler-20200719.tar.gz
ls -lah closure-compiler-v20200719.jar # 8.3MB

whereas the NPM version

npm install --no-bin-links --only=prod google-closure-compiler
ls -lah node_modules/google-closure-compiler-java/compiler.jar # 12MB

Is this increase expected?

[1] https://github.com/google/closure-compiler/wiki/Binary-Downloads [2] https://dl.google.com/closure-compiler/compiler-20200719.zip

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:11 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
evmarcommented, Oct 14, 2020

Thanks for looking, that does seem wrong. We’ll leave this bug open, but we are pretty stretched for resources, so it’s at the end of a long list of other bugs (that we’d also like to fix someday…).

0reactions
L3P3commented, Dec 25, 2020

Congratulations, now we have renamed (shaded) the Ant files in the output so you won’t see why the jar file size is growing into infinity due to dependency hell. Rules out some further creative closure compiler use-cases. Or did I miss something? 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

External Tools and Tasks - Apache Ant
This page lists external resources for Apache Ant: Tasks, Compiler Implementations, IDE integration tools, Source Control Systems, Loggers, ...
Read more >
Ant is using wrong java version - Stack Overflow
Just had this issue, it happened because I'd first added the build file to the ant-view when the default JRE was 1.6. There...
Read more >
Apache Ant - the Java Workshop
In order to use Apache Ant you will need to understand a little about XML ... You cannot build a jar without first...
Read more >
Apache Ant - Mustafa Adel Elnagar - Google Sites
Apache Ant is a software tool for automating software build processes. ... The jar target lists the compile target as a dependency. This...
Read more >
O'Reilly Ant The Definitive Guide.pdf - gvSIG Association
a JAR file and copy some other files around to make a distributable version ... Compilation of all Java™ source files is no...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found