Class DAAlignmentService

java.lang.Object
org.jboss.pnc.gradlemanipulator.analyzer.alignment.DAAlignmentService
All Implemented Interfaces:
AlignmentService

public class DAAlignmentService extends Object implements AlignmentService
An implementation of AlignmentService that uses the Dependency Analyzer service in order to get the proper aligned versions of dependencies (as well as the version of the project itself). The heavy lifting is done by DefaultTranslator.
  • Constructor Details

    • DAAlignmentService

      public DAAlignmentService(org.jboss.pnc.gradlemanipulator.common.Configuration configuration)
      Constructs a new Dependency Analyzer service with the given configuration.
      Parameters:
      configuration - holds all configuration values for the plugins
  • Method Details

    • align

      public AlignmentService.Response align(AlignmentService.Request request) throws org.jboss.pnc.mavenmanipulator.io.rest.RestException
      Performs the alignment of the given request.
      Specified by:
      align in interface AlignmentService
      Parameters:
      request - both the collected project dependencies GAVs and the project GAVs
      Returns:
      the resulting aligned dependencies from the dependency analyzer
      Throws:
      org.jboss.pnc.mavenmanipulator.io.rest.RestException - if an error occurs looking up the versions.