Skip to content

Releases: SerliDojo/gradle-safegit

v1.2.1

03 Mar 21:59
Compare
Choose a tag to compare

gradle-safegit

A Gradle plugin to handle git hooks within your gradle build.

Usage

Release are available on https://plugins.gradle.org/plugin/com.serli.dojo.gradle-safegit

plugins {
  id "com.serli.dojo.gradle-safegit" version "1.2.1"
}

Task configuration

To configure the git hooks, you need to configure gradle tasks.
By default, the plugin will only create hooks for tasks that depends on other tasks :

// Will create a git hook "pre-commit".
// When it is invoked, it trigger a build.
tasks.named("pre-commit").configure {
    it.dependsOn("build")
}

More informations in the project readme