Intellij sync complains about groovy.lang.MissingMethodException on gradle api class method

Intellij sync complains

groovy.lang.missingMethodException: no signature of method: org.gradle.api.internal.artifacts.ivyservice.resolutionstrategy.DefaultResolutionStrategy.eachDependency() is applicable for argument types: (build_yadi_yadi_ya_closure14).

It then suggests a possible solution of eachDependency(org.gradle.api.Action).

I do not call this function anywhere in my code. can someone please assist?

This issue seems to be happening in the latest EAP release of Intellij:

Here is the issue: http://youtrack.jetbrains.com/issue/IDEA-125592