Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lehmanju opened this issue Mar 2, 2024 · 0 comments

Comments

@lehmanju
Copy link

lehmanju commented Mar 2, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant