Permalink
Browse files

Attempt 1 at Gradle to Artifactory deployment

  • Loading branch information...
1 parent 7ecd85e commit ee4ba5ba99c436917e82d5b3cb1b09ff724c4be6 @graemerocher graemerocher committed May 16, 2011
Showing with 14 additions and 0 deletions.
  1. +14 −0 build.gradle
View
@@ -145,6 +145,20 @@ subprojects { project ->
meta sourcesJar
meta javadocJar
}
+
+ uploadArchives {
+ repositories {
+ final url = project.version.endsWith("SNAPSHOT") ? "http://repo.grails.org/grails/libs-snapshots" :
+ "http://repo.grails.org/grails/libs-releases"
+ mavenRepo urls: url
+
+ repositories.mavenDeployer {
+ repository(url: url) {
+ authentication(userName: project.getProperty("artifactoryPublishUsername"), password: project.getProperty("artifactoryPublishPassword"))
+ }
+ }
+ }
+ }
}

0 comments on commit ee4ba5b

Please sign in to comment.