Eclipse sourcepath set to non-source jar for IVY dependencies

When I use the eclipse plugin, the generated .classpath file has sourcepath values that point to the class jar file, not the source jar file:

I’m using IVY, and both the .jar and the src.jar files exist in the same directory in the ivy repo:

org.apache/log4j

org.apache/log4j/1.2.15

org.apache/log4j/1.2.15/ivy-log4j-1.2.15.xml

org.apache/log4j/1.2.15/log4j-1.2.15.src.jar

org.apache/log4j/1.2.15/log4j-1.2.15.jar

org.apache/log4j/1.2.15/log4j-1.2.15.javadoc.jar

org.apache/log4j/1.2.15/log4j-1.2.15.native.zip

org.apache/log4j/1.2.15/log4j-ntdll-1.2.15.src.jar

In my .gradle cache, the src.jar file is in a separate directory from the .jar file, with different checksums:

.gradle/caches/modules-2/files-2.1/org.apache/log4j/1.2.15

.gradle/caches/modules-2/files-2.1/org.apache/log4j/1.2.15/6b78b681e16012abbee54e20e24de12bea8a5f25

.gradle/caches/modules-2/files-2.1/org.apache/log4j/1.2.15/6b78b681e16012abbee54e20e24de12bea8a5f25/log4j-1.2.15.src.jar

.gradle/caches/modules-2/files-2.1/org.apache/log4j/1.2.15/7fc53cc571b3b03ddd4330f6baa4db7d007b94c2

.gradle/caches/modules-2/files-2.1/org.apache/log4j/1.2.15/7fc53cc571b3b03ddd4330f6baa4db7d007b94c2/ivy-1.2.15.xml

.gradle/caches/modules-2/files-2.1/org.apache/log4j/1.2.15/cfeb3b5c3846b5a95c022c0a56801255bc587f9d

.gradle/caches/modules-2/files-2.1/org.apache/log4j/1.2.15/cfeb3b5c3846b5a95c022c0a56801255bc587f9d/log4j-ntdll-1.2.15-src.jar

.gradle/caches/modules-2/files-2.1/org.apache/log4j/1.2.15/f0a0d2e29ed910808c33135a3a5a51bba6358f7b

.gradle/caches/modules-2/files-2.1/org.apache/log4j/1.2.15/f0a0d2e29ed910808c33135a3a5a51bba6358f7b/log4j-1.2.15.jar

Is the caching causing the problem? If so, how can I work around it?

Thanks!