org.danilopianini.gradle-pre-commit-git-hooks
Owner: Danilo Pianini
A Gradle plugin enforcing pre-commit and commit-msg Git hooks configuration. Conventional-commits-ready.
https://github.com/DanySK/gradle-pre-commit-git-hooks
Sources: https://github.com/DanySK/gradle-pre-commit-git-hooks
Version 2.0.18 (latest)
Created 20 December 2024.
A Gradle plugin enforcing pre-commit and commit-msg Git hooks configuration. Conventional-commits-ready.
Add this plugin to your build using the plugins DSL:
plugins {
id("org.danilopianini.gradle-pre-commit-git-hooks") version "2.0.18"
}
See also:
-
Adding the plugin to build logic for usage in precompiled script plugins.
See the relevant documentation for more information.
Add this plugin as a dependency to
<convention-plugins-build>/build.gradle(.kts)
:dependencies { implementation("org.danilopianini.gradle-pre-commit-git-hooks:org.danilopianini.gradle-pre-commit-git-hooks.gradle.plugin:2.0.18") }
It can then be applied in the precompiled script plugin:plugins { id("org.danilopianini.gradle-pre-commit-git-hooks") }
-
The legacy method of plugin application.
See the relevant documentation for more information.buildscript { repositories { gradlePluginPortal() } dependencies { classpath("org.danilopianini.gradle-pre-commit-git-hooks:org.danilopianini.gradle-pre-commit-git-hooks.gradle.plugin:2.0.18") } } apply(plugin = "org.danilopianini.gradle-pre-commit-git-hooks")
- Applying plugins to all subprojects .