Search Gradle plugins

Using the plugins DSL:

plugins {
  id("org.ajoberstar.stutter") version "0.4.0-rc.2"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("org.ajoberstar:gradle-stutter:0.4.0-rc.2")
  }
}

apply(plugin = "org.ajoberstar.stutter")

Using the plugins DSL:

plugins {
  id "org.ajoberstar.stutter" version "0.4.0-rc.2"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "org.ajoberstar:gradle-stutter:0.4.0-rc.2"
  }
}

apply plugin: "org.ajoberstar.stutter"

Learn how to apply plugins to subprojects