Gradle v2.0 fails to refresh projects using IntelliJ

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.

I have exactly the same version of IntelliJ IDEA as well as the same problem (exception).

It appeared when I first used the WAR plugin, resp. wrote this line: apply plugin: ‘war’

I had the same issue. I was using Gradle 2.0. I downgraded to 1.12 and it seemed to fix the issue.

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)

Maybe it helps someone. :slight_smile: /Mikael

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)

______ http://www.pass-4sure.ws

Just to let you guys know. I had the same problem with IntelliJ 13.1.3 and Gradle 2.0…!!!

_____________ kaleem