Gradle v2.0 problems with jetty plugin

When I apply a Jetty plugin in your gradle.build script:

apply plugin: 'jetty'

and the try to refresh Gradle project configuration using “Refresh all Gradle projects” button in IntelliJ I get the following warnings:

Web project import errors
Warning: ':modulename': Web Facets/Artifacts will not be configured
Details: java.lang.ClassCastException: 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 EAP Build #IU-135.1146, built on June 25, 2014

This error persists in IntelliJ IDEA 14 EAP (build IU-138.777) so I presume this time it’s not an IDE problem but rather a problem with Jetty plugin itself. I also have the same problem with another (custom) plugin as well so my guess is version bump from Groovy 1.8 to 2.3 is the culprit here.

I’m not an Eclipse user myself so I haven’t tested this on eclipse but I can if needed for some reason.

I submitted http://youtrack.jetbrains.com/issue/IDEA-126773 and will try to help IJ folks to fix this.