Skip to content

Commit

Permalink
Bootstrap - include reloadable artifacts to deployment classloader
Browse files Browse the repository at this point in the history
- resolves #16681
- also remove these artifacts from augment classloader
  • Loading branch information
mkouba committed Apr 23, 2021
1 parent eb648f0 commit 325a99f
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,9 @@ public synchronized QuarkusClassLoader getAugmentClassLoader() {
//any of the runtime artifacts, or user classes
//this will load any deployment artifacts from the parent CL if they are present
for (AppDependency i : appModel.getFullDeploymentDeps()) {
if (configuredClassLoading.reloadableArtifacts.contains(i.getArtifact().getKey())) {
continue;
}
processCpElement(i.getArtifact(), element -> addCpElement(builder, i.getArtifact(), element));
}

Expand Down Expand Up @@ -271,6 +274,11 @@ public QuarkusClassLoader createDeploymentClassLoader() {
builder.addElement(ClassPathElement.fromPath(root));
}
}
for (AppDependency dependency : appModel.getUserDependencies()) {
if (configuredClassLoading.reloadableArtifacts.contains(dependency.getArtifact().getKey())) {
processCpElement(dependency.getArtifact(), element -> addCpElement(builder, dependency.getArtifact(), element));
}
}
return builder.build();
}

Expand Down

0 comments on commit 325a99f

Please sign in to comment.