Skip to content

ExpandWildcardImports incorrectly references dependencies from all configurations #2998

Description

@prdoyle

At this location:

    getProject().getConfigurations().stream().filter(Configuration::isCanBeResolved).flatMap(c -> c.getFiles().stream()).forEach(typeSolverClasspath::add);

This pulls in files from every configuration: even irrelevant ones. Depending on the Gradle setup, this can end up referencing files that are not yet built at the time spotless runs.

I'm using Spotless Gradle plugin 8.8.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions