Class DependencyUtils
java.lang.Object
org.cyclonedx.gradle.utils.DependencyUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidconfigureExternalArtifactView(org.gradle.api.artifacts.ArtifactView.ViewConfiguration view) Configures an artifact view to only include external module dependencies.static 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) -
configureExternalArtifactView
public static void configureExternalArtifactView(org.gradle.api.artifacts.ArtifactView.ViewConfiguration view) Configures an artifact view to only include external module dependencies. This excludes project dependencies and file dependencies (which may be backed by task outputs, causing implicit task dependency errors). -
generatePackageUrl
public static String generatePackageUrl(SbomComponentId componentId) throws com.github.packageurl.MalformedPackageURLException - Throws:
com.github.packageurl.MalformedPackageURLException
-