Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception Thrown When Enabling Gradle Cache #20

Open
kazemcodes opened this issue Aug 21, 2023 · 3 comments
Open

Exception Thrown When Enabling Gradle Cache #20

kazemcodes opened this issue Aug 21, 2023 · 3 comments
Labels
bug Something isn't working build system Gradle related issue

Comments

@kazemcodes
Copy link

kazemcodes commented Aug 21, 2023

when I enable caching by

org.gradle.unsafe.configuration-cache=true
# Use this flag sparingly, in case some of the plugins are not fully compatible
org.gradle.unsafe.configuration-cache-problems=warn

this exception is thrown

<get-metadataDependencyResolutions>(...) must not be null

and sometimes

Configuration cache state could not be cached: field `__libraries__` of task `:i18n: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 task ':i18n:transformCommonMainDependenciesMetadata' property 'transformedLibrariesIndexFile' before task ':i18n:transformCommonMainDependenciesMetadata' has completed is not supported
@kazemcodes
Copy link
Author

and by changing the kspCommonMainMetadata to kspJvm like add("kspJvm", "cafe.adriel.lyricist:lyricist-processor:1.4.2") add("kspJvm", "cafe.adriel.lyricist:lyricist-processor-xml:1.4.2")
the error was gone

@DevNatan DevNatan added bug Something isn't working build system Gradle related issue labels Sep 28, 2023
@adrielcafe
Copy link
Owner

This issue seems more related to KSP and Gradle than this library. On 1.5.0 I've updated them, maybe this help with your issue?

@kazemcodes
Copy link
Author

kazemcodes commented Dec 28, 2023

no this issue wasn't fixed even in latest version it throws this error
Configuration cache state could not be cached: field __libraries__ of task :i18n: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 task ':i18n:transformCommonMainDependenciesMetadata' property 'transformedLibrariesIndexFile' before task ':i18n:transformCommonMainDependenciesMetadata' has completed is not supported

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working build system Gradle related issue
Projects
None yet
Development

No branches or pull requests

3 participants