slawekjaranowski commented on code in PR #1536:
URL:
https://github.com/apache/maven-dependency-plugin/pull/1536#discussion_r2408642150
##########
src/main/java/org/apache/maven/plugins/dependency/analyze/AbstractAnalyzeMojo.java:
##########
@@ -449,6 +466,125 @@ private boolean checkDependencies() throws
MojoExecutionException {
return warning;
}
+ // todo: enhance analyzer (dependency) to do it since it already visits
classes
+ // will save some time
+ private Set<String> scanForSpiUsage(
+ final Set<Artifact> usedDeclared, final Map<Artifact, Set<String>>
usedUndeclaredWithClasses) {
+ return Stream.concat(
+ usedDeclared.stream().flatMap(this::findUsedSpi),
+
usedUndeclaredWithClasses.keySet().stream().flatMap(this::findUsedSpi))
+ .collect(toSet());
+ }
+
+ private Stream<String> findUsedSpi(final Artifact artifact) {
Review Comment:
Can we extends a
[maven-dependency-analyzer](https://github.com/apache/maven-dependency-analyzer)
with such feature?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]