Can I alter the tasks executed by 'gradle build'


(Edd Grant) #1

I have a Java/War project which has 2 custom tasks defined, I want these tasks to run when I execute ‘gradle build’. Is there anyway I can tell Gradle to do this?

Cheers,

Edd


(René Groeschke) #2

hey edd, you can manually configure the build task to depend on those two tasks:

build.dependsOn custom1, custom2

cheers, René