Understanding Gradle Processes.
How Gradle Executes Scripts
- Gradle reads the script file.
- Creates a Project Object and configure it (set up data).
- Finally set of tasks to be executed is determined and executed.
We can project object in Gradle script with the variable name project. We can set the project description like this,
setDescription(“My First Gradle Script”) or project.setDescription(“My First Gradle Script”)
Lets make it simple. Project ( has one or more tasks ), Task is made up of actions.
println ‘Running first’