feat: supply Eclipse config from string by tomasbjerre · Pull Request #2337 · diffplug/spotless (original) (raw)

This allows a user to supply the configuration, needed by Eclipse formatter, as a string.

I have a precompiled script plugin that applies Spotless Gradle plugin with our Eclipse config. It would be easier if I did not have to supply a file in the configuration but just the content

A file means I have to have that file available for the plugin when it runs, actually it seems it is needed both during configuration and when the Spotless task runs. With content I can just read the content from some classpath resource in my precompiled script.

Would also be nice to be able to supply the configuration in XML format, but that can probably be a future PR.