Problem
In a build.gradle script I get that:
task 'myTestStr', {} // is the same as
Project.task('myTestStr, {}) // <-- this
But I don't get what:
task myTest(){} //invokes on the Project instance?
I'm learning Gradle and Groovy coming from a Java background so I'm pretty sure I'm missing some groovy-ness that explains this magic.
Additional Details
Using Intellij to Find Declaration (Ctrl + b) over myTest(){} says that it invokes TaskContainer#create(java.lang.String)