Hi all,
as discussed in the PSC meetings and follow up mails, I've been playing
with
Spotless to replace the dying COVEO formatting plugin.

Here is a test PR:
https://github.com/geotools/geotools/pull/3761

Highlights:

   -  Uses Spotless for Java formatting, and uses the latest
   google-java-format plugin compatible with Java 8 (with improved formatting
   for streams and annotations)
   - Uses up-to-date checking to avoid re-formatting files for nothing
   - The up-to-date file index is kept in a hidden file in each module,
   ".spotless-index". On linux that's invisible by default. The files are in
   gitignore so they won't be committed.

Using spotless, we'll be eventually able to also format with other
formatters in the future, like the Eclipse one for XML/HTML for example.

Can people on different platforms try that out and tell me how that works
for them? Try running:

mvn spotless:apply -nsu -Dall

Expect a few messages from spotless on the first run, while it's creating
the index files, and then it should be real fast from the second run
onwards.
Github actions won't get a speedup unless we find a way to cache the index
files... not sure that we want to do that honestly (might be
complicated to setup and maintain, on a per branch basis...)

Cheers
Andrea
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to