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
leonidv over 8 years ago
This website uses short-lived cookies to improve usability.
Accept or learn more