Permalink
Browse files

Added support for uploading artifacts to Codehaus repository

    - use task 'uploadArchives'
    - requires the system properties groovy.deploy.username and groovy.deploy.password
  • Loading branch information...
1 parent de17da6 commit 7b5b818617d6190e190f06f5866c3d925de14648 @melix melix committed May 25, 2012
Showing with 15 additions and 0 deletions.
  1. +15 −0 gradle/upload.gradle
View
@@ -2,9 +2,24 @@ allprojects {
apply plugin: 'maven'
apply from: "${rootProject.projectDir}/gradle/pomconfigurer.gradle"
+ configurations {
+ deployerJars
+ }
+
+ dependencies {
+ deployerJars 'org.apache.maven.wagon:wagon-webdav:1.0-beta-2'
+ }
+
uploadArchives {
repositories {
mavenDeployer {
+ def credentials = [
+ userName: System.getProperty('groovy.deploy.username'),
+ password: System.getProperty('groovy.deploy.password')
+ ]
+ configuration = configurations.deployerJars
+ repository(id:'codehaus.org',url: uri('dav:https://dav.codehaus.org/repository/groovy'), authentication: credentials)
+ snapshotRepository(id:'codehaus.org',url: uri('dav:https://dav.codehaus.org/snapshots.repository/groovy'), authentication: credentials)
pom pomConfigureClosure
}
}

0 comments on commit 7b5b818

Please sign in to comment.