Skip to content
This repository has been archived by the owner on Sep 2, 2023. It is now read-only.

Dependencies are downloaded at configuration time #246

Open
thorin opened this issue Jul 6, 2021 · 1 comment
Open

Dependencies are downloaded at configuration time #246

thorin opened this issue Jul 6, 2021 · 1 comment

Comments

@thorin
Copy link
Contributor

thorin commented Jul 6, 2021

On Project.afterEvaluate, the plugin is computing and downloading the dependencies at configuration time.

generateSwaggerDocsTask.inputFiles = project.configurations.getByName("runtime").files()

This slows down the start up of the gradle target task and prevents gradle from performing other tasks in parallel.

Since Configuration.files() is eager, even with the changes done on #139 it still downloads the dependencies at configuration time.

If you can replace .files() with its lazy counterpart .fileCollection().

image

@wakingrufus
Copy link
Contributor

it looks like the fix was merged, but never released?

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

No branches or pull requests

2 participants