Skip to content

Commit f504f5e

Browse files
committed
Comment out MavenArtifactDownloader so we can get the recipes working again without redeploying workers
1 parent 4ab7ed8 commit f504f5e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

rewrite-maven/src/main/java/org/openrewrite/maven/utilities/JavaSourceSetUpdater.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
public class JavaSourceSetUpdater {
4444
static final String TYPE_CACHE_KEY = "org.openrewrite.maven.jarTypeCache";
4545

46-
private final MavenArtifactDownloader downloader;
46+
// private final MavenArtifactDownloader downloader;
4747
private final Map<String, List<JavaType.FullyQualified>> typeCache;
4848

4949
@SuppressWarnings("unchecked")
@@ -52,7 +52,7 @@ public JavaSourceSetUpdater(ExecutionContext ctx) {
5252
HttpSender httpSender = HttpSenderExecutionContextView.view(ctx).getHttpSender();
5353
// Download failures are not fatal for JavaSourceSet updates — degrade gracefully
5454
Consumer<Throwable> onError = t -> {};
55-
this.downloader = new MavenArtifactDownloader(mctx.getArtifactCache(), mctx.getSettings(), httpSender, onError);
55+
// this.downloader = new MavenArtifactDownloader(mctx.getArtifactCache(), mctx.getSettings(), httpSender, onError);
5656
this.typeCache = (Map<String, List<JavaType.FullyQualified>>) ctx.getMessages()
5757
.computeIfAbsent(TYPE_CACHE_KEY, k -> new ConcurrentHashMap<>());
5858
}

0 commit comments

Comments
 (0)