Posted almost 5 years ago. Visible to the public.

Gradle. Attach task to build lifecycle

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

Author of this card:

Avatar
leonidv
Last edit:
almost 5 years ago
Posted by leonidv to Leonid's cards