Search Gradle plugins

Using the plugins DSL:

plugins {
  id "org.danilopianini.publish-on-central" version "0.1.1"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "org.danilopianini:publish-on-central:0.1.1"
  }
}

apply plugin: "org.danilopianini.publish-on-central"

Using the plugins DSL:

plugins {
  id("org.danilopianini.publish-on-central") version "0.1.1"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("org.danilopianini:publish-on-central:0.1.1")
  }
}

apply(plugin = "org.danilopianini.publish-on-central")

Learn how to apply plugins to subprojects