Search Gradle plugins

Using the plugins DSL:

plugins {
  id("com.xenoterracide.gradle.code-quality") version "0.5.2-11-g9c117af"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("gradle.plugin.com.xenoterracide.gradle:pluginbundle:0.5.2-11-g9c117af")
  }
}

apply(plugin = "com.xenoterracide.gradle.code-quality")

Using the plugins DSL:

plugins {
  id "com.xenoterracide.gradle.code-quality" version "0.5.2-11-g9c117af"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "gradle.plugin.com.xenoterracide.gradle:pluginbundle:0.5.2-11-g9c117af"
  }
}

apply plugin: "com.xenoterracide.gradle.code-quality"

Learn how to apply plugins to subprojects