Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mrclrchtr opened this issue Sep 16, 2024 · 0 comments

Comments

@mrclrchtr
Copy link

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 mrclrchtr changed the title Could not evaluate spec for 'Task satisfies onlyIf spec' Could not evaluate spec for 'Task satisfies onlyIf spec' when enabling configuration cache Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant