Course
Overview
Gradle is much more than a build tool: it is a true automation framework, programmable in Kotlin, that orchestrates the building, testing, and deployment of most JVM, Android, and Kotlin Multiplatform projects.
Mastering it is the difference between a build you put up with and a build you can count on.
This course dives into the Gradle model: projects, tasks, and the configuration and execution phases. You will learn to share dependency versions and configuration through version catalogs and conventions, to write your own tasks and plugins, and to take advantage of configuration on demand and incremental builds.
By the end of this day, you will be able to structure, factor out, and optimize your projects' builds, from the development workstation all the way to deployment.
Program
Objectives
Understand the Gradle model and the lifecycle of a build.
Share consistent dependency versions with version catalogs.
Factor out your projects' configuration with conventions and custom plugins.
Write efficient Gradle tasks, suited to configuration on demand and incremental builds.
Inspect your builds to diagnose and optimize their performance.
Prerequisites
Knowing the basics of the Kotlin language, or having completed the “The Kotlin Language: Concepts & Tools” course. Some prior experience with Gradle is a plus, but not essential.
Program
D1
Mastering Gradle
Morning
The Gradle model
projects, tasks, and the lifecycle of a build
Build & deployment configuration
compilation, tests, packaging, and publication
Version catalogs
consistent, shared dependency versions
Conventions
share configuration across projects
Custom tasks
write your own Gradle tasks
Afternoon
Custom plugins
share build logic
Configuration on demand
adapt your tasks to lazy configuration
Incremental builds
optimize your tasks for efficient iterative builds
Build inspection
analyze and optimize performance
Settings plugins
customize Gradle initialization
Details
- Format
In-company
- Duration
1 day (7 hrs)
- Audience
Kotlin developers
These trainings might interest you
Our workshops are designed for professionals. Each program is tailored to your team's level and context, whether in-house or as an open session.
Kotlin Multiplatform: Mobile
Share your business logic between Android and iOS without sacrificing the native experience: master the Kotlin Multiplatform toolchain and Swift interoperability to design, distribute, and integrate a robust shared SDK that accelerates your teams.
The Kotlin Language: Concepts & Tools
Discover how Kotlin lets you write less code with fewer errors: its key concepts and tools will quickly make you productive at building safe, readable, and maintainable applications.
Compose: Interfaces in All Their Forms
Embrace declarative thinking to build reactive, maintainable, and performant interfaces. Master state and data flow to share a single UI codebase across Android, iOS, Desktop, and Web.
The Kotlin Language: Expertise for Deploying APIs
Go beyond everyday Kotlin: understand the deep mechanisms of the language and compiler to write idiomatic, safe code, design durable public APIs, and automate code generation.
Kotlin Coroutines: Expert Usage
Go beyond everyday coroutine usage: understand their inner mechanisms, from language primitives to flows, to write reliable, performant, and testable asynchronous code, and choose the right tool for each problem.
Koog: Integrating AI into Your Multiplatform Apps
Go beyond the simple LLM call: use Koog to design AI agents integrated into your Kotlin applications, capable of acting and orchestrating themselves, reliable, cost-efficient, and observable in production.