Gradle 2.5 RC2 - Duplicate JRE_CONTAINER classpathentry generated by the eclipse plugin

When running the eclipse task, the file .classpath generated contains 2 entries for JRE_CONTAINER which causes Eclipse :

     <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER" exported="true"/>
    <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>

With the eclipse-wtp plugin, the same also happens to the web container:

    <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER" exported="true"/>
    <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container" exported="true"/>
    <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
    <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>

Deleting the entries with the attribute ‘exported’ resolves the Eclipse errors

does running “gradle cleanEclipse eclipse” solve this issue for you?

Thank you René. This solved the issue.