0Pricing
Groovy & Gradle: JVM Automation and Build Engineering · Lesson

Applying & Publishing Plugins

Learn how to apply custom plugins to projects and publish them to a local or remote repository.

Reusing Your Gradle Plugins

So you've learned to create custom Gradle plugins. Great! But how do you actually use them in different projects, and how can you share them with others?

This lesson explores how to apply your custom plugins to a Gradle project and how to publish them to a local or remote repository for wider use.

Plugin Application Review

Before diving into custom plugins, let's quickly recall how you apply standard plugins.

  • Most plugins are applied using the plugins { id 'plugin-id' } block in your build.gradle file.
  • This method is preferred for its declarative nature and better tooling support.
  • It works for plugins from Gradle Plugin Portal, local buildSrc plugins, and published plugins.

All lessons in this course

  1. Understanding Gradle Plugins
  2. Building Binary Plugins
  3. Applying & Publishing Plugins
  4. Plugin Extensions & Configurable DSLs
← Back to Groovy & Gradle: JVM Automation and Build Engineering