Search Gradle plugins

Using the plugins DSL:

plugins {
  id("pub.ihub.plugin.ihub-git-hooks") version "1.7.1"
}

Using legacy plugin application:

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

apply(plugin = "pub.ihub.plugin.ihub-git-hooks")

Using the plugins DSL:

plugins {
  id "pub.ihub.plugin.ihub-git-hooks" version "1.7.1"
}

Using legacy plugin application:

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

apply plugin: "pub.ihub.plugin.ihub-git-hooks"

Learn how to apply plugins to subprojects