Skip to content

Commit

Permalink
Remove progress bar updating from resolve rewrite dependencies task
Browse files Browse the repository at this point in the history
  • Loading branch information
sambsnyd committed Aug 30, 2023
1 parent c3d1f14 commit 992106f
Showing 1 changed file with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@
import org.gradle.api.model.ObjectFactory;
import org.gradle.api.tasks.Internal;
import org.gradle.api.tasks.TaskAction;
import org.openrewrite.internal.StringUtils;
import org.openrewrite.polyglot.NoopProgressBar;
import org.openrewrite.polyglot.ProgressBar;
import org.openrewrite.polyglot.RemoteProgressBarSender;

import java.io.File;
import java.util.Arrays;
Expand Down Expand Up @@ -118,11 +114,6 @@ public Set<File> getResolvedDependencies() {

@TaskAction
void run() {
String cliPort = System.getenv("MODERNE_CLI_PORT");
try (ProgressBar progressBar = StringUtils.isBlank(cliPort) ? new NoopProgressBar() :
new RemoteProgressBarSender(Integer.parseInt(cliPort))) {
progressBar.setExtraMessage(":" + getProject().getName() + ":" + getName());
getResolvedDependencies();
}
getResolvedDependencies();
}
}

0 comments on commit 992106f

Please sign in to comment.