Skip to content

Conflicting Transitive Dependency Versions for Guava and Jsr305 #382

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

Open
MHajoha opened this issue Sep 28, 2021 · 0 comments
Open

Conflicting Transitive Dependency Versions for Guava and Jsr305 #382

MHajoha opened this issue Sep 28, 2021 · 0 comments

Comments

@MHajoha
Copy link

MHajoha commented Sep 28, 2021

There are conflicting versions of Guava and jsr305 among this project's transitive dependencies. Since it is a common practice to enforce that all dependencies converge, this creates the need for exclusions in those projects when using json-schema-validator.

To view the conflicting dependencies, add the following to the build.gradle:

configurations.all {
    resolutionStrategy {
        // Fails the build if dependencies don't converge
        failOnVersionConflict()
    }
}

Then attempt to build the project. The output will be as follows:

Execution failed for task ':compileJava'.
> Could not resolve all dependencies for configuration ':compileClasspath'.
   > Conflict(s) found for the following module(s):
       - com.google.guava:guava between versions 28.2-android and 28.1-android
       - com.google.code.findbugs:jsr305 between versions 3.0.2 and 2.0.1
     Run with:
         --scan or
         :dependencyInsight --configuration compileClasspath --dependency com.google.guava:guava
     to get more insight on how to solve the conflict.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant