Introduction to Gradle

Course Begins TBA

Summary

Gradle is a powerful build tool that’s easy to use for standard projects but trickier to master. By taking this course, you will master Gradle’s fundamentals, allowing you to create effective and maintainable builds. You will also learn how to create and manage large scale builds through some of Gradle’s more advanced features.

This course will work for you whether you’re new to the tool or an experienced user looking to become an effective build master.

Duration

4 Weeks, 6–10 hrs/week


Why Adaptos?

  • Online training, done differently
  • Learn at your own pace
  • Learn more, retain it longer
  • Guaranteed time with an expert instructor
  • Works equally well for beginners and more experienced students

Outline

  • Documentation
    • Understanding the language reference
  • Tasks
    • Defining ad-hoc tasks
    • Using task types
    • Configuring tasks
    • Discovering and executing tasks
    • Specifying task dependencies and ordering
    • Writing custom task types
    • Skipping and replacing tasks
    • Using task properties in lieu of global properties
    • Deferring configuration (advanced)
  • Working with files
    • Defining file and file collection properties
    • Discovering the `FileCollection` and `FileTree` APIs
    • Copying and transforming files
    • Creating file archives (zips and tars)
    • Unpacking file archives
  • Incremental build
    • Discovering how up-to-date checks work
    • Using incremental build annotations in custom task types
    • Adding incremental build support to existing tasks
    • Managing inferred task dependencies (advanced)
    • Customising the behaviour of up-to-date checks (advanced)
  • Building JVM Project
    • Using the standard Java plugin
    • Declaring dependencies and repositories
    • Understanding source sets
    • Adding your own source sets
    • Running and configuring tests
    • Publishing JAR
    • Making use of plugins to add features to the build
    • Using custom configurations (advanced)
    • Controlling dependency resolution (advanced)
  • Multi-project builds
    • Configuring a multi-project build
    • Specifying project dependencies
    • Building subsets of the multi-project build
    • Customising build file names and the project structure (advanced)
    • Using composite builds (advanced)
  • Organisation of build logic
    • Breaking a monolithic build script into multiple smaller scripts
    • Writing plugins
    • Implementing conventions via a plugin
    • Integrating with other plugins
    • Sharing configuration via init scripts (advanced)

About The Instructor

Peter Ledbrook has been an avid user of Gradle almost since its very first 0.1 release. With an existing background in Make, Ant and Maven 2, he recognised the potential in the tool to make build automation easier without artificially constraining the user.

More recently, Peter has regularly delivered classes on both Gradle and Groovy—the language used for the build scripts—to a variety of audiences with differing levels of experience. He’s a well-regarded instructor with a deep knowledge of the tool and the ability to explain concepts clearly.