That's interesting. I explicitly added "static" to the end but spotless maven did not correct the order.
-Rui On Thu, Sep 26, 2019 at 1:52 PM Vladimir Sitnikov < [email protected]> wrote: > >One diff, for example, > >is that spotless imports static first but checkstyle prefers static last, > >which I haven't found a way to config. > > I agree Spotless documentation is a bit vague, however Spotless-Gradle > orders statics for me. > > Here's an example: > // import statics first > importOrder("static ", "java.", "javax", "org", "net", "com", "") > // import statics last > importOrder("java.", "javax", "org", "net", "com", "", "static ") > > The sample is taken from Apache JMeter: > > https://github.com/apache/jmeter/blob/6d4610d5e3c5c3128100df3189c3e2f4d7fbe8be/build.gradle.kts#L292 > > > Vladimir >
