I wish to extend Exec in a plugin I am writing to define a task class that executes a command line and also has an extension to hold some data.
However, I write a groovy class extending Exec and immediately get errors :
If I click on the error marking I get
Why can’t the Exec task be extended?
No such errors occur when extending DefaultTask and providing a @TaskAction that calls project.exec(), which might be the workaround I should use. But what is so special about the Exec task class?