If you would like to reuse a project's test classes from another project, you can add project("X").test.compile.target to the test.with clause of your project.
This will work for the compile task; but it will fail for the eclipse task. It generates a non-functional eclipse .classpath file
Aha! The solution for this problem is as follows:
Powered by a free Atlassian Confluence Open Source Project License granted to Apache Software Foundation. Evaluate Confluence today.