listenablefuture

listenablefuture

An empty artifact that Guava depends on to signal that it is providing ListenableFuture -- but is also available in a second "version" that contains com.google.common.util.concurrent.ListenableFuture class, without any other Guava classes. 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-9999.0-empty-to-avoid-conflict-with-guava.jar 下载
listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.pom 下载
Apache Maven
<dependency>
  <groupId>com.google.guava</groupId>
  <artifactId>listenablefuture</artifactId>
  <version>9999.0-empty-to-avoid-conflict-with-guava</version>
</dependency>
Gradle Groovy
implementation 'com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava'
Gradle Kotlin
implementation("com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava")
Scala SBT
libraryDependencies += "com.google.guava" % "listenablefuture" % "9999.0-empty-to-avoid-conflict-with-guava"
Groovy Grape
@Grapes(
  @Grab(group='com.google.guava', module='listenablefuture', version='9999.0-empty-to-avoid-conflict-with-guava')
)
Apache Ivy
<dependency org="com.google.guava" name="listenablefuture" rev="9999.0-empty-to-avoid-conflict-with-guava" />
Leiningen
[com.google.guava/listenablefuture "9999.0-empty-to-avoid-conflict-with-guava"]
Apache Buildr
'com.google.guava:listenablefuture:jar:9999.0-empty-to-avoid-conflict-with-guava'