Gradle plugin for Eclipse 4.4

Hi

I’m using Eclipse 4.4. Gradle integration plugin for Eclipse 4.3.2 worked fine. However Gradle plugin for Eclipse 4.4(and 4.4.1) doesn’t work properly. I installed it from http://dist.springsource.com/release/TOOLS/update/e4.4/

When I try to create Gradle project I see error message “Could not fetch model of type ‘HierarchicalEclipseProject’ using Gradle installation ‘G:\Gradle2’.” There’re following stacktrace in the log:

Caused by: org.gradle.messaging.remote.internal.MessageIOException: Could not write message Build{id=e53b192d-1b19-497c-9473-15e4ba28bcb6.1, currentDir=G:\Eclipse4.4.1} to ‘/127.0.0.1:51968’.

at org.gradle.messaging.remote.internal.inet.SocketConnection.dispatch(SocketConnection.java:115)

at org.gradle.launcher.daemon.client.DaemonClientConnection.dispatch(DaemonClientConnection.java:51)

… 23 more Caused by: java.io.NotSerializableException: org.eclipse.osgi.internal.framework.EquinoxConfiguration$1

at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1184)

at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348)

at java.util.HashMap.internalWriteEntries(HashMap.java:1777)

at java.util.HashMap.writeObject(HashMap.java:1354)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:483)

Same problem here on OS X 10.10 both with Java 7 and 8. Eclipse 4.4.1 with the current default version 3.6.2 of the Gradle IDE plugin gives the error you mention above. Eclipse 4.4.0. with plugin 3.6.1 work for me with all gradle wrapper versions. Only workaround I found so far is to use gradle nightly build 2.2-20140917220013 or later (which is not an option if you have plugins not ready for gradle 2 or for production work).

Raised an issue https://github.com/spring-projects/eclipse-integration-gradle/issues/48

Thanks Andrey! the workaround documented in https://issuetracker.springsource.com/browse/STS-3922 works for me and it sounds like STS362 will deliver a permanent fix soon.

I a workaround–short and sweet–here: http://stackoverflow.com/a/26109153/1316011