Guava: Google Core Libraries for Java

com.google.guava : guava

Guava is a suite of core and expanded libraries that include utility classes, Google's collections, I/O classes, and much more.

Sep 27, 2021
18k usages
43k stars

Add dependency in Maven / Gradle

<!-- https://jmaven.com/dependency/com.google.guava/guava --> 
<dependency>
    <groupId>com.google.guava</groupId>
    <artifactId>guava</artifactId>
    <version>31.0.1-jre</version>
</dependency>

1. Add dependency to a Maven project

Maven: Add the com.google.guava:guava library to the dependencies element of your pom.xml file:

<dependencies>
<dependency>
  <groupId>com.google.guava</groupId>
  <artifactId>guava</artifactId>
  <version>31.0.1-jre</version>
</dependency>
</dependencies>

To install com.google.guava:guava library use the following command:

mvn install

2. Add dependency to a Gradle project

Gradle Groovy DSL: Add the com.google.guava:guava library to the dependencies section of your build.gradle file:

dependencies {
implementation 'com.google.guava:guava:31.0.1-jre'
}

Gradle Kotlin DSL: Add the com.google.guava:guava library to the dependencies section of your build.gradle.kts file:

dependencies {
implementation("com.google.guava:guava:31.0.1-jre")
}

3. Add dependency to a SBT Scala project

Scala: Add the com.google.guava:guava library to your build.sbt file:

libraryDependencies += "com.google.guava" % "guava" % "31.0.1-jre"

4. Add dependency to a Grape project

Grape: Add an annotation com.google.guava:guava library to your groovy script file:

@Grapes(
    @Grab('com.google.guava:guava:31.0.1-jre')
)

Compile Dependencies (0)

Group / Artifact Usage

Provided Dependencies (0)

Group / Artifact Usage

Test Dependencies (0)

Group / Artifact Usage

Recommended for You

Blueshift Android SDK

6 stars

A server-side economy mod/api for Minecraft.

3 stars

ez-util is a lightweight Java tools.

0 stars

More from Group

Guava is a suite of core and expanded libraries that include utility classes, Google's collections, I/O classes, and much more.

18k usages
43k stars

Contains com.google.common.util.concurrent.internal.InternalFutureFailureAccess and InternalFutures. Most users will never need to use this artifact. Its classes is conceptually a part of Guava, but they're in this separate artifact so that Android libraries can use them without pulling in all of Guava (just as they can use ListenableFuture by depending on the listenablefuture artifact).

595 usages

Contains Guava's com.google.common.util.concurrent.ListenableFuture class, without any of its other classes -- but is also available in a second "version" that omits the class to avoid conflicts with the copy in Guava itself. The idea is: - If users want only ListenableFuture, they depend on listenablefuture-1.0. - If users want all of Guava, they depend on guava, which, as of Guava 27.0, depends on listenablefuture-9999.0-empty-to-avoid-conflict-with-guava. The 9999.0-... version number is enough for some build systems (notably, Gradle) to select that empty artifact over the "real" listenablefuture-1.0 -- avoiding a conflict with the copy of ListenableFuture in guava itself. If users are using an older version of Guava or a build system other than Gradle, they may see class conflicts. If so, they can solve them by manually excluding the listenablefuture artifact or manually forcing their build systems to use 9999.0-....

542 usages

Guava testlib is a set of java classes used for more convenient unit testing - particularly to assist the tests for Guava itself.

311 usages
43k stars

Guava is a suite of core and expanded libraries that include utility classes, Google's collections, I/O classes, and much more. This project includes GWT-friendly sources.

78 usages
43k stars
© 2022 JMaven.com