Download files with progress information: first release of the gradle-download-task plugin available!

Thanks MIchel, I missed this part.

Even though I used these properties, I am still getting HTTP 401. I am trying pull some images from our corporate share point website.

When I try in browser, unlike other website this website through s a pop up window for username and password. Is there any thing which I need to do specific about it.

Here is the sample code snippet I am using to download.

task downloadFile(type: Download) {

src ‘xxxxxxxxxx/photo.png’

dest buildDir

username ‘username’

password 'Password

}

gradle-download-task uses the standard Java mechanism to download files. It only supports HTTP basic authentication. If your corporate share point site uses a more sophisticated authentication mechanism (HTTP sessions, cookies) then I suppose, unfortunately, there’s nothing you can do about it.

In order to check what is going on when logging in you may use the network tab in your browser’s inspector (F12) to see what kind of authentication method is used and if a session cookie is set etc.

Cheers, Michel