Class DAAlignmentService
java.lang.Object
org.jboss.pnc.gradlemanipulator.analyzer.alignment.DAAlignmentService
- All Implemented Interfaces:
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.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jboss.pnc.gradlemanipulator.analyzer.alignment.AlignmentService
AlignmentService.Manipulator, AlignmentService.Request, AlignmentService.Response -
Constructor Summary
ConstructorsConstructorDescriptionDAAlignmentService(org.jboss.pnc.gradlemanipulator.common.Configuration configuration) Constructs a new Dependency Analyzer service with the given configuration. -
Method Summary
Modifier and TypeMethodDescriptionalign(AlignmentService.Request request) Performs the alignment of the given request.
-
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:
alignin interfaceAlignmentService- 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.
-