Search Gradle plugins

Using the plugins DSL:

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

Using legacy plugin application:

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

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

Using the plugins DSL:

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

Using legacy plugin application:

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

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

Learn how to apply plugins to subprojects