Gradle Build System

Gradle Build System
=====

—–
Course Id: DEVO-BGRD
Duration: 24 Hours

Overview
—–
* This training course introduces the Groovy language.
* Next, it teaches the fundamentals of the Gradle build system
* Gradle is used to compile, test, and deploy Java and/or Groovy projects
* Gradle uses different techniques as compared to ant and maven

Pre-Requisites
——-
* Awareness of software to build code is helpful
* Programming experience in teams

Training Objectives
——
All participants learn to:
* Learn the basics of Groovy programming
* Understand the challenges of build processes
* Use Gradle with the standard conventions
* Manage dependencies
* Declare repositories
* Create custom tasks
* Use the Gradle wrapper
* Use Gradle plugins for additional functionality
* Work with the Gradle directed acyclic graph
* Create and use configurations in Gradle

Course Structure
—–
* We provide more focus on hands-on in our technical courses (typically 80% hands-on/20% theory)
* Students get the capability to apply the material they learn to real-world problems

Materials Provided
—–
* All participants receive
* PDF of slides
* PDF of handson
* Access to instance with lab environment

Software Requirements
—–
Any of the following
* Any current internet browser
* vnc client
* rdp client

Hardware Requirements
—–
* Processor: 1.2 GHz+
* RAM: 512 MB+
* Disk space: 1 GB+
* Network Connection with low latency (<250ms) to Internet

## Daywise Course Outline
—–
## Day 1
—–
* Unit 1 : Introduction to Groovy
* Unit 2 : Installing Gradle
* Unit 3 : Introducing Gradle
* Unit 4 : Build Java Projects

## Day 2
—–
* Unit 5 : Building Groovy Projects
* Unit 6 : Tasks in Gradle
* Unit 7 : Incremental Builds
* Unit 8 : Gradle Daemon

## Day 3
—–
* Unit 9 : Plugins
* Unit 10 : IDE Integration
* Unit 11 : The Gradle Wrapper
* Unit 12 : Multiproject Builds

## Detailed Outline
—–
Unit 1 : Introduction to Groovy
* Basics of Groovy
* Groovy data types
* optional typing
* Overriding operators and type coercion
* Groovy strings
* Ranges, lists, and collections
* Closures

Unit 2 : Installing Gradle
* Download proper version
* Environment variables
* Testing your installation

Unit 3 : Introducing Gradle
* Creating build scripts
* Declaring dependencies
* Accessing repositories
* Applying plugins
* Configuring the DAG (directed acyclic graph)

Unit 4 : Build Java Projects
* Standard project structure
* The Java plugin
* Running tests

Unit 5 : Building Groovy Projects
* The Groovy project structure
* Working with both Groovy and Java
* Executing tests with JUnit
* Executing tests with Spock

Unit 6 : Tasks in Gradle
* Declaring tasks
* Defining project properties
* Setting dependencies
* Using doFirst and doLast
* Using the builtin task types
* Inserting your tasks into the DAG

Unit 7 : Incremental Builds
* Inputs and outputs
* Using onlyIf
* Refreshing the cache

Unit 8 : Gradle Daemon
* Usage and troubleshooting
* Configuring the daemon

Unit 9 : Plugins
* Built-in Plugins
* The standard plugin repository
* Some useful plugins

Unit 10 : IDE Integration
* Using Gradle In Eclipse projects
* IntelliJ IDEA

Unit 11 : The Gradle Wrapper
* Specifying versions
* Generating the scripts

Unit 12 : Multi-project Builds
* Using settings.xml
* Consolidating configuration properties
* Making one subproject depend on another

Scroll to top