Nikolay
02/14/2022, 4:42 PMbuild.gradle.kts
file but it still reports the same erorr:
tasks.koverMergedHtmlReport {
notCompatibleWithConfigurationCache("Not Sure")
}
17 problems were found storing the configuration cache, 7 of which seem unique.
- Task `:koverMergedHtmlReport` of type `kotlinx.kover.tasks.KoverMergedHtmlReportTask`: cannot serialize object of type 'org.gradle.api.tasks.testing.Test', a subtype of 'org.gradle.api.Task', as these are not supported with the configuration cache.
See <https://docs.gradle.org/7.4/userguide/configuration_cache.html#config_cache:requirements:task_access>
- Task `:koverMergedVerify` of type `kotlinx.kover.tasks.KoverMergedVerificationTask`: cannot serialize object of type 'org.gradle.api.tasks.testing.Test', a subtype of 'org.gradle.api.Task', as these are not supported with the configuration cache.
See <https://docs.gradle.org/7.4/userguide/configuration_cache.html#config_cache:requirements:task_access>
- Task `:koverMergedXmlReport` of type `kotlinx.kover.tasks.KoverMergedXmlReportTask`: cannot serialize object of type 'org.gradle.api.tasks.testing.Test', a subtype of 'org.gradle.api.Task', as these are not supported with the configuration cache.
See <https://docs.gradle.org/7.4/userguide/configuration_cache.html#config_cache:requirements:task_access>
- Task `:koverVerify` of type `kotlinx.kover.tasks.KoverVerificationTask`: cannot serialize object of type 'org.gradle.api.tasks.testing.Test', a subtype of 'org.gradle.api.Task', as these are not supported with the configuration cache.
See <https://docs.gradle.org/7.4/userguide/configuration_cache.html#config_cache:requirements:task_access>
- Task `:utils:common:koverVerify` of type `kotlinx.kover.tasks.KoverVerificationTask`: cannot serialize object of type 'org.gradle.api.tasks.testing.Test', a subtype of 'org.gradle.api.Task', as these are not supported with the configuration cache.
See <https://docs.gradle.org/7.4/userguide/configuration_cache.html#config_cache:requirements:task_access>
- Task `:utils:common:test` of type `org.gradle.api.tasks.testing.Test`: cannot serialize object of type 'org.gradle.api.internal.artifacts.configurations.DefaultConfiguration', a subtype of 'org.gradle.api.artifacts.Configuration', as these are not supported with the configuration cache.
See <https://docs.gradle.org/7.4/userguide/configuration_cache.html#config_cache:requirements:disallowed_types>
- Task `:utils:common:test` of type `org.gradle.api.tasks.testing.Test`: cannot serialize object of type 'org.gradle.api.internal.project.DefaultProject', a subtype of 'org.gradle.api.Project', as these are not supported with the configuration cache.
See <https://docs.gradle.org/7.4/userguide/configuration_cache.html#config_cache:requirements:disallowed_types>
Nikolay
02/14/2022, 4:43 PMRyan Nett
02/14/2022, 7:56 PMPaul Merlin
02/15/2022, 8:47 AMnotCompatibleWithConfigurationCache()
will make the problems to not fail the build and disable CC but the problems are still reportedPaul Merlin
02/15/2022, 8:47 AMkoverMergedHtmlReport
is not the only task that has problems, you should mark the others as not compatibleNikolay
02/15/2022, 10:00 AMNikolay
02/15/2022, 11:56 AMlistOf(
":koverMergedHtmlReport",
":koverMergedXmlReport",
":koverVerify",
":utils:common:koverVerify",
":utils:common:test",
).forEach {
tasks.getByPath(it).notCompatibleWithConfigurationCache("Don't know")
}
Nikolay
02/15/2022, 12:00 PM:koverMergedVerify
perhaps the error message should specify which problems were ignored and which weren’t.Nikolay
02/15/2022, 12:10 PM