tony
03/13/2023, 10:24 PM* What went wrong:
A problem occurred configuring root project 'protos'.
> Could not create task ':updateProtos'.
> Could not create task of type 'UpdateProtosTask'.
> Too many parameters provided for constructor for type UpdateProtosTask. Expected 0, received 1.
When I debug, the "constructor args" are a function call from the plugin's apply method to an instance method on the task that runs some configuration code.
This only happened when I changed the project that this plugin is applied to. In one project, no problem. In another, this error
Yeah, removing the method call and putting all the config code in the plugin's apply method resolved the issue. Odd