google-java-format
« Back to VersTracker
Description:
Reformats Java source code to comply with Google Java Style
Type: Formula  |  Latest Version: 1.33.0@0  |  Tracked Since: Dec 5, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: java formatter code-style google development
Install: brew install google-java-format
About:
google-java-format is a command-line tool that reformats Java source code to adhere to the Google Java Style guide. It automatically handles indentation, spacing, and line wrapping to ensure consistent code formatting across projects. This eliminates debates over style and allows developers to focus on logic rather than manual formatting.
Key Features:
  • Automatic reformatting according to Google Java Style
  • Integrates with build tools like Maven and Gradle
  • Supports command-line usage and IDE plugins
Use Cases:
  • Enforcing consistent code style in team projects
  • Automated formatting in CI/CD pipelines
  • Migrating legacy code to modern style standards
Alternatives:
  • Spotless – More flexible plugin system supporting multiple languages and formatters
  • Prettier – General-purpose formatter primarily for JavaScript/TypeScript, not Java-specific
Version History
Detected Version Rev Change Commit
Dec 5, 2025 11:05am 0 VERSION_BUMP 194c34f8
Oct 3, 2025 4:10pm 0 VERSION_BUMP 662b046b
Oct 3, 2025 2:27pm 0 VERSION_BUMP 21e7ebbd
Dec 11, 2024 7:45pm 0 VERSION_BUMP 2a57438c
Oct 13, 2024 5:22pm 0 VERSION_BUMP 0052d44d
Oct 5, 2024 3:53am 0 VERSION_BUMP 5909cfd0