Skip to content

feat: adopt upstream google-java-format [2.0.0] - #9

Merged
mikehardy merged 1 commit into
mainfrom
feat/adopt-google-java-format-2.0.0
Dec 1, 2026
Merged

mikehardy merged 1 commit into
mainfrom
feat/adopt-google-java-format-2.0.0

Conversation

@mikehardy

Copy link
Copy Markdown
Contributor

Summary

  • Adopt upstream google-java-format 2.0.0 (was 1.35.0) via yarn update-google-java-format
  • Replaces the bundled all-deps jar in lib/ and updates the hardcoded path in index.js

Consumer notes (upstream 2.0.0)

  • Major formatter bump: layout engine was replaced; more existing code may reformat than a typical release. Upstream recommends reformatting a codebase in a single commit when upgrading.
  • --cleanup defaults to true: non-whitespace cleanups (redundant semicolons, empty annotation parentheses, parentheses around a single untyped lambda parameter). Pass --cleanup=false for whitespace-only formatting.
  • Other flags (--skip-sorting-imports, --skip-removing-unused-imports, --skip-reordering-modifiers) still apply as before. This wrapper continues to pass CLI args through unchanged.

Test plan

  • java -jar lib/google-java-format-2.0.0-all-deps.jar --version → Version 2.0.0
  • ./test.sh passes on this branch
  • CI green on the PR

@mikehardy
mikehardy merged commit a34ed19 into main Dec 1, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant