Gradle - Block
Table of Contents
1 - About
block in Gradle.
A block is found in a script and is a method call which takes a closure as a parameter. The closure is treated as a configuration closure which configures some delegate object as it executes.
2 - Articles Related
3 - Example
Example with the Copy block that shows two statements
task copy(type: Copy, group: "Custom", description: "Copies sources to the dest directory") { // Begin Block
from "src" // statement 1
into "dest" // statement 2
} // End block