Circular dependency between testCompiler tasks
<p>I have three test folders for scala, groovy and Java.</p>

<p>In Java I have a class that has a dependency with Groovy and in Groovy I have a class that has a dependency with Scala.</p>

<p>So I add this dependency relationship in my gradle build file:</p>

<pre><code> compileTestGroovy.dependsOn compileTestScala
 compileTestJava.dependsOn compileTestGroovy
</code></pre>

<p>But I´m receiving this error on Gradle</p>

<pre><code>   Circular dependency between the following tasks:
:compileTestGroovy
+--- :compileTestJava
|    \--- :compileTestGroovy (*)
\--- :compileTestScala
     \--- :compileTestJava (*)

(*) - details omitted (listed previously)
</code></pre>

<p>Any idea what I´m doing wrong?</p>

<p>Regards</p>