Contents

Use this setting plugin to assist with Gradle plugin development. It configures all projects in the Gradle plugin with extensions to help aligns libraries with Gradle plugins. It is also provide a migration path to dev.gradleplugins.java-gradle-plugin and dev.gradleplugins.groovy-gradle-plugin.

Usage

Example 1. Applying the Gradle Plugin Development Plugin
settings.gradle
plugins {
   id 'dev.gradleplugins.gradle-plugin-development' version '1.1'
}
settings.gradle.kts
plugins {
   id("dev.gradleplugins.gradle-plugin-development") version("1.1")
}

Extensions

The plugin provides the following extensions to all projects:

gradlePluginDevelopment() on RepositoryHandler

Adds the Gradle API redistribution repository to the project, e.g. https://dl.bintray.com/gradle-plugins/distributions. Reads the redistributed Gradle API section to learn more.

gradleApi(version) on DependencyHandler

Creates a dependency on the Gradle API of the specified version, i.e. dev.gradleplugins:gradle-api:2.14.1. Reads the redistributed Gradle API section to learn more.