gradle-dependency-lock-plugin icon indicating copy to clipboard operation
gradle-dependency-lock-plugin copied to clipboard

Build fails with configuration cache

Open pkubowicz opened this issue 1 year ago • 0 comments

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("")
}

pkubowicz avatar May 27 '24 11:05 pkubowicz