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

Only instantiate AbstractExecFork tasks eagerly #43

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

litpho
Copy link

@litpho litpho commented Jun 6, 2021

The current plugin calls whenTaskAdded which eagerly initiates all tasks. This breaks Task Configuration Avoidance and led to configuration timing issues on our side.

I changed it to withType(java.lang.Class) rather than the recommended withType(java.lang.Class).configureEach(org.gradle.api.Action) because the latter one broke a test. Using withType(java.lang.Class) limits eager instantiation to AbstractExecFork tasks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant