Modern native Git hooks made easy for java environments
JHusky improves your commits and more 🐶 Jwoof!
Include it to your project as a plugin
<build>
<plugins>
<plugin>
<groupId>io.github.dathin</groupId>
<artifactId>jhusky</artifactId>
<version>1.0.9</version>
</plugin>
</plugins>
</build>
Run install goal once per machine:
mvn jhusky:install -Ddirectory=.husky
Add a hook:
mvn jhusky:add -DhookPath=.husky/pre-commit -Dcommand="mvn clean test"
git add .husky/pre-commit
Make a commit:
git commit -m "Keep calm and commit"
# `mvn clean test` will run
If you didn't like it you can just run uninstall goal and remove the plugin
mvn jhusky:uninstall -Ddirectory=.husky
JHusky is a Java version based on Husky for those who don't want/can't use node to setup git hooks in an intuitive and easy way
$ claude mcp add JHusky \
-- python -m otcore.mcp_server <graph>