spotless icon indicating copy to clipboard operation
spotless copied to clipboard

Add `expandWildcardImports` feature to the Maven Plugin

Open scottbusche-usps opened this issue 10 months ago • 2 comments

Library version 4.2.0 added support for expandWildcardImports to the java plugin, but it appears to have only added support for it in the Gradle plugin with #2744. Is it possible to also add it to the Maven plugin?

scottbusche-usps avatar Jan 23 '26 14:01 scottbusche-usps

It could be done, happy to merge a PR for it, looks like it'd be a big project. Dunno if the original author @Plunts has any advice on this.

nedtwigg avatar Jan 23 '26 18:01 nedtwigg

I never wrote a plugin for maven myself, so I'd have to look a few things up. The main question would be how to get the list of dependencies (the jar files, not just the artifact name) and source folders. The rest of the formatter is already independent from gradle.

Plunts avatar Jan 23 '26 18:01 Plunts