For more complex scenarios, such as downloading all files from a directory listing, you can find specific recipes provided by the author. de.undercouch.download - Gradle - Plugins
task downloadFile(type: Download) { src 'https://example.com' dest layout.buildDirectory.file("downloads/assets.zip") overwrite false // Don't download if it already exists } Use code with caution. 2. Downloading Multiple Files undercouch download gradle plugin
You can pass a list of URLs to the src property to download them in parallel. For more complex scenarios, such as downloading all