maiflai / gradle-scalatest

A plugin to enable the use of scalatest in a gradle Scala project.
The Unlicense
73 stars 35 forks source link

Support gradle configuration cache #109

Open tnielens-centrica opened 7 months ago

tnielens-centrica commented 7 months ago

Could the plugin support gradle's configuration cache. In a project of mine, I'm trying to enable configuration caching and I face issues related to the scalatest plugin.

7 problems were found storing the configuration cache, 2 of which seem unique.
- Task `:mymodule:scalatest` of type `org.gradle.api.tasks.testing.Test`: invocation of 'Task.extensions' at execution time is unsupported.
  See https://docs.gradle.org/8.5/userguide/configuration_cache.html#config_cache:requirements:use_project_during_execution
- Task `:mymodule:scalatest` of type `org.gradle.api.tasks.testing.Test`: invocation of 'Task.project' at execution time is unsupported.
  See https://docs.gradle.org/8.5/userguide/configuration_cache.html#config_cache:requirements:use_project_during_execution

See the complete report at file:///Users/.../myproject/build/reports/configuration-cache/1cfz0i8amiecbedz4kzv164lv/pmwrq5lxr240gzklhrr8yjh/configuration-cache-report.html
> Invocation of 'Task.extensions' by task ':mymodule:scalatest' at execution time is unsupported.
> Invocation of 'Task.project' by task ':mymodule:scalatest' at execution time is unsupported.

I'm using gradle 8.5 and com.github.maiflai.scalatest 0.32.