Search Gradle plugins

Using the plugins DSL:

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

Using legacy plugin application:

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

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

Using the plugins DSL:

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

Using legacy plugin application:

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

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

Learn how to apply plugins to subprojects