Skip to content

Running "format" in buildSrc isn't possible when there are errors #19979

Closed
@dreis2211

Description

@dreis2211

Hi,

I just noticed that running ./gradlew format doesn't work, when there are errors that it should correct.

E.g. in https://ci.spring.io/builds/105422 I did a small mistake and needed to correct it, but got the following when actually trying to execute format:

* What went wrong:
Execution failed for task ':buildSrc:checkFormatMain'.
> Formatting violations found in the following files:
   * src/main/java/org/springframework/boot/build/log4j2/ReproducibleLog4j2PluginsDatAction.java
  
  Run `format` to fix.

That seems to be only the case for code located in buildSrc. I wonder if this is something for the spring-javaformat project or if it can be worked around in Boot.

Cheers,
Christoph

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: supersededAn issue that has been superseded by another

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions