Search Gradle plugins

Using the plugins DSL:

plugins {
  id "me.champeau.gradle.jmh" version "0.1.1"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "me.champeau.gradle:jmh-gradle-plugin:0.1.1"
  }
}

apply plugin: "me.champeau.gradle.jmh"

Using the plugins DSL:

plugins {
  id("me.champeau.gradle.jmh") version "0.1.1"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("me.champeau.gradle:jmh-gradle-plugin:0.1.1")
  }
}

apply(plugin = "me.champeau.gradle.jmh")

Learn how to apply plugins to subprojects