Skip to content

WirePlugin code gen task doesn't declare outputs correctly #3199

Open
@ChrisCraik

Description

@ChrisCraik

The code gen task in the wire plugin adds the generated code directory to sourcesets, but doesn't declare the directory's files as outputs via fileProvider.

Noticed this as I started using Wire in KMP project in AndroidX where we have checks for this sort of pattern, and I got an error about ':benchmark:benchmark-traceprocessor:generateCommonMainProtos' not being explicitly depended on by ':benchmark:benchmark-traceprocessor:multiplatformSourceJar' (which is a task that depends on all the source directories).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions