Skip to content

:reason does not find runtimeOnly dependencies #1509

@joshfriend

Description

@joshfriend

Plugin version
2.19.0

Describe the bug
Runtime-only dependencies are not found by the reason task

To Reproduce
Steps to reproduce the behavior:

  1. dagp-runtime-only-reason.zip
  2. ./gradlew :app:reason --id :utils
* What went wrong:
Execution failed for task ':app:reason'.
> A failure occurred while executing com.autonomousapps.tasks.ReasonTask$ExplainDependencyAdviceAction
   > Could not create an instance of type com.autonomousapps.tasks.ReasonTask$ExplainDependencyAdviceAction.
      > There is no dependency with coordinates ':utils' in this project.

Expected behavior
reason for the dependency inclusion should be printed. I think DAGP ignores runtime only dependencies? But it should still print if a dependency provides any android manifests, activities, services, etc

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions