@groovy.util.logging.Slf4j @groovy.transform.CompileStatic class InternalDownloader extends Object implements org.ysb33r.grolifant5.api.core.downloader.Downloader
Implements a downloader for Gradle 8.x.
| Constructor and description |
|---|
InternalDownloader
(String distributionName, File projectDir) |
InternalDownloader
(String distributionName, org.ysb33r.grolifant5.api.core.ProjectOperations po) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
download(URI address, File destination)Downloads a package / distribution / file |
|
org.ysb33r.grolifant5.api.core.downloader.DownloadedLocalFile |
downloadLocation(URI address, File downloadRoot, String relativeBasePath, String checksum)Returns information on where files are downloaded to. |
|
void |
logProgress(String msg)Logs a progress message. |
Downloads a package / distribution / file By default file and http(s) schemes are supported. If Gradle adds additional schemes they are automatically supported.
address - URI to download package from.destination - Destination to download file to.Returns information on where files are downloaded to.
address - URI to download package from.downloadRoot - THe root directory where download are sent to.relativeBasePath - A relative path to the download root where to place files and temporary artifacts.Checksum - for when verification is required.