When I try to refresh the configuration using “Refresh all Gradle projects” button in IntelliJ I get the following error:
Gradle 'projectname' project refresh failed
Error:Cause: org.gradle.api.internal.file.copy.DefaultCopySpec$DefaultCopySpecResolver cannot be cast to org.gradle.api.internal.file.copy.CopySpecInternal
The version of IntelliJ is:
IntelliJ IDEA 13.1.3 Build #IU-135.909, built on May 23, 2014
The error goes away in EAP IU-135.1146 so it’s clearly IntelliJ problem. Posting this just for the heads up, if your an IntelliJ user - either use EAP or wait till next IntelliJ release before updating to gradle v2.0.
Just to let you guys know. I had the same problem with IntelliJ 13.1.3 and Gradle 2.0. I got my problem after adding Gretty to my gradle build.
Anyways, upgrading to the EAP version of 13.1.4 seems to have solved it. I’m now a happy camper with IntelliJ 13.1.4 and Gradle 2.0 (using Gretty go get to Jetty9)