Posted about 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

Owner of this card:

Avatar
leonidv
Last edit:
about 5 years ago
Posted by leonidv to Leonid's cards
This website uses cookies to improve usability and analyze traffic.
Accept or learn more