use of org.gradle.api.internal.artifacts.ivyservice.ivyresolve.parser.data.PomDependencyMgt in project gradle by gradle.
the class PomReader method getDependencyMgt.
private List<PomDependencyMgt> getDependencyMgt(Element parentElement) {
List<PomDependencyMgt> depMgmtElements = new ArrayList<PomDependencyMgt>();
Element dependenciesElement = getFirstChildElement(parentElement, DEPENDENCY_MGT);
dependenciesElement = getFirstChildElement(dependenciesElement, DEPENDENCIES);
if (dependenciesElement != null) {
NodeList childs = dependenciesElement.getChildNodes();
for (int i = 0; i < childs.getLength(); i++) {
Node node = childs.item(i);
if (node instanceof Element && DEPENDENCY.equals(node.getNodeName())) {
depMgmtElements.add(new PomDependencyMgtElement((Element) node));
}
}
}
return depMgmtElements;
}
Aggregations