-
Notifications
You must be signed in to change notification settings - Fork 11.1k
Description
Please upvote this request to signal your interest in having this issue resolved.
Guava Version
33.3.0 and earlier
Description
The split of com.google.guava:listenablefuture:1.0
/com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava
from the com.google.guava:guava
library has been known to cause various dependency resolution issues.
This was discussed at length in the following bugs, but it seems that the issue was never fully resolved:
- Regarding splitting away
ListenableFuture
from Guava #3320 - Is
com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava
really necessary? #7129 - https://issuetracker.google.com/131431257
- https://issuetracker.google.com/300760566: As of 2024/9/2, this issue has 18 votes.
I'm filing this request so Guava authors can settle this issue once and for all.
Example
Please see https://issuetracker.google.com/300760566#comment14.
Current Behavior
com.google.guava:guava:31.1-android
contains theListenableFuture
interface.com.google.guava:guava:31.1-android
depends oncom.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava
, which is empty.com.google.guava:listenablefuture:1.0
also contains theListenableFuture
interface.
Expected Behavior
The com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava
hack should be removed.
Proposal 1 (fix forward the split)
- Remove
ListenableFuture
interface fromcom.google.guava:guava:31.1-android
- Let
com.google.guava:guava:31.1-android
depend oncom.google.guava:listenablefuture:1.0
- Remove
com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava
I'm scoping this request to the android
variant. (The jre
variant can be discussed separately.)
Note that @cpovirk actually once proposed this change at https://issuetracker.google.com/131431257#comment11.
Proposal 2 (revert the split)
- Remove
com.google.guava:listenablefuture:1.0
- Remove
com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava
Packages
com.google.common.util.concurrent
Platforms
Android
Checklist
-
I agree to follow the code of conduct.
-
I can reproduce the bug with the latest version of Guava available.