`gradle eclipse` generates duplicate classpathentry in Eclipse's `.classpath` with gradle >= 2.6

Thanks so much for your help. Really appreciated.

While this fixes the issue, it causes gradle check to fail with

:smack-experimental:compileTestJava
/home/flo/data/code/smack/smack-experimental/src/test/java/org/jivesoftware/smackx/carbons/CarbonTest.java:21: error: package org.jivesoftware.smack.test.util does not exist
import static org.jivesoftware.smack.test.util.CharsequenceEquals.equalsCharSequence;
                                              ^
/home/flo/data/code/smack/smack-experimental/src/test/java/org/jivesoftware/smackx/carbons/CarbonTest.java:21: error: static import only from classes and interfaces
import static org.jivesoftware.smack.test.util.CharsequenceEquals.equalsCharSequence;
^
2 errors
:smack-experimental:compileTestJava FAILED

So the code from smack-core/src/test/java is not available to smack-experimental test runtime. I believe that is why I added the dependency this way in the first place.

How can I fix this too?