use of com.synopsys.integration.bdio.model.dependency.Dependency in project hub-detect by blackducksoftware.
the class BazelCodeLocationBuilder method addDependency.
public BazelCodeLocationBuilder addDependency(final BazelExternalId bazelExternalId) {
try {
logger.debug(String.format("Adding dependency from external id: %s", bazelExternalId));
final ExternalId externalId = externalIdFactory.createMavenExternalId(bazelExternalId.getGroup(), bazelExternalId.getArtifact(), bazelExternalId.getVersion());
Dependency artifactDependency = new Dependency(bazelExternalId.getArtifact(), bazelExternalId.getVersion(), externalId);
dependencyGraph.addChildToRoot(artifactDependency);
} catch (Exception e) {
logger.error(String.format("Unable to parse group:artifact:version from %s", bazelExternalId));
}
return this;
}
Aggregations