google /guava

Google core libraries for Java

★ 51,927⑂ 11,247👁 2,317⑃ 3,746● 3,691▤ 62
JavaApache-2.0Created 2014-05-29guava.dev/
Download: 33.8.033.8.0 ↓33.8.02026-11-02
+3
Daily
+8
Weekly
+10
Monthly
51,927
stars
11,247
forks
2,317
watchers
3,746
prs
3,691
issues
62
releases

README

Guava: Google Core Libraries for Java







Guava is a set of core Java libraries from Google that includes new collection
types (such as multimap and multiset), immutable collections, a graph library,
and utilities for concurrency, I/O, hashing, primitives, strings, and more! It
is widely used on most Java projects within Google, and widely used by many
other companies as well.



Guava comes in two flavors:

   The JRE flavor requires JDK 1.8 or higher.
   If you need support for Android, use
    the Android flavor. You can
    find the Android Guava source in the [android directory].

[android directory]: https://github.com/google/guava/tree/master/android

 Adding Guava to your build

Guava's Maven group ID is com.google.guava, and its artifact ID is guava.
Guava provides two different "flavors": one for use on a (Java 8+) JRE and one
for use on Android or by any library that wants to be compatible with Android.
These flavors are specified in the Maven version field as either 33.8.0-jre or
33.8.0-android. For more about depending on Guava, see
[using Guava in your build].

To add a dependency on Guava using Maven, use the following:

xml

  com.google.guava
  guava
  33.8.0-jre
  
  33.8.0-android



To add a dependency using Gradle:

gradle
dependencies {
  // Pick one:

  // 1. Use Guava in your implementation only:
  implementation("com.google.guava:guava:33.8.0-jre")

  // 2. Use Guava types in your public API:
  api("com.google.guava:guava:33.8.0-jre")

  // 3. Android - Use Guava in your implementation only:
  implementation("com.google.guava:guava:33.8.0-android")

  // 4. Android - Use Guava types in your public API:
  api("com.google.guava:guava:33.8.0-android")
}


For more information on when to use api and when to use implementation,
consult the
Gradle documentation on API and implementation separation.

 Snapshots and Documentation

We no longer publish binary snapshot releases to Sonatype's Maven Central, only
versioned releases.

We continue to publish snapshot documentation
([API Javadoc][guava-snapshot-api-docs] and
[API Diffs][guava-snapshot-api-diffs]), and we encourage you to refer and link
to the snapshot Javadoc rather than to that of specific releases.

An easy way to get to the snapshot Javadoc is to open
guava.dev/api. You can also jump right to a specific
class by appending the class name to guava.dev. For example,
guava.dev/ImmutableList!

 Learn about Guava

-   Our users' guide, [Guava Explained]
-   A nice collection of
    other helpful links

 Links

-   GitHub project
-   Issue tracker: Report a defect or feature request
-   StackOverflow: Ask "how-to" and "why-didn't-it-work" questions
-   guava-announce: Announcements of releases and upcoming significant changes
-   guava-discuss: For open-ended questions and discussion

 IMPORTANT WARNINGS

1.  APIs marked with the @Beta annotation at the class or method level are
    subject to change. They can be modified in any way, or even removed, at any
    time. If 

Top issues

Latest release

33.8.0 v33.8.0 2026-11-02
Maven

xml

  com.google.guava
  guava
  33.8.0-jre
  
  33.8.0-android



 Jar files

-   33.8.0-jre.jar
-   33.8.0-android.jar

Guava requires one runtime dependency, which you can download here:

-   failureaccess-1.0.3.jar

 Javadoc

-   33.8.0-jre
-   33.8.0-android

 JDiff

-   33.8.0-jre vs. 33.7.2-jre
-   33.8.0-android vs. 33.7.2-android
-   33.8.0-android vs. 33.8.0-jre

 Changelog  

- collect: Enhanced HashBiMap and LinkedHashMultimap.ValueSet to defend against hash flooding (forthcoming CVE-2026-118042). (7cd44b3506)
- collect: Accidentally chang

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON