Consider such a situation: there's a big project, which takes tremendous time to compile and I'm having it's resulting artifacts as separate files (jar).
I want to run the unit tests on this project without compiling and jar-ing project itself, so I need to remove dependency on compileJava
task, but this task is not in the dependsOn
list of test
task.
dependsOn
property of test
task contains only some [file collection]
and if I'm printing this FileCollection.files
, I'm getting the list of files and directories, which include .../build/classes/main
. I think, after removing this entry, I'll get success in removing dependency on compileJava
(as I understood, .../build/classes/main
is just the result of running compileJava
and that's why compileJava
appeared). But I just don't understand, how to remove this entry.
By the way, in this case there's no problem of adding this jar to classpath, so that's not an issue.
I'm using Gradle 1.8. Thanks.