Skip to content

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

@lehmanju

Description

@lehmanju

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions