Skip to content

Commit

Permalink
Add dep-manifest modules to the pkg-manifest dep
Browse files Browse the repository at this point in the history
  • Loading branch information
gayaldassanayake committed Oct 27, 2024
1 parent 0fee0db commit f9a6b30
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@

import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Optional;
Expand Down Expand Up @@ -132,11 +133,12 @@ public static BlendedManifest from(DependencyManifest dependencyManifest,
}
}
} else {
Collection<String> moduleNames = existingDepOptional.isPresent() ?
existingDepOptional.get().modules : Collections.emptyList();
depContainer.add(depInPkgManifest.org(), depInPkgManifest.name(), new Dependency(
depInPkgManifest.org(), depInPkgManifest.name(), depInPkgManifest.version(),
DependencyRelation.UNKNOWN, REPOSITORY_NOT_SPECIFIED,
moduleNames(new DependencyManifest.Package(depInPkgManifest.name(), depInPkgManifest.org(),
depInPkgManifest.version())), DependencyOrigin.USER_SPECIFIED));
moduleNames, DependencyOrigin.USER_SPECIFIED));
continue;
}

Expand Down

0 comments on commit f9a6b30

Please sign in to comment.