# How to workaround webdav protocol using gradle m8?

**URL:** <https://discuss.gradle.org/t/how-to-workaround-webdav-protocol-using-gradle-m8/4411>\
**Category:** Old Forum Archive\
**Created:** [February 29, 2012, 4:08pm UTC](https://discuss.gradle.org/t/how-to-workaround-webdav-protocol-using-gradle-m8/4411 "2012-02-29T16:08:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![christophe\_armarolli](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/christophe_armarolli/32/862_2.png) [@christophe\_armarolli](https://discuss.gradle.org/u/christophe_armarolli)\
**Post date:** [February 29, 2012, 4:08pm UTC](https://discuss.gradle.org/t/how-to-workaround-webdav-protocol-using-gradle-m8/4411/1 "2012-02-29T16:08:00Z")

</div>

How can I do the same thing as this code do (with gradle m3) using gradle m8?

` uploadArchives {`

repositories {

deployer = mavenDeployer {

configureAuth = {

authentication(userName: “username”, password: “password”)

}

configuration = configurations.deployerJars

snapshotRepository(url: “dav:[http://my.company.repo/libs-snapshot-local](http://my.company.repo/libs-snapshot-local)”, configureAuth)

repository(url: “dav:[http://my.company.repo/libs-release-local/](http://my.company.repo/libs-release-local/)”, configureAuth)

}

} ``

---

<div class="post-metadata">

**Author:** ![adammurdoch](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/adammurdoch/32/17_2.png) [@adammurdoch](https://discuss.gradle.org/u/adammurdoch)\
**Post date:** [February 29, 2012, 8:59pm UTC](https://discuss.gradle.org/t/how-to-workaround-webdav-protocol-using-gradle-m8/4411/2 "2012-02-29T20:59:00Z")

</div>

What’s the failure that you’re seeing? Do you have a stack trace for the failure? (you can get this by running gradle with the -s command-line option).

---

<div class="post-metadata">

**Author:** ![david\_koch444](https://avatars.discourse-cdn.com/v4/letter/d/e0b2c6/32.png) [@david\_koch444](https://discuss.gradle.org/u/david_koch444)\
**Post date:** [March 7, 2012, 8:43am UTC](https://discuss.gradle.org/t/how-to-workaround-webdav-protocol-using-gradle-m8/4411/3 "2012-03-07T08:43:00Z")

</div>

Hello, I also try to upload with ‘Gradle 1.0-milestone-8a’ with webdav to artifactory. This is my config which worked with an earlier version of gradle.

configurations{

upload

}

uploadArchives {

repositories {

mavenDeployer{

authentication = {

authentication(userName: ‘buildbot’, password: ‘buildbot’)

}

configuration = configurations.upload

uniqueVersion=false

snapshotRepository(url: ‘dav:http://…/artifactory/snapshot’, authentication)

repository(url: ‘dav:http://…/artifactory/release’, authentication)

}

}

}

dependencies {

upload group: ‘org.apache.maven.wagon’, name: ‘wagon-webdav-jackrabbit’, version: ‘1.0-beta-6’

}

This is the output I get when invoking gradle uploadArchives:

- What went wrong:

Execution failed for task ‘:myProject:uploadArchives’.

> Could not publish configuration ‘:myProject:archives’.

> Error deploying artifact ‘myOrg:myProject:jar’: Error retrieving previous build number for artifact ‘myOrg:myProject:jar’:

repository metadata for: ‘snapshot myOrg:myProject:1.0.0.SNAPSHOT’ could not be

retrieved from repository: remote due to an error: Unsupported Protocol: ‘dav’: Cannot find wagon which supports the re

quested protocol: dav
