Search Gradle plugins

Using the plugins DSL:

plugins {
  id("edu.illinois.nondex") version "1.1.2-SNAPSHOT"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("gradle.plugin.edu.illinois:nondex-gradle-plugin:1.1.2-SNAPSHOT")
  }
}

apply(plugin = "edu.illinois.nondex")

Using the plugins DSL:

plugins {
  id "edu.illinois.nondex" version "1.1.2-SNAPSHOT"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "gradle.plugin.edu.illinois:nondex-gradle-plugin:1.1.2-SNAPSHOT"
  }
}

apply plugin: "edu.illinois.nondex"

Learn how to apply plugins to subprojects