Search Gradle plugins

Using the plugins DSL:

plugins {
  id "io.spring.dependency-management" version "1.0.4.RELEASE"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "io.spring.gradle:dependency-management-plugin:1.0.4.RELEASE"
  }
}

apply plugin: "io.spring.dependency-management"

Using the plugins DSL:

plugins {
  id("io.spring.dependency-management") version "1.0.4.RELEASE"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("io.spring.gradle:dependency-management-plugin:1.0.4.RELEASE")
  }
}

apply(plugin = "io.spring.dependency-management")

Learn how to apply plugins to subprojects