Search Gradle plugins

Using the plugins DSL:

plugins {
  id("de.undercouch.download") version "3.1.2"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("de.undercouch:gradle-download-task:3.1.2")
  }
}

apply(plugin = "de.undercouch.download")

Using the plugins DSL:

plugins {
  id "de.undercouch.download" version "3.1.2"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "de.undercouch:gradle-download-task:3.1.2"
  }
}

apply plugin: "de.undercouch.download"

Learn how to apply plugins to subprojects