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:
For project
So I tried to make representation of figure from the book Gradle in Action (Muschko, Benjamin. "Hooking into the Build Lifecycle." Gradle in Action. N.p.: n.p., 2014. 100. Print.) to receive better idea for the whole picture when and where the hooks are apply?
So when the hook are added and if there other build, project hooks?
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 outGradle
in the Gradle Build Language Reference for other callbacks.