GeezerVison is showing github.com — ✨ feat(scalafmt): enforce version consistency between library and config file by gaeljw · Pull Request #2499 · diffplug/spotless
Conversation
gaeljw
commented
May 29, 2025
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Closes #2460
As suggested in #2460 (comment), this is a first step to raise awareness to users that the version declared in the config file is not used.
We might work on dynamically loading the right Scalafmt JAR in another PR.
I've tested this locally on a project of mine and this works, when versions are not aligned I got the following error:
[ERROR] Failed to execute goal com.diffplug.spotless:spotless-maven-plugin:2.44.5-SNAPSHOT:check (default-cli) on project xxx: Unable to check file /home/xxx/src/test/scala/bdd/utils/DataTableTypeMappings.scala: java.lang.reflect.InvocationTargetException: Spotless is using 2.7.5 but the config file declares 3.9.6. Both must match. Update the version declared in the plugin's settings and/or the config file.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
@nedtwigg no rush but any chance you could have a look at this?
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Released in plugin-gradle 7.1.0 and plugin-maven 2.45.0.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
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.