Continuing the discussion from Unable to resolve detached configuration with ourself in it:
https://issues.gradle.org/browse/GRADLE-2920 It says the issue was resolved back in 2013, but I had the same problem using 2.13. And the workaround (aka ‘hack’) to temporarily rename the project group and rename it back fixed my problem.