Search Gradle plugins

Using the plugins DSL:

plugins {
  id("com.cloudbees.cd.plugins.specs") version "1.6.10.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("com.cloudbees.cd.plugins:cbcd-plugin-build:1.6.10.0")
  }
}

apply(plugin = "com.cloudbees.cd.plugins.specs")

Using the plugins DSL:

plugins {
  id "com.cloudbees.cd.plugins.specs" version "1.6.10.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "com.cloudbees.cd.plugins:cbcd-plugin-build:1.6.10.0"
  }
}

apply plugin: "com.cloudbees.cd.plugins.specs"

Learn how to apply plugins to subprojects