Search Gradle plugins

Using the plugins DSL:

plugins {
  id "au.com.dius.pact" version "2.1.10"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "au.com.dius:pact-jvm-provider-gradle_2.11:2.1.10"
  }
}

apply plugin: "au.com.dius.pact"

Using the plugins DSL:

plugins {
  id("au.com.dius.pact") version "2.1.10"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("au.com.dius:pact-jvm-provider-gradle_2.11:2.1.10")
  }
}

apply(plugin = "au.com.dius.pact")

Learn how to apply plugins to subprojects