Maven
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>33.5.0-jre</version>
<!-- or, for Android: -->
<version>33.5.0-android</version>
</dependency>
Jar files
Guava requires one runtime dependency, which you can download here:
Javadoc
JDiff
Changelog
- Restored the
Automatic-Module-Name
toguava-android
. (It, unlike,guava-jre
, is not a proper module.) (7a04a8a) - For users of
guava-gwt
: Google has moved off GWT internally. We plan to continue to releaseguava-gwt
for users of GWT and J2CL, but the artifact is no longer tested for GWT-specific issues, and we have limited resources to fix any unexpected issues that might arise. While we do not anticipate any specific problems, we can't guarantee how long support will continue. - Increased our Android
minSdkVersion
to 23 (Marshmallow). This follows the minimum of Google's foundational Android libraries, and we expect it to have no practical impact on users. (5c23347) - Listed the JSpecify annotations as an optional dependency in our OSGi metadata. (2dfd572)
cache
: Improved the handling of exceptions from compute functions inCache.asMap()
. (We do still recommend using Caffeine rather thancom.google.common.cache
.) (087f2c4)collect
: ImprovedIterators.mergeSorted()
to preserve stability for equal elements. (4dc93be)math
: AddedsaturatedAbs
methods toIntMath
andLongMath
. (ed0e518)net
: Addedimage/avif
toMediaType
. (53344ca)testing
: MadeCollectorTester
available to Android users. (294c251)util.concurrent
: AddedStriped.custom
. (1586eb2)