-
-
Notifications
You must be signed in to change notification settings - Fork 81
Declare formatter version to avoid spotless choosing a version #1151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -688,7 +688,11 @@ | |
| <indent> | ||
| <spaces>true</spaces> | ||
| </indent> | ||
| <palantirJavaFormat /> | ||
| <palantirJavaFormat> | ||
| <!-- Declare version so that spotless does not choose a version based on JDK version --> | ||
| <!-- https://github.com/diffplug/spotless/issues/2503#issuecomment-2953146277 --> | ||
| <version>2.67.0</version> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Where is this version number coming from? It does not seem to match https://github.com/diffplug/spotless/blob/2d32ccd3ef17e80f456f7bd3587846f2734bca71/lib/src/main/java/com/diffplug/spotless/java/PalantirJavaFormatStep.java#L32 (diffplug/spotless#2447 picking up palantir/palantir-java-format#1211).
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I suppose the point is merely that this is some arbitrary recent version, rather than picking one of two distinct much older versions depending on the JRE.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It was the most recent release of palantir-java-format as of the day that I created this pull request, as reported by https://mvnrepository.com/artifact/com.palantir.javaformat/palantir-java-format . Sadly, a newer release arrived the day after this commit was created and then another release happened several weeks after that.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not a problem I think, just confirming. |
||
| </palantirJavaFormat> | ||
| <removeUnusedImports /> | ||
| <toggleOffOn /> | ||
| <trimTrailingWhitespace /> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
diffplug/spotless#2503 (comment)