Custom Gradle Plugin - https://plugins.gradle.org/plugin/com.github.sample.groovy.plugin
1.Clone and Open the Project in IntelliJ IDEA
2.Follow the steps here to publish the plugin to plugin portal - https://plugins.gradle.org/docs/submit
3.Run publishPlugins Gradle Task to Publish