Open tnielens opened 5 months ago
Thanks for reporting this. The issue seems to be caused by the fact that ScalaSourceSet is being passed as input to ConfigSemanticDbTask
. I believe that could be avoided if the code is restructured a bit.
@fsanjuan is this something you would be interested in looking into?
Well, there's more to that than the serialization issues:
Configuration cache problems found in this build.
13 problems were found storing the configuration cache, 5 of which seem unique.
- Task `:scala-module:configSemanticDBCustomScalafixRule` of type `io.github.cosmicsilence.scalafix.ConfigSemanticDbTask`: invocation of 'Task.project' at execution time is unsupported.
See https://docs.gradle.org/7.2/userguide/configuration_cache.html#config_cache:requirements:use_project_during_execution
- Task `:scala-module:configSemanticDBMain` of type `io.github.cosmicsilence.scalafix.ConfigSemanticDbTask`: invocation of 'Task.project' at execution time is unsupported.
See https://docs.gradle.org/7.2/userguide/configuration_cache.html#config_cache:requirements:use_project_during_execution
- Task `:scala-module:configSemanticDBTest` of type `io.github.cosmicsilence.scalafix.ConfigSemanticDbTask`: invocation of 'Task.project' at execution time is unsupported.
See https://docs.gradle.org/7.2/userguide/configuration_cache.html#config_cache:requirements:use_project_during_execution
- Task `:scala-module:scalafixCustomScalafixRule` of type `io.github.cosmicsilence.scalafix.ScalafixTask`: invocation of 'Task.project' at execution time is unsupported.
See https://docs.gradle.org/7.2/userguide/configuration_cache.html#config_cache:requirements:use_project_during_execution
- Task `:scala-module:scalafixMain` of type `io.github.cosmicsilence.scalafix.ScalafixTask`: invocation of 'Task.project' at execution time is unsupported.
See https://docs.gradle.org/7.2/userguide/configuration_cache.html#config_cache:requirements:use_project_during_execution
When I try to enable the configuration cache, gradle fails on scalafix tasks. I've got several occurrences of these errors: