Everyone has to start somewhere, and if you’re new to Gradle, this is where to begin.

Gradle Installation

If all you want to do is run an existing Gradle build, then you don’t need to install Gradle if the build uses the Gradle Wrapper. This is identifiable by the presence of the gradlew or gradlew.bat files in the root of the build. You just need to make sure your system satisfies Gradle’s prerequisites.

Android Studio comes with a working installation of Gradle, so you don’t need to install Gradle separately when only working within that IDE.

To create a new build or add a Wrapper to an existing build, you will need to install Gradle according to these instructions.

If you need to install Gradle before the tutorial, you can do so in the installation section.

Getting Started with Gradle

The tutorial will take you from Gradle initialization all the way through to utilizing Gradle’s task caching for your basic Java App. No previous experience is necessary but a basic knowledge of Java and Kotlin is nice to have.

Training level: Beginner
Training time: 55 minutes

The tutorial covers:

Part 1. Initializing the Project
Part 2. Running Tasks
Part 3. Understanding Dependencies
Part 4. Applying Plugins
Part 5. Exploring Incremental Builds
Part 6. Enabling the Cache
Part 7. Using Reference Materials