9
Initialisation
Launches the JVM (with proper params)
Analyse the working directory
Reads the settings.gradle file
Creates the Project object(s) that will be used
Compiles, test and add buildSrc to the classpath
Slide 10
Slide 10 text
10
Configuration
Execute all the build.gradle scripts in the project
Create all the Task objects and configure the Project
object(s)
Resolves the tasks dependencies
Slide 11
Slide 11 text
11
Execution
List the Task to run based on the invocation (and their
dependencies)
Execute each of the tasks
Purposes…
◇ Better dependency management
◇ Helper classes / methods
◇ Custom tasks in dedicated classes
◇ Custom plugin
■ Locally versionned with the project
14
Slide 15
Slide 15 text
How does it work?
◇ Works like any module in your project
◇ Compiled and tested before any gradle task
◇ Groovy, Java, Kotlin, …
◇ Any public class / method becomes availble in
gradle scripts
15
Slide 16
Slide 16 text
“ A change in buildSrc causes the whole
project to become out-of-date.
16