-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Property for skipping formatting in the README doesn't match the property in the code #365
Comments
None of the three (3) skip options seem to work:
All of them fill a purpose. |
Looking at https://github.com/spring-io/spring-javaformat/blob/main/spring-javaformat-maven/spring-javaformat-maven-plugin/src/main/java/io/spring/format/maven/ApplyMojo.java#L43 which used |
I think you may be misinterpreting Maven's output. When a goal is skipped, Maven will still call it and that fact that it has been called will appear in Maven's output. It is up to the goal to perform no processing when skipped. The apply and validate goals output some debug logging indicating that they have been skipped. For example:
|
We should consider logging the skip message at info level. That's what Surefire does for example. |
@wilkinsona Yes, I understand. But, the skip is not set true correctly in all cases from what I can see. Do you get That is, I don't get for
only for
|
Yes, agreed. |
As I said in #360 (comment), you need to use You'll see both |
Ok. Got a bit confused there. So, |
Yes.
|
@wilkinsona Sorry for the confusion and for you having the explain several times. Have a very hectic week and it became now that I rushed things. I totally missed that I would +1 to allow |
I messed up the property name in the code. |
The README mentions
-Dspring-javaformat.apply.skip=true
but the code looks for-Dspring-javaformat.format.skip=true
.The text was updated successfully, but these errors were encountered: