dweiss commented on PR #15386:
URL: https://github.com/apache/lucene/pull/15386#issuecomment-3471652619

   I think this is the relevant bit -
   
   
https://github.com/apache/lucene/blob/main/build-tools/build-infra/src/main/java/org/apache/lucene/gradle/plugins/spotless/ParentGoogleJavaFormatTask.java#L132-L136
   
   String breaking in google-java-format adds another pass and can mess things 
up - I have mixed experience with this.
   
   Adding ```--replace --skip-reflowing-long-strings``` should work. If I run 
this:
   
   ```
   $ find . -name "*.java" -print0 | xargs -0 -P 4 -n 500 java -jar 
~/tmp/google-java-format-1.32.0-all-deps.jar --replace 
--skip-reflowing-long-strings
   $ git status
   ```
   
   I get just the Java files we generate (and ignore in our own builds).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to