revelc/formatter-maven-plugin

Allow resources to be included when formatting

Closed this issue · 0 comments

jamezp commented

Description
Resources can be included by overriding the <directories/> or the <sourceDirectory/> and <testSourceDirectory/> configuration parameters. However, this requires that the user redefines each resource directory. It would be nice to have a new parameter, <includeResources/>, which would include the MavenProject.getResources() and MavenProject.getTestResources().

Describe the solution you'd like
A configuration property that can be defined to allow for resources to be formatted.

Describe alternatives you've considered
Using the various options to override directories. However, since resources are an array it makes it more verbose and possibly more overrides in multi-module projects.

Additional context
No additional context at this time.