Quantcast
Channel: Gradle Forums - Latest posts
Viewing all articles
Browse latest Browse all 19859

What is the Groovy magic for this task command

$
0
0

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-


Viewing all articles
Browse latest Browse all 19859

Trending Articles