Gradle. Attach task to build lifecycle

Posted almost 10 years ago. Visible to the public. Linked content.

It's easy. Just add to somewhere after your task definition:
processTestResources.dependsOn recreateDatabase

  • processTestResource - default task (phase of build lifecycle)
  • recreateDatabase - your custom task, that will be called before processTestResource
Last edit
Almost 10 years ago
Posted by leonidv to Leonid's cards (2013-06-15 17:35)