Ah. The trick is that there is a whitespace after "static", so it is "static ".
-Rui On Thu, Sep 26, 2019 at 2:40 PM Rui Wang <ruw...@google.com> wrote: > 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 < > sitnikov.vladi...@gmail.com> 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 >> >