Class DependencyConvergence

All Implemented Interfaces:
EnforcerRuleBase

@Named("dependencyConvergence") public final class DependencyConvergence extends AbstractStandardEnforcerRule
  • Field Details

    • uniqueVersions

      private boolean uniqueVersions
    • includes

      private List<String> includes
    • excludes

      private List<String> excludes
    • excludedScopes

      private List<String> excludedScopes
    • dependencyVersionMap

      private DependencyVersionMap dependencyVersionMap
    • resolverUtil

      private final ResolverUtil resolverUtil
  • Constructor Details

    • DependencyConvergence

      @Inject public DependencyConvergence(ResolverUtil resolverUtil)
  • Method Details

    • execute

      public void execute() throws EnforcerRuleException
      Description copied from class: AbstractEnforcerRule
      This is the interface into the rule. This method should throw an exception containing a reason message if the rule fails the check. The plugin will then decide based on the fail flag and rule level if it should stop or just log the message as a warning.
      Specified by:
      execute in class AbstractEnforcerRule
      Throws:
      EnforcerRuleException - the enforcer rule exception
    • buildTreeString

      private StringBuilder buildTreeString(org.eclipse.aether.graph.DependencyNode node)
    • getConvergenceErrorMsgs

      private List<String> getConvergenceErrorMsgs(List<List<org.eclipse.aether.graph.DependencyNode>> errors)
    • buildConvergenceErrorMsg

      private String buildConvergenceErrorMsg(List<org.eclipse.aether.graph.DependencyNode> nodeList)
    • toString

      public String toString()
      Overrides:
      toString in class Object