Search Gradle plugins

Using the plugins DSL:

plugins {
  id "cn.bestwu.profile" version "1.4.8"
}

Using legacy plugin application:

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

apply plugin: "cn.bestwu.profile"

Using the plugins DSL:

plugins {
  id("cn.bestwu.profile") version "1.4.8"
}

Using legacy plugin application:

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

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

Learn how to apply plugins to subprojects