Gradle - Block

Gradle - Block


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.


The code is code sensitive. The type should be set with the value Copy with an uppercase C.

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

Discover More
Gradle - Dependency

dependency management in Gradle of module Type Module...
Gradle - Repository

in Gradle. A repository is a collection of modules, organized by group, name and version. Project.Repositories...
Gradle - build.gradle

build.gradle is a gradle script that is read and builds in memory an instance of Project There is a one-to-one relationship between...

Share this page:
Follow us:
Task Runner