When the compiler gradle source code, there is an error:Configuration runtime of project testKit is being resolved at configuration time

I download the 2.10 gradle source code,and When I execute command ‘./gradlew build’ the following errors appear.

Script ‘/Users/farmerjohn/Downloads/gradle-2.10/gradle/noDependencyResolutionDuringConfiguration.gradle’ line: 10

  • What went wrong:
    Failed to notify dependency resolution listener.

Configuration runtime of project testKit is being resolved at configuration time.

How can I fix it?