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

More lazy configuration #177

Open
mwos-sl opened this issue Dec 1, 2021 · 1 comment
Open

More lazy configuration #177

mwos-sl opened this issue Dec 1, 2021 · 1 comment

Comments

@mwos-sl
Copy link

mwos-sl commented Dec 1, 2021

Currently many things are initiated during configuration lifecycle phase. As a result applying the plugin extends configuration time of a whole project, which is a big deal for big projects with hundreds of modules.

Instead, as much as possible rsources should be calculated during task execution (e.g. in doFirst block).
Example:
ScoverageRunner is created always, even if none of scoverage tasks are invoked from the command line:
https://github.com/scoverage/gradle-scoverage/blob/master/src/main/groovy/org/scoverage/ScoveragePlugin.groovy#L83

@mwos-sl
Copy link
Author

mwos-sl commented Dec 10, 2021

Same thing for:

def checker = new CoverageChecker(project.logger)

it could be easily moved to doLast { ... }

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

No branches or pull requests

1 participant