I wanted to find unused dependencies in my project. Is there a feature for this in Gradle, like in Maven?
The project mentioned in the earlier answers seem to be dead. I use gradle-dependency-analyze. Setup is simple:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'ca.cutterslade.gradle:gradle-dependency-analyze:1.0.3'
}
}
apply plugin: 'ca.cutterslade.analyze'
Then do:
$ gradle analyzeDependencies