How to avoid testCompile dependencies when "Remap Jars to Gradle Projects" is enabled in Eclipse?

My Gradle Project A depends on Gradle Project B (in my Eclipse workspace). When enabling the “Remap Jars to Gradle Projects” feature, Project A see the testCompile dependencies of project B.

This is not desirable. How can I avoid this?

For example, the .jar published from project B does not contain any transitive testCompile dependencies, not does it contain and binaries from “src/test/java”, but when I use “Remap Jars to Gradle Projects” I get all this.

Please help.