Search Gradle plugins

Using the plugins DSL:

plugins {
  id "pl.droidsonroids.jenkins" version "1.0.51"
}

Using legacy plugin application:

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

apply plugin: "pl.droidsonroids.jenkins"

Using the plugins DSL:

plugins {
  id("pl.droidsonroids.jenkins") version "1.0.51"
}

Using legacy plugin application:

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

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

Learn how to apply plugins to subprojects