Skip to content

Describe the palantirJavaFormat step of Spotless with groupArtifact - #18

Merged
abashev merged 1 commit into
mainfrom
abashev/Spotless-docs-update
Nov 25, 2026
Merged

abashev merged 1 commit into
mainfrom
abashev/Spotless-docs-update

Conversation

@abashev

@abashev abashev commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Spotless Maven plugin 3.12.0 and Gradle plugin 8.12.0 ship groupArtifact for the palantirJavaFormat step (diffplug/spotless#3179), so Maven builds can run open-java-format through Spotless.

  • Spotless page: the Maven section shows the spotless-maven-plugin 3.12.0 setup with groupArtifact and the apply/check commands, and warns that long strings are not split: Spotless's code for this step never calls StringWrapper. The closed #3084 moves into its own subsection, vote request included. The Gradle section notes that Spotless's own palantirJavaFormat() step works too from 8.12.0, with the same difference.
  • Get started, Maven plugin, Migrate: they say that Maven works through Spotless and that this route treats long strings differently.

Checked on a test project (Spotless Maven 3.12.0, open-java-format 21.0.2, Java 25): it formats without --add-exports, leaves a long string unsplit, and spotless:check passes on a file where that string is already split. mise run build (strict) passes.

@abashev
abashev merged commit 74e4d28 into main Nov 25, 2026
2 checks passed
@abashev
abashev deleted the abashev/Spotless-docs-update branch November 25, 2026 08:58
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