You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ch...@apache.org on 2018/02/20 15:26:00 UTC

commons-release-plugin git commit: Adding aggregator = true to mojos

Repository: commons-release-plugin
Updated Branches:
  refs/heads/master 804be00c0 -> 93a78f5bc


Adding aggregator = true to mojos


Project: http://git-wip-us.apache.org/repos/asf/commons-release-plugin/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-release-plugin/commit/93a78f5b
Tree: http://git-wip-us.apache.org/repos/asf/commons-release-plugin/tree/93a78f5b
Diff: http://git-wip-us.apache.org/repos/asf/commons-release-plugin/diff/93a78f5b

Branch: refs/heads/master
Commit: 93a78f5bcfd62ce2eab80a0ddadcc089884253bf
Parents: 804be00
Author: Rob Tompkins <ch...@gmail.com>
Authored: Tue Feb 20 10:25:44 2018 -0500
Committer: Rob Tompkins <ch...@gmail.com>
Committed: Tue Feb 20 10:25:44 2018 -0500

----------------------------------------------------------------------
 .../plugin/mojos/CommonsDistributionDetachmentMojo.java       | 5 ++++-
 .../release/plugin/mojos/CommonsDistributionStagingMojo.java  | 7 +++++--
 .../release/plugin/mojos/CommonsSiteCompressionMojo.java      | 5 ++++-
 3 files changed, 13 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-release-plugin/blob/93a78f5b/src/main/java/org/apache/commons/release/plugin/mojos/CommonsDistributionDetachmentMojo.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/release/plugin/mojos/CommonsDistributionDetachmentMojo.java b/src/main/java/org/apache/commons/release/plugin/mojos/CommonsDistributionDetachmentMojo.java
index 0fd58c9..6b79e0f 100644
--- a/src/main/java/org/apache/commons/release/plugin/mojos/CommonsDistributionDetachmentMojo.java
+++ b/src/main/java/org/apache/commons/release/plugin/mojos/CommonsDistributionDetachmentMojo.java
@@ -44,7 +44,10 @@ import java.util.Set;
  * @author chtompki
  * @since 1.0
  */
-@Mojo(name = "detach-distributions", defaultPhase = LifecyclePhase.VERIFY, threadSafe = true)
+@Mojo(name = "detach-distributions",
+        defaultPhase = LifecyclePhase.VERIFY,
+        threadSafe = true,
+        aggregator = true)
 public class CommonsDistributionDetachmentMojo extends AbstractMojo {
 
     /**

http://git-wip-us.apache.org/repos/asf/commons-release-plugin/blob/93a78f5b/src/main/java/org/apache/commons/release/plugin/mojos/CommonsDistributionStagingMojo.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/release/plugin/mojos/CommonsDistributionStagingMojo.java b/src/main/java/org/apache/commons/release/plugin/mojos/CommonsDistributionStagingMojo.java
index 0fb23b6..1d7509d 100644
--- a/src/main/java/org/apache/commons/release/plugin/mojos/CommonsDistributionStagingMojo.java
+++ b/src/main/java/org/apache/commons/release/plugin/mojos/CommonsDistributionStagingMojo.java
@@ -49,7 +49,10 @@ import java.util.List;
  * @author chtompki
  * @since 1.0
  */
-@Mojo(name = "stage-distributions", defaultPhase = LifecyclePhase.DEPLOY, threadSafe = true)
+@Mojo(name = "stage-distributions",
+        defaultPhase = LifecyclePhase.VERIFY,
+        threadSafe = true,
+        aggregator = true)
 public class CommonsDistributionStagingMojo extends AbstractMojo {
 
     /**
@@ -131,8 +134,8 @@ public class CommonsDistributionStagingMojo extends AbstractMojo {
             provider.checkOut(repository, scmFileSet);
             copyReleaseNotesToWorkingDirectory();
             List<File> filesToCommit = copyDistributionsIntoScmDirectoryStructure();
-            ScmFileSet scmFileSetToCommit = new ScmFileSet(distCheckoutDirectory, filesToCommit);
             if (!dryRun) {
+                ScmFileSet scmFileSetToCommit = new ScmFileSet(distCheckoutDirectory, filesToCommit);
                 AddScmResult addResult = provider.add(
                         repository,
                         scmFileSetToCommit,

http://git-wip-us.apache.org/repos/asf/commons-release-plugin/blob/93a78f5b/src/main/java/org/apache/commons/release/plugin/mojos/CommonsSiteCompressionMojo.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/release/plugin/mojos/CommonsSiteCompressionMojo.java b/src/main/java/org/apache/commons/release/plugin/mojos/CommonsSiteCompressionMojo.java
index 7fa14a8..d9d6ec1 100644
--- a/src/main/java/org/apache/commons/release/plugin/mojos/CommonsSiteCompressionMojo.java
+++ b/src/main/java/org/apache/commons/release/plugin/mojos/CommonsSiteCompressionMojo.java
@@ -42,7 +42,10 @@ import java.util.zip.ZipOutputStream;
  * @author chtompki
  * @since 1.0
  */
-@Mojo(name = "compress-site", defaultPhase = LifecyclePhase.POST_SITE, threadSafe = true)
+@Mojo(name = "compress-site",
+        defaultPhase = LifecyclePhase.VERIFY,
+        threadSafe = true,
+        aggregator = true)
 public class CommonsSiteCompressionMojo extends AbstractMojo {
 
     /**