tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From u..@apache.org
Subject svn commit: r1154557 - /tapestry/tapestry5/trunk/build.gradle
Date Sat, 06 Aug 2011 17:35:49 GMT
Author: uli
Date: Sat Aug  6 17:35:48 2011
New Revision: 1154557

URL: http://svn.apache.org/viewvc?rev=1154557&view=rev
Log:
first shot at snapshot deployment from jenkins

Modified:
    tapestry/tapestry5/trunk/build.gradle

Modified: tapestry/tapestry5/trunk/build.gradle
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/build.gradle?rev=1154557&r1=1154556&r2=1154557&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/build.gradle (original)
+++ tapestry/tapestry5/trunk/build.gradle Sat Aug  6 17:35:48 2011
@@ -6,7 +6,10 @@ testngVersion = '5.14.9'
 easymockVersion = '3.0'
 servletAPIVersion = '2.4'
 
-version = '5.3-alpha-10'
+version = '5.3-SNAPSHOT'
+
+stagingUrl = "https://repository.apache.org/service/local/staging/deploy/maven2/"
+snapshotUrl = "https://repository.apache.org/service/local/snapshots/deploy/maven2/"
 
 doSign = !project.hasProperty('noSign') && project.hasProperty("signing.keyId")
 
@@ -119,10 +122,9 @@ subprojects {
   
   // apacheDeployUserName and apacheDeployPassword should be specified in ~/.gradle/gradle.properties
   
-  deployUsernameProperty = "apacheDeployUserName"
-  deployPasswordProperty = "apacheDeployPassword"
+  deployUsernameProperty = isSnapshot() ? "snapshotDeployUserName" : "apacheDeployUserName"
+  deployPasswordProperty = isSnapshot() ? "snapshotDeployPassword" : "apacheDeployPassword"
   canDeploy = [deployUsernameProperty, deployPasswordProperty].every { project.hasProperty(it)
}
-  
     
   uploadPublished  {
   
@@ -146,9 +148,13 @@ subprojects {
             }
           }          
 
-          repository(url: "https://repository.apache.org/service/local/staging/deploy/maven2/")
{
-            authentication(userName: apacheDeployUserName, password: apacheDeployPassword)
-          }        
+          repository(url: stagingUrl) {
+            authentication(userName: project.getProperty(deployUsernameProperty), password:
project.getProperty(deployPasswordProperty))
+          }
+		  
+		  snapshotRepository(url: snapshotUrl) {
+            authentication(userName: project.getProperty(deployUsernameProperty), password:
project.getProperty(deployPasswordProperty))
+          }
         }
       }
     }
@@ -216,7 +222,7 @@ task clean(type: Delete) {
   delete buildDirName
 }
 
-task continuousIntegration(dependsOn: [subprojects.build, 'aggregateJavadoc'], 
+task continuousIntegration(dependsOn: [subprojects.build, 'aggregateJavadoc', subprojects.uploadPublished],

   description: "Task executed on Jenkins CI server after SVN commits")
 
 task generateRelease(dependsOn: ['continuousIntegration', subprojects.uploadPublished, 'zippedSources',
'zippedJavadoc'], 
@@ -257,3 +263,7 @@ task zippedJavadoc(type: Zip, dependsOn:
   from javadocBuildDir.dir
   into "apidocs"
 }
+
+boolean isSnapshot() {
+  project.version.contains('SNAPSHOT')
+}



Mime
View raw message