Search Gradle plugins

Using the plugins DSL:

plugins {
  id("cn.bestwu.generator") version "0.0.38"
}

Using legacy plugin application:

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

apply(plugin = "cn.bestwu.generator")

Using the plugins DSL:

plugins {
  id "cn.bestwu.generator" version "0.0.38"
}

Using legacy plugin application:

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

apply plugin: "cn.bestwu.generator"

Learn how to apply plugins to subprojects