Is it possible to use a complex and big extension ...
# plugin-development
g
Is it possible to use a complex and big extension directly as an input to a task? If so, what is the proper way to do it?
When I try to use directly, I get this error:
Copy code
* What went wrong:
Execution failed for task ':analyzeResults'.
> Cannot fingerprint input property 'extension': value 'extension 'weeklyReport'' cannot be serialized.
t
task input is Nested and all public properties have correct input annotations. Google "authoring Gradle tasks"
*all public properties of the extension.
c
It can be done, though a more idiomatic approach is to pass in just what is required. Your error is due to having data types in the extension that are not Setializable.
1