Share and version-control all your git hooks. This plugin is a Gradle version of ghooks for Node.js.
Add the following entry to your build.gradle
on the plugins
section.
plugins {
id "com.gtramontina.ghooks.gradle" version "1.1.0"
}
build.gradle
Next, create a .githooks/
directory on the root of your git project. This is where you'll keep your git hooks:
mkdir .githooks/
You may now execute any gradle
command. The plugin will ensure it has everything it needs in order to get your git hooks working.
Contributions of any kind are very welcome! 🙏