Search Gradle plugins

Using the plugins DSL:

plugins {
  id("com.figaf.cpi-plugin") version "2.1.RELEASE"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("com.figaf:cpi-plugin:2.1.RELEASE")
  }
}

apply(plugin = "com.figaf.cpi-plugin")

Using the plugins DSL:

plugins {
  id "com.figaf.cpi-plugin" version "2.1.RELEASE"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "com.figaf:cpi-plugin:2.1.RELEASE"
  }
}

apply plugin: "com.figaf.cpi-plugin"

Learn how to apply plugins to subprojects