Skip to content

false positive for unused-dependency when an testImplementation is consuming an Android dependency's debug source #684

@RBusarow

Description

@RBusarow

:lib1 is an Android module which has something declared in src/debug/java/.

:lib2 is an Android module with a testImplementation dependency upon :lib1, and it's only referencing that code which is defined ini debug.

ModuleCheck will currently say that's an unused dependency.

Android test and androidTest automatically target debug source sets for variant merging, even in dependencies. (docs)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions