Skip to content

Commit

Permalink
Fixed versions for good (#444)
Browse files Browse the repository at this point in the history
  • Loading branch information
Joan Viladrosa authored Nov 13, 2023
1 parent b0f041f commit d4c1359
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,11 @@ public J preVisit(J tree, ExecutionContext ctx) {
}

static boolean declaresSpringWebDependency(SourceFile sourceFile, ExecutionContext ctx) {
TreeVisitor<?, ExecutionContext> visitor = new DependencyInsight("org.springframework", "spring-web", "compile", null).getVisitor();
TreeVisitor<?, ExecutionContext> visitor = new DependencyInsight("org.springframework", "spring-web", "compile", null, null).getVisitor();
if (visitor.isAcceptable(sourceFile, ctx) && visitor.visit(sourceFile, ctx) != sourceFile) {
return true;
}
visitor = new org.openrewrite.gradle.search.DependencyInsight("org.springframework", "spring-web", "compileClasspath").getVisitor();
visitor = new org.openrewrite.gradle.search.DependencyInsight("org.springframework", "spring-web", "compileClasspath", null).getVisitor();
return visitor.isAcceptable(sourceFile, ctx) && visitor.visit(sourceFile, ctx) != sourceFile;
}
}

0 comments on commit d4c1359

Please sign in to comment.