spotless icon indicating copy to clipboard operation
spotless copied to clipboard

Possible to use RegularFileProperty as Input to License/EclipseFormatter/ImportOrder?

Open lehmanju opened this issue 1 year ago • 0 comments

First, I have read all the issues about config files in resource jars etc. In my understanding, the problem with these approaches is that FormatterSteps are immutable states that must be compared to determine whether something has changed. For this comparison, the config files' content must be read at configuration time. This prohibits lazily extracting these files from the resource jar to the build directory because they have to exist before the build even starts.

However, wouldn't it be possible to use something like @InputFile RegularFilePropery as an alternative? It would leverage gradles mechanism of up-to-date checking and allows developers to wire outputs from other tasks as inputs to spotless.

lehmanju avatar Mar 02 '24 09:03 lehmanju