v1.0.1 - the 1st stable release of the Code-Safe Java Member Reordering and Formatting tool
LatestJHarmonizer 1.0.0 is the first public stable release of a Java source harmonization tool that reorders class members and format the source without casually breaking code.
It is built for teams and projects that want a deterministic Java class layout, but do not want to manually move fields, constructors, methods, initializer blocks, and nested types around during reviews.
What it does
- Reorders Java class members according to configurable rules.
- Preserves important declaration-order behavior so reordered code remains valid.
- Formats the final output with Palantir Java Format.
- Provides Maven plugin goals for automatic reorder and CI checks.
- Provides a standalone CLI fat JAR for non-Maven workflows.
- Supports read-only
check-allandcheck-fastmodes for CI. - Allows local opt-outs with
@jharmonizer:fully-offand@jharmonizer:sort-off. - Includes documentation, benchmarks, contribution guidelines, and a GitHub Actions verification workflow.
Available workflows
jharmonizer:reorder— rewrite sources in place.jharmonizer:check-all— report all files that need reordering.jharmonizer:check-fast— fail on the first non-conforming file.java -jar jharmonizer-cli.jar— run the same workflows outside Maven.
Notes
JHarmonizer is not just a whitespace formatter. It is focused on source structure: where class members live, how they are grouped, and how consistently that layout can be enforced across a codebase.