Search Gradle plugins

Using the plugins DSL:

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

Using legacy plugin application:

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

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

Using the plugins DSL:

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

Using legacy plugin application:

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

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

Learn how to apply plugins to subprojects