The Gradle Masterclass
4.4 (1,070 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
6,234 students enrolled

The Gradle Masterclass

Discover the most advanced Java Build tools on the Planet!
4.4 (1,070 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
6,234 students enrolled
Created by Bruce E. Hilton
Last updated 2/2019
English [Auto]
Current price: $69.99 Original price: $99.99 Discount: 30% off
5 hours left at this price!
30-Day Money-Back Guarantee
This course includes
  • 6 hours on-demand video
  • 13 downloadable resources
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
Training 5 or more people?

Get your team access to 4,000+ top Udemy courses anytime, anywhere.

Try Udemy for Business
What you'll learn
  • A high level of competence in building simple or complex Java Multi-Project Builds
  • Write Gradle Build Scripts using Groovy or Kotlin programming languages
  • Know what the Gradle Lifecycle is and how to benefit from it!
  • Know what the Gradle Domain Objects are and how to use them
  • Know how to get the most out of 'Plugins'
  • Gain a deep knowledge of the Gradle Build Tool
  • Some basic programming experience, preferably Java

Welcome to The Gradle Mastery Course !

Where you will learn the intricacies and nuances of one of the most advanced software Build Tools on the planet ...

In this course you'll learn about Gradle from the ground up.

Starting with the corner stones of Gradle; the Domain Specific Language  or DSL,  the Domain Object Model and Lifecycle.

Gradle relies heavily on what is called a Domain Specific Language or DSL.

For along time Groovy has been Gradles go to DSL language. So it makes sense to start there and I provide you with a good understanding in how to use Groovy with Gradle, so you can get the maximum benefit from both. Later in the course I also take a look at using Kotlin as the DSL and what IDE support there is available for this amazing programming language.

I then set the scene of how Gradle works from the inside out, by looking at the Gradle Lifecycle (... something that is often over looked!!).

You'll get to understand that mastering the Gradle Lifecycle and associated Domain Objects is the key to getting that 'A-ha!' moment with Gradle. (This alone will put you streets ahead of other developers.)

You'll learn that mastering the wide variety of Domain Objects that come with Gradle and its 'Plugins'  are another key that unlocks the power of Gradle.

From single Java projects to complex Multi-Project Java Web applications – these can easily be handled by Gradle and with the examples used in this course you'll have plenty of guidance and experience to use on you're very own projects and lead the way forward. Creating world class, leading edge build scripts, with arguably the most powerful and modern build tool on the planet!

In this course I cover the basics of the Groovy language used by Gradle, later in the course I also touch upon using Kotlin as well.

I cover in-depth the Gradle Lifecycle and how to hook into it, so we get the full benefit of Gradles power.

I cover a variety of  Gradles Domain Objects and how to successfully manipulate them, as well as  'Plugins' – in particular the Java Plugin.

The Gradle 'Wrapper is also covered in some detail.

I look at the Buildship plugin for Eclipse and how that works. (The course is mainly based on using this platform.)

The examples used in this course are various and all Java Projects. From single applications to Multi-Project Web Applications, all built and deployed using Gradle.

The ideal student for this course is any Java developer who is looking to expand on their current skills.

There're no requirements to enroll on this course, only that you have some prior knowledge of Java,

I only ask that you come open minded and ready to learn.

Who this course is for:
  • Anyone wishing to Build there Java programs Reliably and Consistently
  • All Java developers!
Course content
Expand all 59 lectures 06:04:39
+ Setting up!
3 lectures 14:59

Groovy upto now has been the main language of choice for Gradle - this is changing with the introduction of the Kotlin programming language. But Groovy remain a big player in Gradle... so lets take a look!

Preview 06:52

For Gradle and the Eclipse IDE we need the Java JDK installed on our machines. Lets see how to do that!

Preview 03:41

I'm going to start by introducing the minimum requirements for a Gradle project.

Lets start using Gradle, Eclipse and the Buildship plugin.
+ Something Groovy!
8 lectures 29:37

Groovy is used in a special way in Gradle, so lets take look at that!

Starting a Gradle Build Script
The 'return' statement in Groovy
Lets discover 'types' in Groovy

Lets dive into Groovy 'Strings' and how they work!

Lets see how Groovy 'Strings' work

Groovy 'Properties' and how they work withing Gradle

Groovy 'Properties'

Closures are such a big part of the Groovy language and therefor also play a key role in Gradle.

Introduction to Groovy Closures

An even deeper look at Groovy closures.

... more about Closures
What is Closure 'Resolution'...?
4 questions
+ Gradle under the hood
6 lectures 33:37
Introduction the Gradle Object Model
Introduction the Gradle Lifecycle
The Gradle Initialization Phase
Lifecycle Phases and the Gradle Object Model
Lifecycle Phases and the Gradle object
Lifecycle Phases and the Project object
Gradle Lifecycle
2 questions
+ Gradle Properties
2 lectures 13:09

Lets start looking at and using Gradle Properties.

Gradle Properties
... more on Gradle Properties!
+ Tasks & Actions
3 lectures 19:56

Lets take a look at how Tasks and Actions fit in with the Gradle Lifecycle

Tasks and the Gradle Lifecycle ...
Our 1st Gradle Task ...

Tasks are totally configurable - so lets take a look at how to do that...

Configuring Tasks
+ Task dependencies
5 lectures 32:19
Introduction to 'dependsOn'
Filtering Tasks with 'dependsOn'
Using 'dependsOn' in conditional logic

Before the build is performed, Gradle builds a graph of all the Tasks - lets take a look at how this works.

The Task Dependency Graph

The task dependency graph provides us some really convenient 'call-back' methods.

How to 'Hook' into the Task Dependency Graph
+ Introduction to Plugins
2 lectures 07:40

Plugins are a major part of Gradle, so lets start looking at them.

Introduction to 'Plugins'
Applying 'Plugins'
+ Building Java Applications with Gradle
6 lectures 48:22
Our 1st Java program
Starting to use Gradle with Java

Most non-trivial Java applications these days depend on 3rd part software. Lets take a look at how we can set that up...

3rd Part Dependencies
Building our 1st java application
Assembling our Java application - Part:1
Assembling our Java application - Part:2
+ Building a Java Web application
2 lectures 20:10
Building a Java Web application
Deploying our Java Web application using Gradle