On 07/08/2011, at 5:21 AM, marcellodesales wrote:
> I have been trying to get the same JAR uploaded to maven in another file
> system directory... I have tried the following
>
> uploadArchives {
> repositories.mavenDeployer {
> name = 'sshDeployer' // optional
> configuration = configurations.deployerJars
> repository(url: "scp://repos.mycompany.com/releases") {
> authentication(userName: "me", password: "myPassword")
> }
> }
> def repoDir = new File("$projectDir/../../../local").canonicalPath
> repositories {
> flatDir(dirs: file(repoDir))
> }
> }
This example works for me (using a file: url instead of an scp: url for the
maven repo). Can you give some more details about how it is not working for
you? eg do you get an exception? error messages? It silently does nothing?
--
Adam Murdoch
Gradle Co-founder
http://www.gradle.org
VP of Engineering, Gradleware Inc. - Gradle Training, Support, Consulting
http://www.gradleware.com