Search Gradle plugins

Using the plugins DSL:

plugins {
  id "net.mamoe.mirai-console" version "2.13.0-M1"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "net.mamoe:mirai-console-gradle:2.13.0-M1"
  }
}

apply plugin: "net.mamoe.mirai-console"

Using the plugins DSL:

plugins {
  id("net.mamoe.mirai-console") version "2.13.0-M1"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("net.mamoe:mirai-console-gradle:2.13.0-M1")
  }
}

apply(plugin = "net.mamoe.mirai-console")

Learn how to apply plugins to subprojects