Fixing the PearBomTool
@@ -85,14 +85,8 @@ class PearBomTool extends BomTool {
String rootVersion = packageXml.version.release
DependencyGraph dependencyGraph = pearDependencyFinder.parsePearDependencyList(pearListing, pearDependencies)
- def detectCodeLocation = new DetectCodeLocation(
- getBomToolType(),
- sourcePath,
- rootName,
- rootVersion,
- externalIdFactory.createNameVersionExternalId(Forge.PEAR, rootName, rootVersion),
- dependencyGraph
- )
+ def detectCodeLocation = DetectCodeLocation.Builder(getBomToolType(), sourcePath, externalIdFactory.createNameVersionExternalId(Forge.PEAR, rootName, rootVersion),
+ dependencyGraph).bomToolProjectName(rootName).bomToolProjectVersionName(rootVersion).build()
[detectCodeLocation]
}
