Gradle Build
- The initialization phase in the Gradle Build lifecycle finds the root project and subprojects included in your project root directory using the settings file.
- Then, for each project included in the settings file, Gradle creates a Project instance.
- Gradle then looks for a corresponding build script file, which is used in the configuration phase.
Build Script
- Every Gradle build comprises one or more projects; a root project and subprojects.
- A project typically corresponds to a software component that needs to be built, like a library or an application.
- It might represent a library JAR, a web application, or a distribution ZIP assembled from the JARs produced by other projects.
- On the other hand, it might represent a thing to be done, such as deploying your application to staging or production environments.
- Gradle scripts are written in either Groovy DSL or Kotlin DSL (domain-specific language).
- A build script configures a project and is associated with an object of type Project.
- As the build script executes, it configures Project.
참고자료
- https://docs.gradle.org/current/userguide/writing_build_scripts.html