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

Configuration cache support #109

Closed
davireis opened this issue Mar 20, 2023 · 4 comments · Fixed by #206
Closed

Configuration cache support #109

davireis opened this issue Mar 20, 2023 · 4 comments · Fixed by #206

Comments

@davireis
Copy link

See

Invocation of 'Task.project' by task ':bufFormatApply' at execution time is unsupported.

Check https://docs.gradle.org/current/userguide/configuration_cache.html for details.

@andrewparmet
Copy link
Collaborator

It's not clear to me what this issue is. Is this a bug causing Gradle to fail? Is this a feature request for an invocation or configuration style that does not currently work?

@davireis
Copy link
Author

It is a feature request. Configuration cache is a new feature in gradle that speeds up the configuration phase of the build by caching it. However, it requires plugin authors to restrict some actions, like accessing Task.project at execution time.

The lack of configuration cache does not cause gradle to fail, but it causes it to become (significanly) slower, because even if a single plugin fails to adhere to the rules, the whole cache is invalidated (alternatively, you can mark to ignore the failure to adhere of a plugin).

More details here: https://blog.gradle.org/introducing-configuration-caching.

@sebek64
Copy link
Contributor

sebek64 commented Jul 1, 2024

This is now a blocker for us, so I'll try to provide a fix PR. I have a PoC ready, let's see if I'll be able to make a nice PR and fix all corner cases.

@sebek64
Copy link
Contributor

sebek64 commented Jul 3, 2024

PR prepared: #206.

@andrewparmet andrewparmet linked a pull request Jul 25, 2024 that will close this issue
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 a pull request may close this issue.

3 participants