Skip to content

Commit

Permalink
Merge pull request #16750 from mkouba/issue-16681
Browse files Browse the repository at this point in the history
Bootstrap - include reloadable artifacts to deployment classloader
  • Loading branch information
geoand authored Apr 23, 2021
2 parents f144416 + 325a99f commit 65b8819
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 65b8819

Please sign in to comment.