Search Gradle plugins

Using the plugins DSL:

plugins {
  id "edu.wpi.first.Toolchain" version "2019.1.1-beta-4b"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "edu.wpi.first:ToolchainPlugin:2019.1.1-beta-4b"
  }
}

apply plugin: "edu.wpi.first.Toolchain"

Using the plugins DSL:

plugins {
  id("edu.wpi.first.Toolchain") version "2019.1.1-beta-4b"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("edu.wpi.first:ToolchainPlugin:2019.1.1-beta-4b")
  }
}

apply(plugin = "edu.wpi.first.Toolchain")

Learn how to apply plugins to subprojects