Package org.jboss.gm.analyzer.alignment
Class UpdateProjectVersionCustomizer
- java.lang.Object
-
- org.jboss.gm.analyzer.alignment.UpdateProjectVersionCustomizer
-
- All Implemented Interfaces:
AlignmentService.Manipulator
public class UpdateProjectVersionCustomizer extends java.lang.Object implements AlignmentService.Manipulator
AlignmentService.Manipulatorthat changes the project version The heavy lifting is actually done byVersionCalculator
-
-
Constructor Summary
Constructors Constructor Description UpdateProjectVersionCustomizer(org.jboss.gm.common.Configuration configuration, org.gradle.api.Project rootProject)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcustomize(AlignmentService.Response response)Changes the response after it is returned by the alignment service.intorder()Integer.MIN_VALUEis the max order.
-
-
-
Method Detail
-
order
public int order()
Description copied from interface:AlignmentService.ManipulatorInteger.MIN_VALUEis the max order. This means that if we have two services, and we want the first one to be invoked before the second, we would give the first one a value for order that is smaller than that of the second one (for example 0 and 10, respectively).- Specified by:
orderin interfaceAlignmentService.Manipulator- Returns:
- the order
-
customize
public void customize(AlignmentService.Response response) throws org.commonjava.maven.ext.common.ManipulationException
Description copied from interface:AlignmentService.ManipulatorChanges the response after it is returned by the alignment service.- Specified by:
customizein interfaceAlignmentService.Manipulator- Parameters:
response- the resulting aligned dependencies from the dependency analyzer- Throws:
org.commonjava.maven.ext.common.ManipulationException- if an error occurs looking up the versions
-
-