Introduction to the Gradle Build System


Course Number: GRO-104

Duration: 2 days (13 hours)

Format: Live, hands-on

Gradle Training Overview

Accelebrate's Gradle course teaches the fundamentals of the Gradle build system, which is used to compile, test, and deploy Java and/or Groovy projects.

Location and Pricing

Accelebrate offers instructor-led enterprise training for groups of 3 or more online or at your site. Most Accelebrate classes can be flexibly scheduled for your group, including delivery in half-day segments across a week or set of weeks. To receive a customized proposal and price quote for private corporate training on-site or online, please contact us.

Objectives

  • Learn the basics of Groovy programming
  • Understand the challenges of build processes
  • Use Gradle with the standard conventions
  • Map to alternative project layouts
  • Manage dependencies
  • Declare repositories
  • Create custom tasks
  • Use the Gradle wrapper
  • Select and use Gradle plugins for added functionality
  • Work with the Gadle directed acyclic graph
  • Create and use configurations in Gradle

Prerequisites

Attendees should be comfortable with Java. Some knowledge of Groovy would be helpful but is not required.

Outline

Expand All | Collapse All

Introduction
Enough Groovy for Gradle
  • The basic Groovy data types and optional typing
  • Overriding operators and type coercion
  • Groovy strings
  • Ranges, lists, and collections
  • Closures
Installing Gradle
  • Environment variables
  • Testing your installation
Quick Tour of Gradle
  • Creating build scripts
  • Declaring dependencies
  • Accessing repositories
  • Applying plugins
  • Configuring the directed acyclic graph
Building Java Projects
  • Standard project structure
  • The Java plugin
  • Running tests
Building Groovy Projects
  • The Groovy project structure
  • Working with both Groovy and Java
  • Executing tests with both JUnit and Spock
Defining Tasks
  • Declaring tasks
  • Defining project properties
  • Setting dependencies
  • Using doFirst and doLast
  • Using the builtin task types
  • Inserting your tasks into the DAG
Incremental Builds
  • Inputs and outputs
  • Using onlyIf
  • Refreshing the cache
The Gradle Daemon
  • Usage and troubleshooting
  • Configuring the daemon
Plugins
  • Plugins that ship with Gradle
  • The standard plugin repository
  • Some useful plugins
IDE Integration
  • Eclipse projects
  • IntelliJ IDEA
The Gradle Wrapper
  • Specifying versions
  • Generating the scripts
Multiproject Builds
  • Using settings.xml
  • Consolidating configuration properties
  • Making one subproject depend on another
Conclusion

Training Materials:

All attendees receive comprehensive courseware and a related textbook.

Software Requirements:

  • JDK 1.6 or later
  • The latest stable release of Gradle
  • A powerful IDE that supports Groovy and Grails, such as SpringSource's Groovy/Grails Tool Suite or IntelliJ IDEA
  • Related free software and lab files; please contact us for detailed specifications


Learn faster

Our live, instructor-led lectures are far more effective than pre-recorded classes

Satisfaction guarantee

If your team is not 100% satisfied with your training, we do what's necessary to make it right

Learn online from anywhere

Whether you are at home or in the office, we make learning interactive and engaging

Multiple Payment Options

We accept check, ACH/EFT, major credit cards, and most purchase orders



Recent Training Locations

Alabama

Birmingham

Huntsville

Montgomery

Alaska

Anchorage

Arizona

Phoenix

Tucson

Arkansas

Fayetteville

Little Rock

California

Los Angeles

Oakland

Orange County

Sacramento

San Diego

San Francisco

San Jose

Colorado

Boulder

Colorado Springs

Denver

Connecticut

Hartford

DC

Washington

Florida

Fort Lauderdale

Jacksonville

Miami

Orlando

Tampa

Georgia

Atlanta

Augusta

Savannah

Hawaii

Honolulu

Idaho

Boise

Illinois

Chicago

Indiana

Indianapolis

Iowa

Cedar Rapids

Des Moines

Kansas

Wichita

Kentucky

Lexington

Louisville

Louisiana

New Orleans

Maine

Portland

Maryland

Annapolis

Baltimore

Frederick

Hagerstown

Massachusetts

Boston

Cambridge

Springfield

Michigan

Ann Arbor

Detroit

Grand Rapids

Minnesota

Minneapolis

Saint Paul

Mississippi

Jackson

Missouri

Kansas City

St. Louis

Nebraska

Lincoln

Omaha

Nevada

Las Vegas

Reno

New Jersey

Princeton

New Mexico

Albuquerque

New York

Albany

Buffalo

New York City

White Plains

North Carolina

Charlotte

Durham

Raleigh

Ohio

Akron

Canton

Cincinnati

Cleveland

Columbus

Dayton

Oklahoma

Oklahoma City

Tulsa

Oregon

Portland

Pennsylvania

Philadelphia

Pittsburgh

Rhode Island

Providence

South Carolina

Charleston

Columbia

Greenville

Tennessee

Knoxville

Memphis

Nashville

Texas

Austin

Dallas

El Paso

Houston

San Antonio

Utah

Salt Lake City

Virginia

Alexandria

Arlington

Norfolk

Richmond

Washington

Seattle

Tacoma

West Virginia

Charleston

Wisconsin

Madison

Milwaukee

Alberta

Calgary

Edmonton

British Columbia

Vancouver

Manitoba

Winnipeg

Nova Scotia

Halifax

Ontario

Ottawa

Toronto

Quebec

Montreal

Puerto Rico

San Juan