guava icon indicating copy to clipboard operation
guava copied to clipboard

Consider moving immutable support to its own module/jar

Open InputNeuron opened this issue 9 years ago • 4 comments

I'm a BIG fan of immutables in Guava. ImmutableList, ImmutableMap, etc.

However, some packages might not want to swallow ALL of Guava just to provide immutable APIs.

Further, there are issues with Guava versioning.

If we had a guava-immutable module that we can just depend on which ONLY had the immutable collection support this would solve that problem.

InputNeuron avatar Dec 19 '16 22:12 InputNeuron

Further, there are issues with Guava versioning.

What sort of issues are you referring to? How would splitting Guava up into numerous (presumably interdependent) packages make version-hell easier?

See also https://github.com/google/guava/issues/1087

dimo414 avatar Dec 20 '16 02:12 dimo414

The version conflict would be mitigated if guava-immutables package had a different version number.

guava-N could depend on any version of guava-immutables though.

We are on Guava 15 internally due to a broken dependency issue with another package (long story).

InputNeuron avatar Dec 20 '16 02:12 InputNeuron

What about Proguard?

ogregoire avatar Dec 20 '16 11:12 ogregoire

As @dimo414 mentioned, this is a dupe of #1087

ronshapiro avatar Sep 14 '17 00:09 ronshapiro