Tests are failing with "cannot be cast to groovy.lang.GroovyObject"

hi,

Below is the screenshot of the gradle command execution.

Once the command is executed. gradle folder is generated

The jar generated in build\libs is later copied to plugin folder and then pushed to git repo.

How to develop Custom Keywords Plugins I followed the steps mentioned here.