Is there an easy way to tell if a plugin is compat...
# community-support
h
Is there an easy way to tell if a plugin is compatible with the configuration cache? I've been trying to get this plugin (https://mvnrepository.com/artifact/org.springdoc/springdoc-openapi-starter-webmvc-ui) to work, and so far, as soon as I turn on the CC, it fails spectacularly. I have no idea if this is me being stupid (quite likely) or if I'm just out of luck with that plugin.
v
Not really, except my analyzing its code, looking at its docs, and looking at its issues
h
Thanks. I'll raise an issue with them to see if they can figure out how to get it to work without throwing a ton of errors. It sounds like it's incompatible to me. I'm getting this output
What went wrong: Configuration cache problems found in this build. 3 problems were found storing the configuration cache. - Task
:service:forkedSpringBootRun
of type `com.github.psxpaul.task.JavaExecFork`: cannot serialize object of type 'org.springdoc.openapi.gradle.plugin.OpenApiGeneratorTask', a subtype of 'org.gradle.api.Task', as these are not supported with the configuration cache. See https://docs.gradle.org/9.0.0/userguide/configuration_cache_requirements.html#config_cache:requirements:task_access - Task
:service:forkedSpringBootRun
of type `com.github.psxpaul.task.JavaExecFork`: cannot serialize object of type 'org.springframework.boot.gradle.tasks.run.BootRun', a subtype of 'org.gradle.api.Task', as these are not supported with the configuration cache. See https://docs.gradle.org/9.0.0/userguide/configuration_cache_requirements.html#config_cache:requirements:task_access - Task
:service:forkedSpringBootStop
of type `com.github.psxpaul.task.ExecJoin`: cannot serialize object of type 'com.github.psxpaul.task.JavaExecFork', a subtype of 'org.gradle.api.Task', as these are not supported with the configuration cache. See https://docs.gradle.org/9.0.0/userguide/configuration_cache_requirements.html#config_cache:requirements:task_access
v
No, this has nothing to do with their code and they can do nothing about it
Unless they are the ones using that other project that provides the
JavaExecFork
and
ExecJoin
tasks
The error tells you that those tasks refer to other tasks in a way that does not work with CC
Oh yes, they are, so I was wrong, it is their problem
As a work-around you should be able to declare the tasks as not CC compatible so that CC is disabled when you execute with them