I need to use two libraries in my Java Gradle project. Both of these libraries have a dependency to Google Guava (com.google.common
).
The problem is that one library requires Guava 19.0, and the other requires Guava 23.0. The public API of Guava had some breaking changes between 19.0 and 23.0, so I cannot simply force the dependency to be solely Guava 23.0 (e.g. as proposed in this answer).
Is there any way to resolve this issue within Gradle itself?