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 yourbuild.gradlefile. - This method is preferred for its declarative nature and better tooling support.
- It works for plugins from Gradle Plugin Portal, local
buildSrcplugins, and published plugins.
All lessons in this course
- Understanding Gradle Plugins
- Building Binary Plugins
- Applying & Publishing Plugins
- Plugin Extensions & Configurable DSLs