Skip to content

Latest commit

 

History

History

examples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Gradle Download Task Examples

This directory contains a number of examples for gradle-download-task.

A more detailed description of the examples here can be found in the blog post 10 recipes for gradle-download-task.

Download a single file.

Download a single file using the DSL extension.

Download multiple files.

Download multiple files and specify destination file names for each of them.

Download single file and specify a custom HTTP header.

Download all files from a directory.

Download all files from a directory in GitHub. Use the GitHub API to get the directory's contents. Parse the result and download the files.

Download a file conditionally using its entity tag (ETag).

Download a single file to a directory. Use closures for the src and dest property.

Download a single file from a mirror server. Configure multiple mirror servers and use the first one that is working.

Conditionally download a single file using a temporary name (<filename>.part). Rename the file afterwards if the download was successful.

Download a ZIP file and extract its contents.

Download a file and verify its contents by calculating its checksum and comparing it to a given value.

Same as verify but uses the verifyChecksum extension instead of the Verify task.