De.undercouch.[extra Quality] Download Gradle -

The Gradle plugin, formally known as gradle-download-task , is a powerful and flexible tool used to download files during the build process. It extends the Gradle build tool by adding a dedicated Download task type and a versatile download extension. Core Features of de.undercouch.download

Instead of creating a full task, you can call the download functionality imperatively inside other tasks using the download.run extension.

: Capable of downloading multiple files simultaneously to speed up the build process. de.undercouch.download gradle

task myCustomTask { doLast { download.run { src 'https://example.com' dest buildDir } } } Use code with caution. Advanced Functionality

task downloadZip(type: Download) { src 'https://example.com' dest layout.buildDirectory.file("data.zip") } task unzip(dependsOn: downloadZip, type: Copy) { from zipTree(downloadZip.dest) into layout.buildDirectory.dir("unpacked") } Use code with caution. 3. Using the Download Extension The Gradle plugin, formally known as gradle-download-task ,

To use the plugin in your project, add the following to your build.gradle or build.gradle.kts file: plugins { id "de.undercouch.download" version "5.7.0" } Use code with caution. Kotlin DSL plugins { id("de.undercouch.download") version "5.7.0" } Use code with caution.

: Supports lazy source and destination properties, allowing these values to be determined later in the build lifecycle. : Capable of downloading multiple files simultaneously to

: Use a list of URLs in the src property to trigger concurrent downloads.

Scroll to Top