'Detecting conflicting classes in classpath with Gradle
I accidentally found that my project includes com.sun.xml.txw2.output.IndentingXMLStreamWriter twice:
- via
com.sun.xml.bind:jaxb-core:2.3.0.1 - via
org.glassfish.jaxb:txw2:2.3.2
com.sun.xml.bind:jaxb-core is declared as original dependency and org.glassfish.jaxb:txw2 comes as a transitive dependency for com.sun.xml.ws:rt. As a solution I should remove com.sun.xml.bind:jaxb-core.
That brings the question: how can I detect that same classes are in different JARs on classpath with Gradle?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
