Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jar size of Guava dependency - is there a small version?

I just recently upped the version of Guava library from 9 to 10 and noticed quite an increase in the jar file size. 1.5MB just to have some lib to filter collections... (that's really what I ever use it for - but I might want to use more of what it has to offer)

Is there a distribution of Guava that offers just the basics and is not huge? I was looking for something in the range of 50-250 KB not 1.5MB. (or really anything smaller, like 500k would still be okay)

like image 760
Peter Perháč Avatar asked Nov 17 '11 13:11

Peter Perháč


1 Answers

The official position on this is:

We considered this very carefully when we started Guava, and we believe that a single JAR, with a recommendation of ProGuard to size-sensitive applications, is the way to go.

(taken from their issue tracker)

So, no, any version that splits the library into several smaller JARs will not be the official one, and you probably have to compile/prepare it yourself.

like image 100
Kilian Foth Avatar answered Sep 25 '22 09:09

Kilian Foth