Repository navigation
Describe the palantirJavaFormat step of Spotless with groupArtifact - #18
Merged
Merged
Conversation
…or Maven and Gradle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Spotless Maven plugin 3.12.0 and Gradle plugin 8.12.0 ship
groupArtifactfor thepalantirJavaFormatstep (diffplug/spotless#3179), so Maven builds can run open-java-format through Spotless.spotless-maven-plugin3.12.0 setup withgroupArtifactand theapply/checkcommands, and warns that long strings are not split: Spotless's code for this step never callsStringWrapper. The closed #3084 moves into its own subsection, vote request included. The Gradle section notes that Spotless's ownpalantirJavaFormat()step works too from 8.12.0, with the same difference.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, andspotless:checkpasses on a file where that string is already split.mise run build(strict) passes.