Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workaround mapped value before task completed error for excluded task #576

Merged
merged 1 commit into from
Jul 15, 2022

Commits on Jul 6, 2022

  1. Workaround mapped value before task completed error for excluded task

    When using provider.map, Gradle has checks that can fail if the provider
    is used too early. For example:
    > Querying the mapped value of provider(interface java.util.Set) before
    > task ':p1:compileScala' has completed is not supported
    
    However, it seems those checks can also fire even if the incomplete task
    is a properly registered dependency and only when accessed from an
    action. This is possible when using -x to exclude a task. This deserves
    a Gradle bug, but let's workaround it in the meantime.
    
    Fixes google#550
    ejona86 committed Jul 6, 2022
    Configuration menu
    Copy the full SHA
    976d787 View commit details
    Browse the repository at this point in the history