Added useful message.
Should be clearer when reading the log!
@@ -3,6 +3,7 @@ package org.shipkit.internal.gradle.release;
import org.gradle.api.Action;
import org.gradle.api.Plugin;
import org.gradle.api.Project;
+import org.gradle.api.Task;
import org.gradle.api.logging.Logger;
import org.gradle.api.logging.Logging;
import org.gradle.api.tasks.StopExecutionException;
@@ -58,6 +59,13 @@ public class CiReleasePlugin implements Plugin<Project> {
"Preparing working copy for the release", asList("./gradlew", GitSetupPlugin.CI_RELEASE_PREPARE_TASK)));
task.getExecCommands().add(execCommand(
"Performing the release", asList("./gradlew", ReleasePlugin.PERFORM_RELEASE_TASK)));
+
+ task.doLast(new Action<Task>() {
+ @Override
+ public void execute(Task t) {
+ LOG.lifecycle(" New version was shipped! Thank you for using Shipkit!");
+ }
+ });
}
});
}
