Is there anyway to disable cache configuration for...
# moko
k
Is there anyway to disable cache configuration for moko-resource?
a
as i know gradle configuration cache can't be disabled only for one dependency. it should be disabled at all. while project use some plugins that not supports gradle configuration cache (like moko-resources) - cache can't be enabled at all
k
Using moko resource is too time consuming in large projects, if it could be cached it would save at least a minute for each build
a
in your project all plugins support gradle configuration cache, but only moko-resources not support?
k
Yes, only moko resource doesn't support cache configuration
but the error is a little bit different from github issue
Configuration cache state could not be cached: field
singleStorage
of
com.android.build.api.artifact.impl.TypedStorageProvider
bean found in field
directory
of
com.android.build.api.artifact.impl.StorageProviderImpl
bean found in field
storageProvider
of
com.android.build.api.artifact.impl.ArtifactsImpl
bean found in field
artifacts
of
com.android.build.gradle.internal.variant.LibraryVariantData
bean found in field
testedVariantData
of
com.android.build.gradle.internal.variant.TestVariantData
bean found in field
variantData
of
com.android.build.gradle.internal.api.TestVariantImpl
bean found in field
testVariant
of
com.android.build.gradle.internal.api.LibraryVariantImpl
bean found in field
testedVariant
of
com.android.build.gradle.internal.api.UnitTestVariantImpl
bean found in field
androidVariant
of
org.jetbrains.kotlin.gradle.plugin.mpp.KotlinJvmAndroidCompilation
bean found in field
underlying
of
org.jetbrains.kotlin.gradle.utils.MutableObservableSetImpl
bean found in field
compilations
of
org.jetbrains.kotlin.gradle.plugin.sources.DefaultKotlinSourceSet
bean found in field
sourceSetsAddedEagerly
of
org.jetbrains.kotlin.gradle.plugin.mpp.DefaultCompilationDetailsWithRuntime
bean found in field
compilationDetails
of
org.jetbrains.kotlin.gradle.plugin.mpp.KotlinJvmCompilation
bean found in field
compilation
of
org.jetbrains.kotlin.gradle.targets.jvm.SingleJvmCompilationTestRunSource
bean found in field
value
of
kotlin.properties.NotNullVar
bean found in field
_executionSource$delegate
of
org.jetbrains.kotlin.gradle.targets.jvm.KotlinJvmTestRun
bean found in field
map
of
org.gradle.api.internal.DefaultNamedDomainObjectCollection$UnfilteredIndex
bean found in field
index
of
org.gradle.api.internal.FactoryNamedDomainObjectContainer
bean found in field
testRuns
of
org.jetbrains.kotlin.gradle.targets.jvm.KotlinJvmTarget
bean found in field
target
of
org.jetbrains.kotlin.gradle.plugin.mpp.DefaultCompilationDetailsWithRuntime
bean found in field
compilationDetails
of
org.jetbrains.kotlin.gradle.plugin.mpp.KotlinJvmCompilation
bean found in field
underlying
of
org.jetbrains.kotlin.gradle.utils.MutableObservableSetImpl
bean found in field
compilations
of
org.jetbrains.kotlin.gradle.plugin.sources.DefaultKotlinSourceSet
bean found in field
$kotlinSourceSet
of
dev.icerock.gradle.MultiplatformResourcesPlugin$createSourceSet$1
bean found in field
sourceSet
of
dev.icerock.gradle.generator.common.CommonMRGenerator
bean found in field
generator
of task
:i18n:generateMRcommonMain
of type `dev.icerock.gradle.tasks.GenerateMultiplatformResourcesTask`: error writing value of type 'java.util.LinkedHashMap'
java.util.ConcurrentModificationException (no error message)
a
please add it to github too
k
m
I'm also in this same predicament. My project uses configuration cache. I was considering adopting Moko Resources in my multi-module project, but then realized that the module where I was applying Moko Resources was failing to build. The build only succeeds when I specify the
--no-configuration-cache
argument.
ChatGPT gave me false hope. This doesn't work 😅
k
If you find a way to fix this issue let me know