MVN

com.google.guava : listenablefuture

Maven & Gradle

Sep 11, 2018
796 usages
47.9k stars

Guava ListenableFuture only · 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-....

<dependency>
    <groupId>com.google.guava</groupId>
    <artifactId>listenablefuture</artifactId>
    <version>1.0</version>
</dependency>
Copy
pom.xml
Table Of Contents

Latest Version

Choose a version of com.google.guava : listenablefuture to add to Maven or Gradle - Latest Versions:

  • Latest Stable: 1.0

All Versions

Choose a version of com.google.guava : listenablefuture to add to Maven or Gradle - All Versions:

Version Vulnerabilities Updated
9999.0
listenablefuture-9999.0-empty-to-avoid-conflict-with-guava
1.0
listenablefuture-1.0

How to add a dependency to Maven

Add the following com.google.guava : listenablefuture maven dependency to the pom.xml file with your favorite IDE (IntelliJ / Eclipse / Netbeans):

<dependency>
    <groupId>com.google.guava</groupId>
    <artifactId>listenablefuture</artifactId>
    <version>1.0</version>
</dependency>

How to add a dependency to Gradle

Gradle Groovy DSL: Add the following com.google.guava : listenablefuture gradle dependency to your build.gradle file:

implementation 'com.google.guava:listenablefuture:1.0'

Gradle Kotlin DSL: Add the following com.google.guava : listenablefuture gradle kotlin dependency to your build.gradle.kts file:

implementation("com.google.guava:listenablefuture:1.0")

How to add a dependency to SBT Scala

SBT Scala: Add the following com.google.guava : listenablefuture sbt scala dependency to your build.sbt file:

libraryDependencies += "com.google.guava" % "listenablefuture" % "1.0"

Advertisement

Dependencies from Group

Jul 31, 2023
27.1k usages
49k stars
Nov 20, 2018
882 usages
47.9k stars
Sep 11, 2018
796 usages
47.9k stars
Jul 31, 2023
548 usages
43.2k stars
Jul 31, 2023
209 usages
49k stars

Discover Dependencies

Aug 16, 2022
10 usages
13 stars
Jul 31, 2023
47 usages
2.1k stars
Aug 05, 2023
56 usages
36.2k stars
Aug 23, 2023
146 stars
Dec 30, 2018
479 stars
Jun 20, 2022
317 usages
57 stars
Jun 09, 2023
6 usages
823 stars
Mar 01, 2022
194 usages
270 stars
Feb 16, 2023
0 stars
Aug 27, 2023
5 usages
35 stars