I get the following error when using this on a project that does dependency substitution:
Circular dependency between the following tasks:
:ForceDependencyResolutionPlugin_resolveAllDependencies
\--- :ForceDependencyResolutionPlugin_resolveAllDependencies (*)
Relevant snippet from settings.gradle (it works if I remove this block):
includeBuild(".") {
dependencySubstitution {
substitute module("x") using project(':')
}
}