Skip to content

Dependency recommender incompatible with configure-on-demand #33

@henryptung

Description

@henryptung

This commit added support for traversing project dependencies. However, the ProjectDependency.getProjectConfiguration() call assumes that the downstream project has already been notified of pre-resolution, and evaluated itself if necessary. This is not true until ProjectDependencyInternal.beforeResolved() is called. As such, errors like the following currently occur:

Configuration on demand is an incubating feature.

FAILURE: Build failed with an exception.

* Where:
Script '<omitted>' line: 13

* What went wrong:
A problem occurred configuring project ':<omitted>'.
> Exception thrown while executing model rule: PublishingPlugin.Rules#publishing(ExtensionContainer)
   > Configuration with name 'default' not found.

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