Skip to content

Commit

Permalink
Reset relocations for runtime dependencies
Browse files Browse the repository at this point in the history
(cherry picked from commit 2a995a7)
  • Loading branch information
aloubyansky authored and gsmet committed Apr 26, 2024
1 parent 301193c commit 1ffc858
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,10 @@ private void visitRuntimeDependency(DependencyNode node) {
final ExtensionDependency extDep = getExtensionDependencyOrNull(node, artifact);

if (dep == null) {
// in case it was relocated it might not survive conflict resolution in the deployment graph
if (!node.getRelocations().isEmpty()) {
((DefaultDependencyNode) node).setRelocations(List.of());
}
WorkspaceModule module = null;
if (resolver.getProjectModuleResolver() != null) {
module = resolver.getProjectModuleResolver().getProjectModule(artifact.getGroupId(),
Expand Down

0 comments on commit 1ffc858

Please sign in to comment.