Gradle: how to display where a dependency conflict arises

Answering this question is the whole point of the dependencyInsight task. javax.activation:activation:1.1 is pulled in by com.sun.mail:mailapi:1.4.4 and com.sun.mail:smtp:1.4.4. If your own code also depends on javax.activation, you can force your version with compile(“javax.activation:activation:1.0.2”) { force = true }. If not, you can force a version with configurations.all { resolutionStrategy.force “javax.activation:activation:1.0.2” }.

Conflicting library version in a Java Maven project

You can use the tree goal of the Maven dependency plugin to display all transitive dependencies in your project and look for dependencies that say “omitted for conflict”.1 mvn dependency:tree -Dverbose mvn dependency:tree -Dverbose | grep ‘omitted for conflict’ Once you know which dependency has version conflicts, you can use the includes parameter to show … Read more

R: 2 functions with the same name in 2 different packages

You have probably already noticed that the order of loading the packages makes a difference, i.e. the package that gets loaded last will mask the functions in packages loaded earlier. To specify the package that you want to use, the syntax is: chron::is.weekend() tseries::is.weekend() In other words, use packagename::functionname() In addition, if you know that … Read more