Class DependencyUtils

java.lang.Object
org.cyclonedx.gradle.utils.DependencyUtils

public class DependencyUtils extends Object
  • 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