New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
guava
/ listenablefuture
dependency resolution error (since Quarkus 3.3.0)
#35499
Comments
I see the flattened BOM contains: <dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>32.1.1-jre</version>
<exclusions>
<exclusion>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
</exclusion>
<exclusion>
<groupId>com.google.guava</groupId>
<artifactId>listenablefuture</artifactId>
</exclusion>
</exclusions>
</dependency> cc @aloubyansky |
I have a similar issue with a very simple project where you add the Here is the link to generate the project on code.quarkus.io I have the feeling that as soon as you have the 2 BOMs (and one project like dependencies {
implementation enforcedPlatform("${quarkusPlatformGroupId}:${quarkusPlatformArtifactId}:${quarkusPlatformVersion}")
implementation enforcedPlatform("${quarkusPlatformGroupId}:quarkus-google-cloud-services-bom:${quarkusPlatformVersion}")
implementation 'io.quarkiverse.googlecloudservices:quarkus-google-cloud-bigquery'
//...
} The command
Is failing immediately Gradle failure
Checking the dependency tree for the problematic configuration:
All the guava dependency are failing Details
This seems to be a known issue in the guava project: google/guava#6642 And the suggested conflict resolution does the trick: configurations.all {
resolutionStrategy.capabilitiesResolution.withCapability("com.google.collections:google-collections") {
select("com.google.guava:guava:0")
}
// and/or
resolutionStrategy.capabilitiesResolution.withCapability("com.google.guava:listenablefuture") {
select("com.google.guava:guava:0")
}
} From the release notes https://github.com/google/guava/releases/tag/v32.1.0#user-content-overlap |
@jmini thanks a lot for posting this very useful information! |
Seems like this is no longer an issue w/ 3.6.3. |
Describe the bug
When building the Nessie Quarkus server with Gradle, the build fails with a dependency resolution error, which manifests in the following error message (looks a little different depending on the Nessie module being built). This behavior's new in Quarkus 3.3.0 (worked fine with 3.2.x).
I haven't investigates why exactly that happens, but it seems that somehow
com.google.guava:listenablefuture:1.0
gets pulled in whilecom.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava
- and both via a GradleenforcedPlatform
(at least, that's what I suspect).Cannot select module with conflict on capability 'com.google.guava:listenablefuture:1.0' also provided by [com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava(...)]
As a workaround, I've added these snippets to the relevant build scripts:
Not sure whether this issue actually belongs to "core Quarkus" or rather "Quarkiverse/Google Cloud Services" (if that's the "offender").
Expected behavior
No response
Actual behavior
How to Reproduce?
git clone https://github.com/projectnessie/nessie.git
git checkout renovate/quarkus
renovatebot
(removing my workaround)./gradlew :nessie-quarkus:quarkusBuild
Output of
uname -a
orver
No response
Output of
java -version
No response
GraalVM version (if different from Java)
No response
Quarkus version or git rev
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: