listenablefuture

listenablefuture

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-....
文件下载
文件名 操作
listenablefuture-1.0.jar 下载
listenablefuture-1.0.pom 下载
listenablefuture-1.0-sources.jar 下载
Apache Maven
<dependency>
  <groupId>com.google.guava</groupId>
  <artifactId>listenablefuture</artifactId>
  <version>1.0</version>
</dependency>
Gradle Groovy
implementation 'com.google.guava:listenablefuture:1.0'
Gradle Kotlin
implementation("com.google.guava:listenablefuture:1.0")
Scala SBT
libraryDependencies += "com.google.guava" % "listenablefuture" % "1.0"
Groovy Grape
@Grapes(
  @Grab(group='com.google.guava', module='listenablefuture', version='1.0')
)
Apache Ivy
<dependency org="com.google.guava" name="listenablefuture" rev="1.0" />
Leiningen
[com.google.guava/listenablefuture "1.0"]
Apache Buildr
'com.google.guava:listenablefuture:jar:1.0'