In our case the dependency was revers , and we did it as follows Maybe this gives you a clue?
*sourceSets{* * main{* * java { srcDirs = [] } // no source dirs* * groovy { srcDir 'src/main/java' } // includes all .groovy and .java files under src* * resources{* * srcDir 'src/main/java'* * srcDir 'src/main/resources'* * }* * }* On Mon, Aug 6, 2012 at 12:38 PM, Robert Fletcher < robert.w.fletc...@gmail.com> wrote: > Hi > > I have a project with a single Java class and a whole bunch of Groovy > classes. The Java class contains no reference to any Groovy classes > but several Groovy classes reference the Java class. I found that > compilation would fail unless I keep the Java class under > src/main/groovy. Is that the expected behaviour? I thought that would > only be the case if there are circular dependencies. > > I'm using Gradle 1.1 by the way. The project is here: > https://github.com/robfletcher/betamax > > Regards, > Rob > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > -- -Rajiv www.rajivnarula.com