- Advantages of using Gradle.
- What is Gradle wrapper?
- What is the Gradle build script file name?
- What are the core components of Gradle build script?
- How do I force Gradle to download dependencies always?
- What is Gradle build language?
Gradle provides support for multi-project builds. It allows to use existing Maven/Ivy repositories.
A wrapper is a batch script and it is one of the ways to perform Gradle build. When executed the first time, it automatically downloads Gradle and then initiate the build.
It helps to setup Gradle workspace quickly for first-time users (Zero installation) and also ensure all the developers use the same version of Gradle.
build.gradle.
Project and task are the core compoents. Groovy organizes projects as a list of tasks.
To view the list of available projects, use the command gradle projects, for the tasks list the command is gradle tasks.
you may refresh dependencies in your cache using the command line option --refresh-dependencies. Also deleting the cached files under ~/.gradle/caches would get the next Gradle build to download them again.
Gradle provides a domain specific language (DSL) for describing builds. This build language is available in Groovy and Kotlin. It is build.gradle. Kotlin DSL script files use the .gradle.kts file name extension.