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:
https://github.com/michel-kraemer/gradle-download-task
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.
timeout
property has been renamed to connectTimeout
and readTimeout
(#126). See migration notes below.compress
flag is false
PlainConnectionSocketFactory.INSTANCE
is now explicitly registered for HTTP (#133)In this new major version, I made the following breaking changes to the API:
timeout
property and introduced connectTimeout
and readTimeout
instead. This allows you to control the individual timeouts better. Also, it improves compatibility with Gradle 5.x, where all tasks have a timeout
property by default.credentials
property has been removed. The same applies to the possibility to pass instances of Apache HttpClient’s AuthScheme
to the authScheme
property. The strings Basic
and Digest
are now the only accepted values. There is no replacement. If you need this functionality, please file an issue.requestInterceptor
and responseInterceptor
have been removed. There is no replacement. Again, if you need this functionality, please file an issue.If you want to learn more about the plugin, have a look at its README file or at my earlier post.
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.