Issues doing Gradle upgrade to 5.5.1

Hi All,

I am upgrading my application from 4.10.2 to 5.5.1. But facing issues because of the deprecation of execute method.

My scenario is-
I am having a custom task in groovy inside which there is 1 more task of type ‘jar’. Previously I was creating the inner jar task and executing that through execute method, but now how can I execute that.

Thanks In Advance