fmt-maven-plugin
fmt-maven-plugin copied to clipboard
Discrepancy between this plugin and running google-java-format jar directly
We are using the latest version (2.21.1) of this plugin. On top of that, we also have a git pre-commit hook that uses the google-java-format jar directly on changed files. We use 1.17.0 of the jar, which matches the version used in the pom.xml of this plugin.
However, they produce different results. For example, we have one Java file which has very long literal strings.
- this plugin doesn't break up those long lines
- running the jar directly does break them up into shorter lines
How do we make them produce the same result? Thanks!
I have the same question.