fmt-maven-plugin icon indicating copy to clipboard operation
fmt-maven-plugin copied to clipboard

Discrepancy between this plugin and running google-java-format jar directly

Open jduan-highnote opened this issue 2 years ago • 3 comments

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!

jduan-highnote avatar Oct 30 '23 17:10 jduan-highnote

I have the same question.

fxfh0504 avatar Dec 20 '23 09:12 fxfh0504