Search Gradle plugins

Using the plugins DSL:

plugins {
  id("net.foragerr.jmeter") version "0.6.2beta-2.13"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("gradle.plugin.net.foragerr.jmeter:jmeter-gradle-plugin:0.6.2beta-2.13")
  }
}

apply(plugin = "net.foragerr.jmeter")

Using the plugins DSL:

plugins {
  id "net.foragerr.jmeter" version "0.6.2beta-2.13"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "gradle.plugin.net.foragerr.jmeter:jmeter-gradle-plugin:0.6.2beta-2.13"
  }
}

apply plugin: "net.foragerr.jmeter"

Learn how to apply plugins to subprojects