Search Gradle plugins

Using the plugins DSL:

plugins {
  id "cn.bestwu.plugin-publish" version "0.0.24"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "gradle.plugin.cn.bestwu.gradle:publish-plugin:0.0.24"
  }
}

apply plugin: "cn.bestwu.plugin-publish"

Using the plugins DSL:

plugins {
  id("cn.bestwu.plugin-publish") version "0.0.24"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("gradle.plugin.cn.bestwu.gradle:publish-plugin:0.0.24")
  }
}

apply(plugin = "cn.bestwu.plugin-publish")

Learn how to apply plugins to subprojects