spotify / fmt-maven-plugin

Opinionated Maven Plugin that formats your Java code.
MIT License
335 stars 65 forks source link

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

Open jduan-highnote opened 1 year ago

jduan-highnote commented 1 year ago

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.

How do we make them produce the same result? Thanks!

fxfh0504 commented 10 months ago

I have the same question.