The Gradle Masterclass
4.4 (932 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.
5,600 students enrolled

The Gradle Masterclass

Discover the most advanced Java Build tools on the Planet!
Bestseller
4.4 (932 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.
5,600 students enrolled
Created by Bruce E. Hilton
Last updated 2/2019
English
English [Auto-generated]
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
Requirements
  • Some basic programming experience, preferably Java
Description

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.
04:26
+ 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
05:03
The 'return' statement in Groovy
01:09
Lets discover 'types' in Groovy
02:44

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

Lets see how Groovy 'Strings' work
02:55

Groovy 'Properties' and how they work withing Gradle

Groovy 'Properties'
03:33

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

Introduction to Groovy Closures
04:52

An even deeper look at Groovy closures.

... more about Closures
04:53
What is Closure 'Resolution'...?
04:28
Groovy
4 questions
+ Gradle under the hood
6 lectures 33:37
Introduction the Gradle Object Model
06:51
Introduction the Gradle Lifecycle
02:34
The Gradle Initialization Phase
06:42
Lifecycle Phases and the Gradle Object Model
07:06
Lifecycle Phases and the Gradle object
06:44
Lifecycle Phases and the Project object
03:40
Gradle Lifecycle
2 questions
+ Gradle Properties
2 lectures 13:09

Lets start looking at and using Gradle Properties.

Gradle Properties
02:43
... more on Gradle Properties!
10:26
+ 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 ...
04:53
Our 1st Gradle Task ...
08:29

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

Configuring Tasks
06:34
+ Task dependencies
5 lectures 32:19
Introduction to 'dependsOn'
07:31
Filtering Tasks with 'dependsOn'
04:58
Using 'dependsOn' in conditional logic
05:55

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
03:21

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

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

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

Introduction to 'Plugins'
03:19
Applying 'Plugins'
04:21
+ Building Java Applications with Gradle
6 lectures 48:22
Our 1st Java program
04:33
Starting to use Gradle with Java
04:40

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
09:07
Building our 1st java application
07:34
Assembling our Java application - Part:1
12:44
Assembling our Java application - Part:2
09:44
+ Building a Java Web application
2 lectures 20:10
Building a Java Web application
10:56
Deploying our Java Web application using Gradle
09:14