Gradle build scripts extended by Groovy scripts. When you see βthisβ in a Groovy script or Gradle build script, it represents the object that was passed in closure. In your example, the closure is "{...}", which was passed to "everyone." Thus, it iterates through the assembly "buildTypes" (or something that iterates), passes each record in closure, and refers to the passed object as "he". You can change the name of the object passed to the closure, but by default it is "it".
David M. Karr
source share