src/main/java/ru/tohasan/DependencyFinder.java
/**
     * Method finds modules dependent on specified artifact.
     *
     * @param poms Collection of pom.xml to find dependent modules.
     * @param dependencyName Artifact id of dependency which modules must have.
     * @param onlyModules List of module names to search dependency among them. Can not be null.
     *                    If empty then parameter is ignored.
     * @return Returns set of modules (exclude duplicates) dependent on specified artifact.
     */
Method finds modules dependent on specified artifact.
@param poms Collection of pom.xml to find dependent modules.
@param dependencyName Artifact id of dependency which modules must have.
@param onlyModules List of module names to search dependency among them. Can not be null.
If empty then parameter is ignored.
@return Returns set of modules (exclude duplicates) dependent on specified artifact.
Method finds modules dependent on specified artifact . @param poms Collection of pom . xml to find dependent modules . @param dependencyName Artifact id of dependency which modules must have . @param onlyModules List of module names to search dependency among them . Can not be null . If empty then parameter is ignored . @return Returns set of modules ( exclude duplicates ) dependent on specified artifact .
public Set<File> findDependent(Collection<File> poms, String dependencyName, List<String> onlyModules) {
        Set<File> dependentFiles = new HashSet<>();
        findDependent(poms, dependencyName, onlyModules, LEVEL_INITIAL, null, dependentFiles);
        return dependentFiles;
    }
public Set < File > findDependent ( Collection < File > poms , String dependencyName , List < String > onlyModules ) { Set < File > dependentFiles = new HashSet < > ( ) ; findDependent ( poms , dependencyName , onlyModules , LEVEL_INITIAL , null , dependentFiles ) ; return dependentFiles ; }
Method finds modules dependent on specified artifact.
Method finds modules dependent on specified artifact .