Skip to content

Tone down sortpom output #338

Closed
Closed

Description

@gnodet

When using spotless to format a number of POMs, I end up with:

[INFO] --- spotless:2.28.0:apply (default) @ core-it-suite ---
[INFO] Up-to-date checking enabled
[INFO] Index file does not exist. Fallback to an empty index
[INFO] Sorting file /var/folders/27/cvb78knj3xbdvty_5406llg40000gn/T/pom5965351127772285323.xml
[INFO] Pom file is already sorted, exiting
[INFO] Sorting file /var/folders/27/cvb78knj3xbdvty_5406llg40000gn/T/pom2262155197844819727.xml
[INFO] Pom file is already sorted, exiting
[INFO] Sorting file /var/folders/27/cvb78knj3xbdvty_5406llg40000gn/T/pom15172041996443537493.xml
[INFO] Pom file is already sorted, exiting
[INFO] Sorting file /var/folders/27/cvb78knj3xbdvty_5406llg40000gn/T/pom16267362389972598028.xml
[INFO] Pom file is already sorted, exiting
[INFO] Sorting file /var/folders/27/cvb78knj3xbdvty_5406llg40000gn/T/pom7652642504318211203.xml
[INFO] Pom file is already sorted, exiting
[INFO] Sorting file /var/folders/27/cvb78knj3xbdvty_5406llg40000gn/T/pom11256884799925871044.xml
[INFO] Pom file is already sorted, exiting
[INFO] Sorting file /var/folders/27/cvb78knj3xbdvty_5406llg40000gn/T/pom17508744454483620454.xml
[INFO] Pom file is already sorted, exiting
[INFO] Sorting file /var/folders/27/cvb78knj3xbdvty_5406llg40000gn/T/pom5276297680844189648.xml
[INFO] Pom file is already sorted, exiting
[INFO] Sorting file /var/folders/27/cvb78knj3xbdvty_5406llg40000gn/T/pom8221381498996836063.xml
[INFO] Pom file is already sorted, exiting
[INFO] Sorting file /var/folders/27/cvb78knj3xbdvty_5406llg40000gn/T/pom15758736795576591383.xml
[INFO] Pom file is already sorted, exiting
...

I'd like to introduce a flag to done down the log to debug instead of info.

Activity

  1. Ekryd commented on Jun 20, 2023

    @Ekryd
    Owner

    Sounds reasonable. Maybe a flag “quiet” that removes all output from the plugin?

  2. added a commit that references this issue on Jun 20, 2023
    e6a5995
  3. Ekryd commented on Jun 29, 2023

    @Ekryd
    Owner

    Hi! Just wanted to say that I have not forgotten this issue. I’m away at a family vacation at the moment, and so far programming has not been on the menu.

  4. gnodet commented on Jun 29, 2023

    @gnodet
    ContributorAuthor

    Hi! Just wanted to say that I have not forgotten this issue. I’m away at a family vacation at the moment, and so far programming has not been on the menu.

    No problem, enjoy your vacation time !

  5. self-assigned this
    on Jul 1, 2023
  6. create-issue-branch commented on Jul 1, 2023

    @create-issue-branch
  7. added a commit that references this issue on Jul 1, 2023
    66ccb1b
  8. Ekryd commented on Jul 1, 2023

    @Ekryd
    Owner

    I created a branch for the quiet flag. (I refactored the code a bit)
    @gnodet, can you submit a PR for the branch with an integration test? Similar functionality as maven-plugin/src/it/four-spaces-indent

  9. reopened this on Jul 24, 2023
  10. Ekryd commented on Jul 24, 2023

    @Ekryd
    Owner

    Hi @gnodet !
    I have just released version 3.3.0 of the plugin with the new quiet flag.
    Please try it out and see if it works for you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions