Gradle for Software Engineers

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

1. Learn how to run Gradle Builds

This section goes through the Gradle core concepts so that you can quickly understand how to invoke tasks, turn on features, apply plugins, add dependencies to your project, and more.

Training level: Beginner
Reading time: 25 minutes

This section covers:

Part 1. Core Concepts
Part 2. Wrapper Basics
Part 3. Command Line Interface Basics
Part 4. Settings File Basics
Part 5. Build Files Basics
Part 6. Dependencies and Dependency Management Basics
Part 7. Tasks Basics
Part 8. Incremental Builds and Build Caching Basics
Part 9. Plugins Basics
Part 10. Build Scan

2. Beginner Gradle Tutorial

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.

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

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

Gradle for Build Engineers

Build engineers that are ready to configure and organize custom build logic should start here.

1. Learn how to write Gradle scripts

This section goes through some Gradle authoring basics so that you can quickly understand how to configure builds, create tasks, and organize logic.

Training level: Intermediate
Reading time: 35 minutes

This section covers:

Part 1. Anatomy of a Gradle Build
Part 2. Structuring Multi-Project Builds
Part 3. Gradle Build Lifecycle
Part 4. Writing Build Scripts
Part 5. Gradle Managed Types
Part 6. Declaring and Managing Dependencies
Part 7. Creating and Registering Tasks
Part 8. Working With Plugins

2. Intermediate Gradle Tutorial

The tutorial will take you from Gradle initialization all the way through registering tasks and the basics of plugins.

Training level: Intermediate
Training time: 65 minutes

The tutorial covers:

Part 1. Initializing the Project
Part 2. Understanding the Build Lifecycle
Part 3. Multi-Project Builds
Part 6. Writing the Settings File
Part 5. Writing Build Scripts
Part 6. Writing Tasks
Part 7. Writing Plugins

Gradle for Plugin Developers

Plugin authors that are ready to write their own plugins and publish it should start here.

1. Learn how to develop Gradle Plugins

This section goes through developing tasks, writing, and publishing plugins.

Training level: Advanced
Reading time: 35 minutes

This section covers:

Part 1. Plugin Introduction
Part 2. Pre-Compiled Script Plugins
Part 3. Binary Plugins
Part 4. Binary Plugin Development
Part 5. Binary Plugin Publishing

2. Advanced Gradle Tutorial

The tutorial will take you from Gradle initialization all the way through creating and publishing a binary plugin.

Training level: Advanced
Training time: 65 minutes

The tutorial covers:

Part 1. Initializing the Project