Currently getting the classpath for the compile and test tasks is not straightforward requiring something like the following:
1) GUtil.addLists(<task>.classpathConverter.createFileClasspath(project.rootDir,> <task>.unmanagedClasspath),compile.dependencyManager.resolveTask(<task>.name)
The proposal here is to add a convenience method getClasspath that would return the classpath as a list of files.
Attached is a patch which makes the necessary changes including new unit tests. The implementation was done by extracting the GUtil.addLists call into a public method.
I do not consider myself an experienced developer <grin>. Feedback is always welcome