When Gradle's hooks are added in build lifecycle?

前端 未结 1 346
后悔当初
后悔当初 2021-02-01 08:32

In Gradle there are plenty of hooks. But I can\'t understand exactly when they are applied. From the docs I found hooks for the build and for a project:

  • addListene
  • 相关标签:
    1条回答
    • 2021-02-01 09:00

      Looks about right. (I assume the question is when callbacks are executed.) gradle.projectsLoaded needs to go between initialization and configuration phase. gradle.beforeProject happens at certain points during the configuration phase. Check out Gradle in the Gradle Build Language Reference for other callbacks.

      0 讨论(0)
    提交回复
    热议问题