Gradle - put files (not artifacts) to webdav

Hi Gradle Masters :). How can I put files to webdav folder from gradle script? I have only two requirements: - authentication is required on webdav - webdav is accessible through SSL

Any ideas?

Gradle has nothing built in for this. Best bet will be to find a Java WebDav library and use that directly from your build.