Gradle

Publish to local Maven repository

plugins {
 id 'java-gradle-plugin'
 id 'maven-publish'
 ...
}
gradlew publishToMavenLocal -Pversion=wip

Add local Maven repository for plugins

in settings.gradle

pluginManagement {
 repositories {
     mavenLocal()
     gradlePluginPortal()
 }
}
Gradle