Permalink
Browse files

Add Gradle script to deploy artifacts to howardlewisship.com

  • Loading branch information...
1 parent bacb897 commit c2a4e7085b3f0045f800388d4e69195e2dfc307a @hlship committed Jan 19, 2011
Showing with 23 additions and 1 deletion.
  1. +23 −1 build.gradle
View
@@ -2,6 +2,10 @@ description = "Collection of add-ons for Tapestry 5"
tapestryVersion = "5.2.4"
+if (!project.hasProperty('deployUserName')) deployUserName = '*UNSET-USERNAME*'
+if (!project.hasProperty('deployPassword')) deployPassword = '*UNSET-PASSWORD*'
+
+
subprojects {
apply plugin: 'java'
apply plugin: 'groovy' // mostly for testing
@@ -23,14 +27,20 @@ subprojects {
mavenRepo urls: "https://repository.jboss.org/nexus/content/repositories/releases/"
// For the Kaptcha library
- mavenRepo urls: "http://tapestry.formos.com/maven-repository/"
+ mavenRepo urls: "http://howardlewisship.com/repository/"
+ }
+
+ configurations {
+ deployerJars
}
dependencies {
compile "org.apache.tapestry:tapestry-core:$tapestryVersion"
testCompile "org.apache.tapestry:tapestry-test:$tapestryVersion"
testCompile "org.easymock:easymock:3.0"
groovy "org.codehaus.groovy:groovy-all:1.7.4"
+
+ deployerJars "org.apache.maven.wagon:wagon-ftp:1.0-beta-2"
}
test {
@@ -47,4 +57,16 @@ subprojects {
artifacts {
archives sourcesJar
}
+
+
+ uploadArchives {
+ repositories.mavenDeployer {
+ configuration = configurations.deployerJars
+ // deployUserName and deployPassword should be specified in ~/.gradle/gradle.properties
+ snapshotRepository(url: "ftp://howardlewisship.com/snapshot-repository") {
+ authentication(userName: deployUserName, password: deployPassword)
+ }
+
+ }
+ }
}

0 comments on commit c2a4e70

Please sign in to comment.