springdoc-openapi-gradle-plugin icon indicating copy to clipboard operation
springdoc-openapi-gradle-plugin copied to clipboard

`Could not evaluate spec for 'Task satisfies onlyIf spec'` when enabling configuration cache

Open mrclrchtr opened this issue 5 months ago • 0 comments

Hi,

I am currently running into the following error when I turn on the configuration cache (org.gradle.configuration-cache=true) and I don't know why:

> Task :octalog-service:forkedSpringBootRun FAILED

8 problems were found storing the configuration cache, 6 of which seem unique.
- Task `:octalog-service:forkedSpringBootRun` of type `com.github.psxpaul.task.JavaExecFork`: cannot deserialize object of type 'org.gradle.api.Task' as these are not supported with the configuration cache.
  See https://docs.gradle.org/8.10.1/userguide/configuration_cache.html#config_cache:requirements:task_access
- Task `:octalog-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/8.10.1/userguide/configuration_cache.html#config_cache:requirements:task_access
- Task `:octalog-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/8.10.1/userguide/configuration_cache.html#config_cache:requirements:task_access
- Task `:octalog-service:forkedSpringBootRun` of type `com.github.psxpaul.task.JavaExecFork`: value 'undefined' is not assignable to 'org.gradle.api.tasks.TaskProvider'
- Task `:octalog-service:forkedSpringBootStop` of type `com.github.psxpaul.task.ExecJoin`: cannot deserialize object of type 'org.gradle.api.Task' as these are not supported with the configuration cache.
  See https://docs.gradle.org/8.10.1/userguide/configuration_cache.html#config_cache:requirements:task_access
- Task `:octalog-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/8.10.1/userguide/configuration_cache.html#config_cache:requirements:task_access

See the complete report at xxx/configuration-cache-report.html
20 actionable tasks: 5 executed, 15 up-to-date
Configuration cache entry stored with 8 problems.

FAILURE: Build failed with an exception.

* What went wrong:
Could not evaluate onlyIf predicate for task ':octalog-service:forkedSpringBootRun'.
> Could not evaluate spec for 'Task satisfies onlyIf spec'.

Gradle: 8.10.1 springdoc-openapi-gradle-plugin: 1.9.0

Thank you very much for your support!

mrclrchtr avatar Sep 16 '24 23:09 mrclrchtr