Skip to content

Commit

Permalink
Fix dependency resolver not using project repositories
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Nov 4, 2024
1 parent 8005826 commit 6f046f4
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,10 @@ public DependencyResolverResult resolve(DependencyResolverRequest request)
DependencyResolverResult result;
DependencyResolverResult collectorResult = collect(request);
List<RemoteRepository> repositories =
request.getRepositories() != null ? request.getRepositories() : session.getRemoteRepositories();
request.getRepositories() != null ? request.getRepositories()
: request.getProject().isPresent()
? session.getService(ProjectManager.class).getRemoteProjectRepositories(request.getProject().get())
: session.getRemoteRepositories();
if (request.getRequestType() == DependencyResolverRequest.RequestType.COLLECT) {
result = collectorResult;
} else {
Expand Down

0 comments on commit 6f046f4

Please sign in to comment.