You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently implementing Spotless (plugin version 2.5.0) in a Maven project (3.6.3) and it seems that the importOrder does not work as expected when using the order element.
<order>java,javax,org,com,com.diffplug,</order> <!-- or use <file>${basedir}/eclipse.importorder</file> -->
<!-- You probably want an empty string at the end - all of the
imports you didn't specify explicitly will go there. -->
The text was updated successfully, but these errors were encountered:
I am currently implementing Spotless (plugin version 2.5.0) in a Maven project (3.6.3) and it seems that the
importOrder
does not work as expected when using theorder
element.Maven configuration:
After running the
spotless:apply
goal I get this formatting:Now if I use an importorder file:
And reference it in the Maven configuration:
And running again the
spotless:apply
goal then I get this formatting:There is no error nor warning in the console.
It's a private repo so I cannot share it, but I can try to create a public one to reproduce.
Can it be linked to the usage of
split
method (https://github.com/diffplug/spotless/blob/main/plugin-maven/src/main/java/com/diffplug/spotless/maven/java/ImportOrder.java#L41), that discards the 'empty' recommended last element?The text was updated successfully, but these errors were encountered: