hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1537011 - /httpcomponents/project-release-tools/trunk/build.gradle
Date Wed, 30 Oct 2013 08:54:49 GMT
Author: olegk
Date: Wed Oct 30 08:54:49 2013
New Revision: 1537011

URL: http://svn.apache.org/r1537011
Log:
Added release completion task

Modified:
    httpcomponents/project-release-tools/trunk/build.gradle

Modified: httpcomponents/project-release-tools/trunk/build.gradle
URL: http://svn.apache.org/viewvc/httpcomponents/project-release-tools/trunk/build.gradle?rev=1537011&r1=1537010&r2=1537011&view=diff
==============================================================================
--- httpcomponents/project-release-tools/trunk/build.gradle (original)
+++ httpcomponents/project-release-tools/trunk/build.gradle Wed Oct 30 08:54:49 2013
@@ -107,11 +107,12 @@ task prepareRelease(dependsOn: checkoutS
 
 task restartRelease(dependsOn: checkoutSnapshot) {
     group = 'Release'
-    description = "Starts new release based on development snapshot from ${checkoutSnapshot.repo}."
+    description = "Re-starts release based on development snapshot from ${checkoutSnapshot.repo}."
     doLast {
         Svn.revert(checkoutSnapshot.localDir)
-        [releaseVerFile, releaseTagFile, rcQualifierFile, rcTagFile,rcRevisionFile,
-                releaseRevisionFile, nextVerFile, nextVerRevisionFile].each { File file ->
+        [releaseVerFile, releaseTagFile, rcQualifierFile, rcTagFile, rcRevisionFile,
+                releaseRevisionFile, distRevisionFile, nextVerFile,
+                nextVerRevisionFile].each { File file ->
             GFileUtils.deleteQuietly(file)
         }
     }
@@ -591,7 +592,7 @@ if (releaseTagFile.exists() && releaseRe
         group = 'Release'
         description = "Commits next development version."
         inputs.files file(nextVerFile)
-        inputs.files file(nextVerRevisionFile)
+        outputs.files file(nextVerRevisionFile)
         doLast {
             String nextVer = nextVerFile.text.trim()
             File pomFile = new File(checkoutSnapshot.localDir, 'pom.xml')
@@ -608,6 +609,19 @@ if (releaseTagFile.exists() && releaseRe
         }
     }
 
+
+    task completeRelease(dependsOn: commitNextVersion) {
+        group = 'Release'
+        description = "Completes releases."
+        doLast {
+            [releaseVerFile, releaseTagFile, rcQualifierFile, rcTagFile, rcRevisionFile,
+                    releaseRevisionFile, distRevisionFile, nextVerFile,
+                    nextVerRevisionFile].each { File file ->
+                GFileUtils.deleteQuietly(file)
+            }
+        }
+    }
+
 }
 
 



Mime
View raw message