I'm writing a gradle task, which should execute a java application, but I can't get the classpath of my Android project.
My gradle task:
task helloWorld(type: JavaExec) {
classpath = buildscript.configurations.classpath;
main = "com.test.HelloWorld";
}
This doesn't work.
How can I get the classpath (which includes all classes and dependencies)?