According to that plugin’s README, it looks like you need to have apply plugin: java
before applying that plugin.
Try this and please let us know if it works for you — or not:
initscript {
repositories {
jcenter()
}
dependencies {
classpath "ca.cutterslade.gradle:gradle-dependency-analyze:1.3.0"
}
}
allprojects {
apply plugin: 'java'
apply plugin: ca.cutterslade.gradle.analyze.AnalyzeDependenciesPlugin
analyzeClassesDependencies {
// Set to true to print a warning rather than fail the build if the dependency analysis fails
justWarn = true
}
analyzeTestClassesDependencies {
// Set to true to print a warning rather than fail the build if the dependency analysis fails
justWarn = true
}
}
...
Just an aside: Is there a particular reason why you need the nested repositories{ repositories {...} }
blocks?