https://kotlinlang.org logo
#ksp
Title
# ksp
r

Rob Murdock

07/14/2023, 8:54 PM
been discovering that the task "kspCommonMainKotlinMetadata" is the only ksp task I've run into that's not yet configuration-cache compatible.
For anyone curious about the related error.
Copy code
Configuration cache state could not be cached: field `__libraries__` of task `:plugins-test:mint-action-test:kspCommonMainKotlinMetadata` of type `com.google.devtools.ksp.gradle.KspTaskMetadata`: error writing value of type 'org.gradle.api.internal.file.collections.DefaultConfigurableFileCollection'
> Querying the mapped value of provider(java.util.Set) before task ':libraries:action:allMetadataJar' has completed is not supported
j

Josh Feinberg

11/11/2023, 11:42 PM
massive delayed bump - you ever figure this out or you just turning off config cache?
r

Rob Murdock

11/12/2023, 7:24 PM
just checked back. at the time, I discovered I could disable the metadata dependency and things broadly worked. Now I've re-enabled it, and from initial testing it doesn't appear to have this problem anymore with the newer versions of KSP... but I haven't looked too deeply. I'll re-enable that more broadly and see if I run into the problem again. I love me some configuration cache.
j

Josh Feinberg

11/12/2023, 9:45 PM
yeah, failed for me yesterday but not sure if i'm doing something wrong
r

Rob Murdock

11/20/2023, 1:02 PM
I have seen this crop up again now - its not blocking for me because most things don't actually depend on those metadata tasks, but I can confirm this can still happen
48 Views