Search Gradle plugins

Using the plugins DSL:

plugins {
  id("pub.ihub.plugin.ihub-shadow") version "1.6.7"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("pub.ihub.plugin:ihub-shadow:1.6.7")
  }
}

apply(plugin = "pub.ihub.plugin.ihub-shadow")

Using the plugins DSL:

plugins {
  id "pub.ihub.plugin.ihub-shadow" version "1.6.7"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "pub.ihub.plugin:ihub-shadow:1.6.7"
  }
}

apply plugin: "pub.ihub.plugin.ihub-shadow"

Learn how to apply plugins to subprojects