I am trying to do a second compilation, actually the key is I'm trying to have two different classes folders in 1 projects
fd = file('target/tool/classes') compile { compile('myProj/src/tool/java').into(fd) fd.invoke } With the above I get a cyclic dependency Use case for this is * Packaging API separate from Implementation * GPL'd driver code separate to server So I package API in one jar and everything else in another I could use another project but it is not a huge number files but enough to want to avoid filters. is saw http://buildr.markmail.org/search/?q=list%3Auser+compile+#query:list%3Auser%20compile%20+page:1+mid:mwjwxh2fxu7xhjln+state:results but didn't understand it. tnx p