Wednesday, January 1, 2020



What is Gradle?

Gradle is an advanced build system to build software. It is used to build, automate, and distribute software. We can compile, package, test, deploy, sign, and distribute an Android App using Gradle. Gradle automates and manages the complete build process. Gradle with Android plugin configures the processes and the configurable settings to build the App. Build Tool kit is used to build the App with Gradle. These build Tools get updated automatically if we are using Android Studio. However, we can build an Android App without Android Studio using the command line but the updating of these build tools needs to be done manually.

How Gradle is made?

Gradle is an advanced build tool based on Groovy programming language. Apache Ant and Maven are the other build tools those are used Java applications, and Gradle is a successor of these tools, and combines all the good parts of these tools, and overcomes the drawbacks of Ant and Maven.

With other improvements, the Gradle uses DSL(Domain-specific language) on the top of them.

  • Apache Ant is flexible and powerful. It provides full control.
  • Apache Maven is easy to use, life cycle, extensible, and scalable.
  • Gradle also uses Ivy for dependency management.
  • Gradle applies convention over configuration.

 DSL is small language to address very specific problems.

Projects and Tasks

Gradle basically has two components: Projects and tasks.
The task is the representation of any specific atomic job.
A project is created by putting several tasks together. It may create a Jar or deploy an application on the server.