i'm new to gradle. If i'm not using the either doFirst() or doLast(). In which order the lines in a plugin(say) are executed. i can observe that they are not executed sequentially? Can somebody explain the execution flow of a gradle file?
Thanks
The Gradle build lifecycle is documented here.
It can be summarized by "ICE": Initialization, Configuration, Execution.
Your question is focused on Execution. For a single-project build, it is described in section "48.5. Configuration and execution of a single project build" at the above link.
For plugins, the task dependency graph will depend on the plugin specifics. For example, see the Java plugin for a list of its tasks and dependencies.