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:
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.