Skip to content

Only instantiate AbstractExecFork tasks eagerly#43

Open
litpho wants to merge 1 commit intopsxpaul:mainfrom
litpho:master
Open

Only instantiate AbstractExecFork tasks eagerly#43
litpho wants to merge 1 commit intopsxpaul:mainfrom
litpho:master

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