Skip to content

GatherLicenseTask is not compatible with configuration cache #90

Open
@DreierF

Description

@DreierF

The GatherLicenseTask is not compatible with Gradle's configuration cache.

val gatherLicense = tasks.register<com.github.vlsi.gradle.license.GatherLicenseTask>("gatherLicense") {
    configuration(project.configurations.runtimeClasspath)
}

Running it via ./gradlew gatherLicense --configuration-cache --configuration-cache-problems=warn results in:

Configuration cache state could not be cached: field `value` of `kotlin.InitializedLazyImpl` bean found in field `extraDeps$delegate` of task `:ide:cli:gatherLicense` of type `com.github.vlsi.gradle.license.GatherLicenseTask`: error writing value of type 'org.gradle.api.internal.artifacts.configurations.DefaultUnlockedConfiguration'
> Resolving dependency configuration 'gatherLicense_dependencies' is not allowed as it is defined as 'canBeResolved=false'.
  Instead, a resolvable ('canBeResolved=true') dependency configuration that extends 'gatherLicense_dependencies' should be resolved.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions