What you'll learn:
- The fundamental Gradle concepts
- How to structure Gradle projects - efficiently to work with and maintainable
- Understanding the Gradle DSL (Kotlin and Groovy variant)
- Gradle build configuration: Settings File, Build Files and Convention Plugins
- Gradle build execution: Tasks, Task Inputs/Outputs, Task Dependencies
- Dependency management: Scopes/Configurations, Repositories, Versioning
- Configuring Testing with Gradle
- Using Java to configure Gradle
Gradle is one of the most advanced build tools for Java and other JVMlanguages like Kotlin, Groovy and Scala.
In this course you learn how to structure your software project with Gradle to get the most out of it.
This course is hands-on. Together, we build up a project from scratch, learning Gradle features one-by-one. While we do this on the example of a Java project, the gained knowledge can be transferred to any kind of software project built with Gradle.
Whatever automation task you would like to tackle: This course is for you to unlock the full power of Gradle.
No prior Gradle knowledge is required and you learn the latest best practices of Gradle 7 and beyond.
The video instructions are packed with information. To follow along, you will likely pause the videos regularly to explore the example and make sure it works for you. You should plan in ~3 times the duration of a video to work through the corresponding lecture.
Topics Overview
Gradle Configuration Language (Gradle's DSL)
Define a Project Structure - Settings File and Gradle Wrapper
Give Meaning to Components/Subprojects - Build Files
Centralise Build Configuration - Convention Plugins
Compose an Application - add Dependencies
Run the Build - with Incremental Building and Caching
Configure Tasks added by Plugins
Register new Tasks using existing Task Implementations
Implement your own Build Logic in a Task
Make your Project accessible through Lifecycle Tasks
Dependency Scopes (aka Configurations)
Central Places for Dependency Versions - Platform Projects / Dependency Version Catalogs
Conflicts and Component Metadata Rules
Source Sets
Configuring Testing
Kotlin vs Groovy DSL
Writing Build Configuration in Java