Thanks Luke, Unfortunately, the name of the deployer is something like
"mavenDeployer-<random number>", e.g. "mavenDeployer-206873183".

But, based on your suggestion, I found the following solution:

gradle.taskGraph.whenReady { taskGraph ->
    if (!taskGraph.hasTask(':release')) {
        version += '-SNAPSHOT'
        DependencyResolver resolver = uploadArchives.repositories.find {
it.name.startsWith "mavenDeployer"}
        println "repo.name = " + resolver.name
        println "repo.url = " + resolver.snapshotRepository.url
        resolver.snapshotRepository.url = "http://myrepo.org";
    }
}

Thanks and regards, Etienne


--
View this message in context: 
http://gradle.1045684.n5.nabble.com/how-to-set-deployment-repo-when-DAG-is-ready-tp4731736p4744007.html
Sent from the gradle-user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to