Gradle Logo

Authoring Gradle Plugins
Build Engineer
Gradle
Course Outline
  1. Authoring Gradle Plugins
    Course objectives
  2. Overview
    Tour of sample plugin
    Gradle plugin types
    Plugin components
    Check-in questions
  3. Plugin Development - Setup
    Initial project setup
    Create consumer test project
    Hands-on exercise - create plugin project
  4. Plugin Development - Extensions
    Defining an extension
    Unit testing of extension
    Check-in questions
    Hands-on exercise - add extension
  5. Plugin Development - Custom Tasks
    Properties and providers
    Adding a custom task
    Unit testing of custom tasks
    Initializing prerequisite configuration
    Using the Problems API
    Adding functional tests
    Check-in questions
    Hands-on exercise - add task
  6. Publishing
    How to publish your plugin
    Milestone
  7. Feedback
    Survey
0%
Authoring Gradle Plugins
7 Sections

Do you need custom functionality available across your projects that's more complex than what standalone custom tasks can provide? Then this training is for you! You'll learn how to develop a Gradle project plugin that can be published and applied to your projects.


What You'll Learn:


The three main components to authoring a Gradle plugin:

  • Extensions: Allowing users to configure the plugin behavior

  • Tasks: Providing custom functionality

  • Plugin class: Configuring prerequisite tasks and tying everything together


Testing your plugin:

  • Unit tests: For basic configuration of the plugin components

  • Functional tests: A powerful tool that enables testing with real-world scenarios

  • Consumer project: How to manually test the behavior as an end-user would as you develop


Prerequisites:

  • Experience with software development

  • Gradle Build Tool experience, including knowledge of core concepts and authoring build files (Kotlin DSL experience a plus)


By the end of this course, you'll be able to:

  • Create a Gradle plugin that can be applied by projects


Enroll today and enhance your Gradle Build Tool skills to gain deeper insights into your builds and improve your development workflow!