Slackbot
05/17/2022, 11:27 AMPaul Merlin
05/17/2022, 12:12 PMConfiguration object is kept from the task.
Doc can be found here https://docs.gradle.org/nightly/userguide/configuration_cache.html#config_cache:requirements:disallowed_types
A Configuration can be used for many things, you need to figure out how it is used and replace this with supported inputs.
Could you share the place where the Configuration is wired to the task? Or share the configuration cache html report, stacktraces in there should be enough to figure this out.Paul Merlin
05/17/2022, 12:28 PMMichal Lepíček
05/17/2022, 12:42 PMPaul Merlin
05/17/2022, 12:49 PMMRGenerator reference from the task drags a lot of unsupported state.Paul Merlin
05/17/2022, 12:50 PMSourceSet instancesPaul Merlin
05/17/2022, 12:50 PMSourceSet instances aren't supported either by the configuration cache as stated in the docPaul Merlin
05/17/2022, 12:51 PMPaul Merlin
05/17/2022, 12:53 PMGenerateMultiplatformResourcesTask.inputFiles should be a ConfigurableFileCollection instead. And the plugin should set it to ~ generator.generators.flatMap { it.inputFiles }. That way the task doesn't need to hold references to all the configuration state.Paul Merlin
05/17/2022, 12:54 PMMichal Lepíček
05/17/2022, 3:18 PM