Skip to content
This repository has been archived by the owner on Jan 5, 2021. It is now read-only.

Commit

Permalink
fixing external id for the project
Browse files Browse the repository at this point in the history
  • Loading branch information
ekerwin committed Mar 15, 2018
1 parent 4074c35 commit 1c14a86
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,14 @@ class CranBomTool extends BomTool {

List<String> packratLockText = Files.readAllLines(packratLockFile[0].toPath(), StandardCharsets.UTF_8)
DependencyGraph dependencyGraph = packratPackager.extractProjectDependencies(packratLockText)
ExternalId externalId = externalIdFactory.createNameVersionExternalId(Forge.CRAN, projectName, projectVersion)
ExternalId externalId = externalIdFactory.createPathExternalId(Forge.CRAN, sourcePath)

def codeLocation = new DetectCodeLocation.Builder(getBomToolType(), sourcePath, externalId, dependencyGraph).bomToolProjectName(projectName).bomToolProjectVersionName(projectVersion).build()
DetectCodeLocation.Builder builder =
new DetectCodeLocation.Builder(getBomToolType(), sourcePath, externalId, dependencyGraph)
.bomToolProjectName(projectName)
.bomToolProjectVersionName(projectVersion);

def codeLocation = builder.build()
[codeLocation]
}
}

0 comments on commit 1c14a86

Please sign in to comment.