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

Add ability to specify "name" for task.onlyIf actions (and possibly others like upToDateWhen) #7541

Closed
mkobit opened this issue Oct 26, 2018 · 2 comments · Fixed by #19428
Closed
Assignees
Labels
a:feature A new functionality in:writing-tasks task option 🌱 internal-onboarding Good issues to onboard new Gradle team members
Milestone

Comments

@mkobit
Copy link
Contributor

mkobit commented Oct 26, 2018

doFirst and doLast offer the ability to specify a description/name for the action. It would be

Expected Behavior

Skipping task ':MyTask' as task onlyIf "only when executing in CI environment" is false.

Current Behavior

Skipping task ':MyTask' as task onlyIf is false.

Context

It is difficult to understand an onlyIf, especially if it is a composed onlyIf of multiple actions. It would be useful if the logs and other pieces told you why it was not executed.

@stale
Copy link

stale bot commented Oct 6, 2020

This issue has been automatically marked as stale because it has not had recent activity. Given the limited bandwidth of the team, it will be automatically closed if no further activity occurs. If you're interested in how we try to keep the backlog in a healthy state, please read our blog post on how we refine our backlog. If you feel this is something you could contribute, please have a look at our Contributor Guide. Thank you for your contribution.

@stale stale bot added the stale label Oct 6, 2020
@wolfs
Copy link
Member

wolfs commented Oct 7, 2020

This is still something we should do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:feature A new functionality in:writing-tasks task option 🌱 internal-onboarding Good issues to onboard new Gradle team members
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants