Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 7b5b818617d6190e190f06f5866c3d925de14648 1 parent de17da6
@melix melix authored
Showing with 15 additions and 0 deletions.
  1. +15 −0 gradle/upload.gradle
View
15 gradle/upload.gradle
@@ -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
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.