Adding a dependsOn to an existing task

Hello,

Gradle provides two ways to configure given tasks and it doesn’t matter where those tasks come from. you can use this notation:

compileJava.dependsOn anotherTask

or if you can use this syntax:

compileJava{
    dependsOn anotherTask
}

The userguide has more details about that at http://gradle.org/docs/current/userguide/userguide_single.html#configureUsingVar

regards, René