org.whitesource.utils.resolverUtils.via.ViaDependencyHolder Maven / Gradle / Ivy
package org.whitesource.utils.resolverUtils.via;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.commons.lang.StringUtils;
import org.whitesource.agent.api.model.DependencyInfo;
public class ViaDependencyHolder {
public static Map sha1ToArtifactId = new HashMap<>();
public static void setSha1toArtifactIdMap(List pythonDependencyHolder) {
pythonDependencyHolder.forEach(dependency-> {
if (StringUtils.isNotBlank(dependency.getSha1())) {
sha1ToArtifactId.put(dependency.getSha1(), dependency.getArtifactId());
}
});
}
}