搜索Gradle扩展

tekgenesis.git_hooks

所有者: TekGenesis

此扩展用于根据我们的标准设置git钩子

http://tekgenesis.com

源代码: https://github.com/tekgenesis/gradle-plugin

使用插件DSL

plugins {
  id("tekgenesis.git_hooks") version "0.8.90"
}

使用旧版插件应用程序

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org.cn/m2/")
    }
  }
  dependencies {
    classpath("gradle.plugin.org.tekgenesis:gradle-plugin:0.8.90")
  }
}

apply(plugin = "tekgenesis.git_hooks")

使用插件DSL

plugins {
  id "tekgenesis.git_hooks" version "0.8.90"
}

使用旧版插件应用程序

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org.cn/m2/"
    }
  }
  dependencies {
    classpath "gradle.plugin.org.tekgenesis:gradle-plugin:0.8.90"
  }
}

apply plugin: "tekgenesis.git_hooks"

了解如何将扩展应用到子项目