Added information about identified origin repository
It helps with debugging and understanding what's going on
package org.shipkit.internal.gradle.git.tasks;
import org.gradle.api.DefaultTask;
+import org.gradle.api.logging.Logger;
+import org.gradle.api.logging.Logging;
import org.gradle.api.tasks.TaskAction;
import org.shipkit.internal.exec.DefaultProcessRunner;
import org.shipkit.internal.gradle.git.GitOriginPlugin;
@@ -15,6 +17,8 @@ import javax.inject.Inject;
*/
public class IdentifyGitOriginRepoTask extends DefaultTask {
+ private final static Logger LOG = Logging.getLogger(IdentifyGitOriginRepoTask.class);
+
private String originRepo;
private RuntimeException executionException;
@@ -30,6 +34,7 @@ public class IdentifyGitOriginRepoTask extends DefaultTask {
if (originRepo == null) {
try {
originRepo = originRepoProvider.getOriginGitRepo();
+ LOG.lifecycle(" Identified origin repository: " + originRepo);
} catch (RuntimeException e) {
executionException = e;
}
