# jhipster/prettier-java

Prettier Java Plugin

Repository: https://github.com/jhipster/prettier-java
Canonical: https://ross.abutalabs.com/products/prettier-java
Homepage: http://www.jhipster.tech/prettier-java/
Language: Java
License: Apache-2.0
License Family: permissive
Topics: prettier, java
Last push: 2026-09-02T23:17:27+00:00

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 100, release rhythm 93, longevity 100
- inputs: {"age_days": 3163, "days_push": 0, "days_rel": 45, "gap_med": 5.0, "n_releases_24m": 25}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1212, forks 118 (observed 2026-09-03T02:15:13.146985+00:00)

## What it is
A Prettier plugin that adds opinionated code formatting support for the Java language. It parses Java source code and reprints it with consistent style rules, taking maximum line length into account.

## Use cases
- format java code with prettier
- enforce consistent java code style across a codebase
- auto-format java files on save in my editor
- stop debating formatting in code reviews for java projects
- run prettier on java files from the command line
- integrate java formatting into gradle or maven builds via spotless

## When to choose
- you want an opinionated, zero-configuration formatter for Java similar to Prettier for JavaScript
- your team wants consistent formatting enforced automatically on save or in CI
- you already use Prettier in a polyglot project and want Java covered too

## When to avoid
- you need highly configurable formatting rules rather than an opinionated style
- you prefer formatters native to the Java ecosystem like google-java-format or Eclipse formatter
- your project cannot use Node.js-based tooling

## Facets
- artifact type: plugin
- maturity: active
- function: formatter, parser, developer-tools
- domain: developer-tools, programming-languages, text-editors
- platform: cli, cross-platform
- tags: prettier, java, code-formatting, opinionated-style, nodejs

## Member repositories
- jhipster/prettier-java (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-09-03T02:15:13.146985+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-30T06:18:55.359984+00:00, confidence not recorded.
  - readme: https://github.com/jhipster/prettier-java (fetched 2026-09-03T02:15:13.146985+00:00, sha 136a574f4eb3)
  - homepage: http://www.jhipster.tech/prettier-java/ (fetched 2026-08-29T12:26:32.281524+00:00, sha 2daa0bbaed33)
  - site_page: https://www.jhipster.tech/prettier-java/docs (fetched 2026-08-29T12:26:32.290476+00:00, sha b50de452ca91)
  - site_page: https://www.jhipster.tech/prettier-java/docs/installation (fetched 2026-08-29T12:26:32.292269+00:00, sha 17082936d097)
- Data as of 2026-08-30T08:39:29.467469+00:00.
