Search in sources :

Example 1 with ToolSpdxCreator

use of com.blackducksoftware.integration.hub.bdio.model.ToolSpdxCreator in project hub-detect by blackducksoftware.

the class DetectProjectManager method createSimpleBdioDocument.

private SimpleBdioDocument createSimpleBdioDocument(final String codeLocationName, final String projectName, final String projectVersionName, final ExternalId projectExternalId, final DependencyGraph dependencyGraph) {
    final SimpleBdioDocument simpleBdioDocument = simpleBdioFactory.createSimpleBdioDocument(codeLocationName, projectName, projectVersionName, projectExternalId, dependencyGraph);
    final String hubDetectVersion = detectInfo.getDetectVersion();
    final ToolSpdxCreator hubDetectCreator = new ToolSpdxCreator("HubDetect", hubDetectVersion);
    simpleBdioDocument.billOfMaterials.creationInfo.addSpdxCreator(hubDetectCreator);
    return simpleBdioDocument;
}
Also used : ToolSpdxCreator(com.blackducksoftware.integration.hub.bdio.model.ToolSpdxCreator) SimpleBdioDocument(com.blackducksoftware.integration.hub.bdio.model.SimpleBdioDocument)

Aggregations

SimpleBdioDocument (com.blackducksoftware.integration.hub.bdio.model.SimpleBdioDocument)1 ToolSpdxCreator (com.blackducksoftware.integration.hub.bdio.model.ToolSpdxCreator)1