---
title: "Java Hooks"
description: "> This file extends [common/hooks.md](../common/hooks.md) with Java-specific content."
type: skill
canonical_url: https://claudary.paisolsolutions.com/skills/hooks-26
source: "Claudary"
difficulty: intermediate
author: "Claude Code Knowledge Pack"
date: 2026-07-10T11:25:13.385Z
license: CC-BY-4.0
attribution: "Java Hooks — Claudary (https://claudary.paisolsolutions.com/skills/hooks-26)"
---

# Java Hooks
> This file extends [common/hooks.md](../common/hooks.md) with Java-specific content.

## Overview

---
paths:
  - "**/*.java"
  - "**/pom.xml"
  - "**/build.gradle"
  - "**/build.gradle.kts"
---
# Java Hooks

> This file extends [common/hooks.md](../common/hooks.md) with Java-specific content.

## PostToolUse Hooks

Configure in `~/.claude/settings.json`:

- **google-java-format**: Auto-format `.java` files after edit
- **checkstyle**: Run style checks after editing Java files
- **./mvnw compile** or **./gradlew compileJava**: Verify compilation after changes

---

Source: [Claudary](https://claudary.paisolsolutions.com/skills/hooks-26) · https://claudary.paisolsolutions.com
