Search Gradle plugins

Using the plugins DSL:

plugins {
  id("dev.minco.gradle.defaults-plugin") version "0.2.80"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("dev.minco.gradle:defaults-plugin:0.2.80")
  }
}

apply(plugin = "dev.minco.gradle.defaults-plugin")

Using the plugins DSL:

plugins {
  id "dev.minco.gradle.defaults-plugin" version "0.2.80"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "dev.minco.gradle:defaults-plugin:0.2.80"
  }
}

apply plugin: "dev.minco.gradle.defaults-plugin"

Learn how to apply plugins to subprojects