-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
ref #3079 - update guava for v1 #3122
Conversation
Why does Swagger core depend on guava-android? This conflicts with our server application, which (of course) depends on guava-jre. |
as 1.5 supports Java 1.7, it reference |
How it's possible to exclude this guava-android transitive dependency from build.gradle ?
and here dependency tree:
|
Update on previous question: I've found the change that guava maintainers does, more info on guava and in particular: google/guava#2914 |
This is one of the possibilities:
There are other ways that I prefer in this case: https://docs.gradle.org/current/userguide/customizing_dependency_resolution_behavior.html#sec:dependency_substitution_rules
@frantuma answered that already, and he is right:
guava-jre requires Java 1.8. If swagger-core would depend on guava-jre, this would make swagger-core require Java 1.8. Because Swagger 1.* promises to be compatible with Java 1.7, depending on guava-jre is not an option. |
No description provided.