# google/google-java-format

Reformats Java source code to comply with Google Java Style.

Repository: https://github.com/google/google-java-format
Canonical: https://ross.abutalabs.com/products/google-java-format
Language: Java
License: NOASSERTION
License Family: other
Topics: java, formatter
Last push: 2026-08-20T03:23:05+00:00

## Health v2 (maintenance only)
Score: 93/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 83, longevity 100
- inputs: {"age_days": 4132, "days_push": 13, "days_rel": 34, "gap_med": 31.5, "n_releases_24m": 17}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 6179, forks 932 (observed 2026-08-28T04:09:38.087825+00:00)

## What it is
A program that reformats Java source code to comply with Google Java Style, usable from the command line or via an IntelliJ/JetBrains plugin. It deliberately offers no configurability of the formatting algorithm to enforce a single unified style.

## Use cases
- format java code to google style
- reformat java source files from the command line
- enforce consistent code style across a java project
- format only changed lines in a patch
- integrate google java style formatting into intellij

## When to choose
- your team has adopted Google Java Style and wants automatic enforcement
- you want an opinionated formatter with zero configuration debates
- you need CLI formatting or IDE integration for Java code

## When to avoid
- you need customizable formatting rules or a different style guide
- your project uses a JDK older than the minimum required version and you cannot use the native binaries
- you work primarily in languages other than Java

## Facets
- artifact type: cli-tool
- maturity: active
- function: formatter, cli
- domain: developer-tools, programming-languages
- platform: jvm, cli, cross-platform
- tags: java, code-style, google-java-style, intellij-plugin, code-formatting

## Member repositories
- google/google-java-format (main) score 93

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:38.087825+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:47:25.068020+00:00, confidence not recorded.
  - readme: https://github.com/google/google-java-format (fetched 2026-08-28T04:09:38.087825+00:00, sha c57cce15c0b9)
- Data as of 2026-08-30T08:39:29.467469+00:00.
