Skip to content

Commit

Permalink
Do not index resources removed by extensions
Browse files Browse the repository at this point in the history
Excluded resources removed by extension from indexing as according to io.quarkus.maven.ExtensionDescriptorMojo#removedResources should be equivalent of quarkus.class-loading.removed-resources, however later classes are excluded from indexing while former are not.
  • Loading branch information
michalvavrik authored and igorregis committed Oct 16, 2022
1 parent d847e36 commit 6f27ed7
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ ApplicationArchivesBuildItem build(
removedResources.put(new GACT(entry.getKey().split(":")), entry.getValue());
}

// Add resources removed from the classpath by extensions
removedResources.putAll(curateOutcomeBuildItem.getApplicationModel().getRemovedResources());

List<ApplicationArchive> applicationArchives = scanForOtherIndexes(buildCloseables,
appMarkers, root, additionalApplicationArchiveBuildItem, indexDependencyBuildItems, indexCache,
curateOutcomeBuildItem, removedResources);
Expand Down

0 comments on commit 6f27ed7

Please sign in to comment.