I’m getting the following exception when using an instance created by Gradle’s Instantiator:
groovy.lang.MissingPropertyException: Could not find property 'project' on CommandRunner_Decorated@7e32156a.
If I simply instantiate the CommandRunner class using “new” then it works fine.
Here’s a reproducible example: https://gist.github.com/tanob/11b040f377e0527321bd
Thanks