Class DependencyManagerUtils

java.lang.Object
org.eclipse.aether.util.graph.manager.DependencyManagerUtils

public final class DependencyManagerUtils extends Object
A utility class assisting in analyzing the effects of dependency management.
  • Field Details

  • Constructor Details

  • Method Details

    • getPremanagedVersion

      public static String getPremanagedVersion(org.eclipse.aether.graph.DependencyNode node)
      Gets the version or version range of the specified dependency node before dependency management was applied (if any).
      Parameters:
      node - The dependency node to retrieve the premanaged data for, must not be null.
      Returns:
      The node's dependency version before dependency management or null if the version was not managed or if CONFIG_PROP_VERBOSE was not enabled.
    • getPremanagedScope

      public static String getPremanagedScope(org.eclipse.aether.graph.DependencyNode node)
      Gets the scope of the specified dependency node before dependency management was applied (if any).
      Parameters:
      node - The dependency node to retrieve the premanaged data for, must not be null.
      Returns:
      The node's dependency scope before dependency management or null if the scope was not managed or if CONFIG_PROP_VERBOSE was not enabled.
    • getPremanagedOptional

      public static Boolean getPremanagedOptional(org.eclipse.aether.graph.DependencyNode node)
      Gets the optional flag of the specified dependency node before dependency management was applied (if any).
      Parameters:
      node - The dependency node to retrieve the premanaged data for, must not be null.
      Returns:
      The node's optional flag before dependency management or null if the flag was not managed or if CONFIG_PROP_VERBOSE was not enabled.
    • getPremanagedExclusions

      public static Collection<org.eclipse.aether.graph.Exclusion> getPremanagedExclusions(org.eclipse.aether.graph.DependencyNode node)
      Gets the Exclusions of the specified dependency node before dependency management was applied (if any).
      Parameters:
      node - The dependency node to retrieve the premanaged data for, must not be null.
      Returns:
      The nodes' Exclusions before dependency management or null if exclusions were not managed or if CONFIG_PROP_VERBOSE was not enabled.
      Since:
      1.1.0
    • getPremanagedProperties

      public static Map<String,String> getPremanagedProperties(org.eclipse.aether.graph.DependencyNode node)
      Gets the properties of the specified dependency node before dependency management was applied (if any).
      Parameters:
      node - The dependency node to retrieve the premanaged data for, must not be null.
      Returns:
      The nodes' properties before dependency management or null if properties were not managed or if CONFIG_PROP_VERBOSE was not enabled.
      Since:
      1.1.0