Hi,
SomeType
is short notation for SomeType.class
(Groovy feature), and type: SomeType
is short notation for Map (again Groovy feature).
To use named arguments in Groovy, the method must define the Map<String, ?>
as the first argument. The Closure can only reside outside argument list if it is the last one.
With these information, we can nail the actual method down to https://docs.gradle.org/current/javadoc/org/gradle/api/Project.html#task-java.util.Map-java.lang.String-groovy.lang.Closure-