Search Gradle plugins

Using the plugins DSL:

plugins {
  id "edu.wpi.first.NativeUtils" version "2019.5.10"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "edu.wpi.first:native-utils:2019.5.10"
  }
}

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

Using the plugins DSL:

plugins {
  id("edu.wpi.first.NativeUtils") version "2019.5.10"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("edu.wpi.first:native-utils:2019.5.10")
  }
}

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

Learn how to apply plugins to subprojects