Skip to content

[AURON #2440] Consolidate Maven properties and format code - #2441

Merged
cxzl25 merged 2 commits into
apache:masterfrom
cxzl25:auron_2440
Jul 29, 2026
Merged

[AURON #2440] Consolidate Maven properties and format code#2441
cxzl25 merged 2 commits into
apache:masterfrom
cxzl25:auron_2440

Conversation

@cxzl25

@cxzl25 cxzl25 commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Closes #2440

Rationale for this change

./dev/reformat produced different formatting results depending on the JDK used to run it. pom.xml selected scalafmtVersion based on the active JDK profile: 3.0.0 for jdk-8/jdk-11, and 3.9.9 for jdk-17/jdk-21. However, scalafmt.conf declares version = 3.9.9, so only the JDK 17/21 profiles actually matched the intended
formatting rules.

As a result, running the formatter under JDK 8/11 vs JDK 17/21 produced different indentation for multi-line string interpolations (e.g. .getOrElse(...) continuation lines), causing spurious diffs in git status depending on which JDK happened to be active locally.

What changes are included in this PR?

Unify scalafmtVersion to 3.9.9 across all jdk-8/jdk-11/jdk-17/jdk-21 profiles, matching the version declared in scalafmt.conf.

Are there any user-facing changes?

No

How was this patch tested?

GHA

Was this patch authored or co-authored using generative AI tooling?

  • Yes
  • No

@cxzl25
cxzl25 merged commit 18f9b3f into apache:master Jul 29, 2026
124 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix inconsistent scalafmt version across JDK profiles

2 participants