Today, I’m happy to announce the new major version 4.0.0 of the popular gradle-download-task. With this Gradle plugin, you can download files in your build scripts and display progress information. The new version contains many new features and updating is recommended for all users.
Grab gradle-download-task 4.0.0 while it’s still hot:
The new version has been tested with Gradle 2.0 up to 5.4.1 but should be compatible to any newer version as well.
timeoutproperty has been renamed to
readTimeout(#126). See migration notes below.
PlainConnectionSocketFactory.INSTANCEis now explicitly registered for HTTP (#133)
In this new major version, I made the following breaking changes to the API:
timeoutproperty and introduced
readTimeoutinstead. This allows you to control the individual timeouts better. Also, it improves compatibility with Gradle 5.x, where all tasks have a
timeoutproperty by default.
credentialsproperty has been removed. The same applies to the possibility to pass instances of Apache HttpClient’s
authSchemeproperty. The strings
Digestare now the only accepted values. There is no replacement. If you need this functionality, please file an issue.
responseInterceptorhave been removed. There is no replacement. Again, if you need this functionality, please file an issue.
I also strongly advice you to read my blog post on 10 recipes for gradle-download-task to get an idea what you can do with the plugin.