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
copy-paste the full content of any console errors emitted by gradlew spotless[Apply/Check] --stacktrace
This is from mvn -X spotless:check it should have what you need.
Caused by: java.lang.IllegalArgumentException: Must specify exactly one of 'file' or 'order'.
at com.diffplug.spotless.maven.java.ImportOrder.newFormatterStep (ImportOrder.java:44)
at com.diffplug.spotless.maven.FormatterFactory.lambda$newFormatter$1 (FormatterFactory.java:81)
at java.util.stream.ReferencePipeline$3$1.accept (ReferencePipeline.java:195)
at java.util.stream.ReferencePipeline$2$1.accept (ReferencePipeline.java:177)
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining (ArrayList.java:1655)
at java.util.stream.AbstractPipeline.copyInto (AbstractPipeline.java:484)
at java.util.stream.AbstractPipeline.wrapAndCopyInto (AbstractPipeline.java:474)
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential (ReduceOps.java:913)
at java.util.stream.AbstractPipeline.evaluate (AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.collect (ReferencePipeline.java:578)
at com.diffplug.spotless.maven.FormatterFactory.newFormatter (FormatterFactory.java:82)
at com.diffplug.spotless.maven.AbstractSpotlessMojo.execute (AbstractSpotlessMojo.java:141)
at com.diffplug.spotless.maven.AbstractSpotlessMojo.execute (AbstractSpotlessMojo.java:127)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
The text was updated successfully, but these errors were encountered:
Maven plugin documents feature that does not (currently?) exist
https://github.com/diffplug/spotless/tree/0df556107251f7fec25282394d448a84eee0a325/plugin-maven#java states that an
importOrder
element with no attributes or children applies the "standard import order".spotless/plugin-maven/src/main/java/com/diffplug/spotless/maven/java/ImportOrder.java
Line 44 in 5cb021e
gradle or maven version
spotless version: 2.0.1
operating system and version: Debian GNU+Linux 10.5
copy-paste your full Spotless configuration block(s), and a link to a public git repo that reproduces the problem if possible
No public repository available. Proprietary code.
copy-paste the full content of any console errors emitted by
gradlew spotless[Apply/Check] --stacktrace
This is from
mvn -X spotless:check
it should have what you need.The text was updated successfully, but these errors were encountered: