Skip to content

Build fails with configuration cache #268

@pkubowicz

Description

@pkubowicz

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions