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

Build fails with configuration cache #268

Open
pkubowicz opened this issue May 27, 2024 · 0 comments
Open

Build fails with configuration cache #268

pkubowicz opened this issue May 27, 2024 · 0 comments

Comments

@pkubowicz
Copy link

Execute gradle --configuration-cache generateLock:

> Task :generateLock FAILED

397 problems were found storing the configuration cache, 3 of which seem unique.
- Task `:generateLock` of type `nebula.plugin.dependencylock.tasks.GenerateLockTask`: execution of task ':generateLock' caused invocation of 'Task.convention' in other task at execution time which is unsupported.
  See https://docs.gradle.org/8.7/userguide/configuration_cache.html#config_cache:requirements:use_project_during_execution
- Task `:generateLock` of type `nebula.plugin.dependencylock.tasks.GenerateLockTask`: execution of task ':generateLock' caused invocation of 'Task.project' in other task at execution time which is unsupported.
  See https://docs.gradle.org/8.7/userguide/configuration_cache.html#config_cache:requirements:use_project_during_execution
- Task `:generateLock` of type `nebula.plugin.dependencylock.tasks.GenerateLockTask`: invocation of 'Task.project' at execution time is unsupported.
  See https://docs.gradle.org/8.7/userguide/configuration_cache.html#config_cache:requirements:use_project_during_execution

I have configuration cache enabled in ~/.gradle/gradle.properties, so I am not able to use this task at all. I use the following workaround:

tasks.named("generateLock") {
    notCompatibleWithConfigurationCache("")
}
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