Search Gradle plugins

Using the plugins DSL:

plugins {
  id("se.bjurr.violations.violations-gradle-plugin") version "3.0.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("se.bjurr.violations:violations-gradle-plugin:3.0.0")
  }
}

apply(plugin = "se.bjurr.violations.violations-gradle-plugin")

Using the plugins DSL:

plugins {
  id "se.bjurr.violations.violations-gradle-plugin" version "3.0.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "se.bjurr.violations:violations-gradle-plugin:3.0.0"
  }
}

apply plugin: "se.bjurr.violations.violations-gradle-plugin"

Learn how to apply plugins to subprojects