"The specified network password is not correct" when copying jar from remote folder

First of all, I’m new to the tool so I may have missing some other way to do this

After googling a lot and trying with SSH plugin and Download plugin I thought this should be doable with Gradle only, but using Copy task I’m receiving the “The specified network password is not correct” message when copying a file from a remote folder:

task copyFile(type: Copy) {
    from 'file://share.xxx.com/private/file.zip'
    into buildDir

I know I can try to access the folder from the explorer to cache permissions but I think we should have the ability to specify username/password somewhere.

Thanks in advance