Package org.cyclonedx.gradle.utils
Class DependencyUtils
java.lang.Object
org.cyclonedx.gradle.utils.DependencyUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgeneratePackageUrl(SbomComponentId componentId) static Map<SbomComponentId, SbomComponent> mergeGraphs(Map<SbomComponentId, SbomComponent> firstGraph, Map<SbomComponentId, SbomComponent> secondGraph) static SbomComponentIdtoComponentId(org.gradle.api.artifacts.result.ResolvedComponentResult node, @Nullable File file)
-
Constructor Details
-
DependencyUtils
public DependencyUtils()
-
-
Method Details
-
mergeGraphs
public static Map<SbomComponentId,SbomComponent> mergeGraphs(Map<SbomComponentId, SbomComponent> firstGraph, Map<SbomComponentId, SbomComponent> secondGraph) -
toComponentId
public static SbomComponentId toComponentId(org.gradle.api.artifacts.result.ResolvedComponentResult node, @Nullable File file) -
generatePackageUrl
public static String generatePackageUrl(SbomComponentId componentId) throws com.github.packageurl.MalformedPackageURLException - Throws:
com.github.packageurl.MalformedPackageURLException
-