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.
The
GatherLicenseTask
is not compatible with Gradle's configuration cache.Running it via
./gradlew gatherLicense --configuration-cache --configuration-cache-problems=warn
results in: