Search Gradle plugins

Using the plugins DSL:

plugins {
  id("pl.droidsonroids.pitest") version "0.2.18"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("pl.droidsonroids.gradle:gradle-pitest-plugin:0.2.18")
  }
}

apply(plugin = "pl.droidsonroids.pitest")

Using the plugins DSL:

plugins {
  id "pl.droidsonroids.pitest" version "0.2.18"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "pl.droidsonroids.gradle:gradle-pitest-plugin:0.2.18"
  }
}

apply plugin: "pl.droidsonroids.pitest"

Learn how to apply plugins to subprojects