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
.
The build script is either a
*.gradle
file in Groovy or a
*.gradle.kts
file in Kotlin.
|
Build scripts
configure
Project
objects and their children.
|