دنبال کننده ها

۱۳۹۶ شهریور ۱۲, یکشنبه

gradle task definition syntax

[ad_1]

gradle docs say that the way I declare task in my build.gradle file should be



task greeting(type: GreetingTask) 
greeting = 'greetings from GreetingTask'



can anybody explain to me what happens here in terms of groovy syntax?
I know that block is the closure and it can be passed as a parameter to the function but I still don't get what's happening here



[ad_2]

لینک منبع