Search Gradle plugins

Using the plugins DSL:

plugins {
  id("org.danilopianini.build-commons") version "0.2.2"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("gradle.plugin.org.danilopianini:build-commons:0.2.2")
  }
}

apply(plugin = "org.danilopianini.build-commons")

Using the plugins DSL:

plugins {
  id "org.danilopianini.build-commons" version "0.2.2"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "gradle.plugin.org.danilopianini:build-commons:0.2.2"
  }
}

apply plugin: "org.danilopianini.build-commons"

Learn how to apply plugins to subprojects