Search Gradle plugins

Using the plugins DSL:

plugins {
  id "com.diffplug.gradle.oomph.ide" version "3.7.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "com.diffplug.gradle:goomph:3.7.0"
  }
}

apply plugin: "com.diffplug.gradle.oomph.ide"

Using the plugins DSL:

plugins {
  id("com.diffplug.gradle.oomph.ide") version "3.7.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("com.diffplug.gradle:goomph:3.7.0")
  }
}

apply(plugin = "com.diffplug.gradle.oomph.ide")

Learn how to apply plugins to subprojects