Class UpdateProjectVersionCustomizer
java.lang.Object
org.jboss.pnc.gradlemanipulator.analyzer.alignment.UpdateProjectVersionCustomizer
- All Implemented Interfaces:
AlignmentService.Manipulator
AlignmentService.Manipulator that changes the project version.
The heavy lifting is actually done by
VersionCalculator-
Constructor Summary
ConstructorsConstructorDescriptionUpdateProjectVersionCustomizer(org.jboss.pnc.gradlemanipulator.common.Configuration configuration, org.gradle.api.Project rootProject) -
Method Summary
Modifier and TypeMethodDescriptionvoidcustomize(AlignmentService.Response response) Changes the response after it is returned by the alignment service.intorder()Integer.MIN_VALUEis the max order.
-
Constructor Details
-
UpdateProjectVersionCustomizer
public UpdateProjectVersionCustomizer(org.jboss.pnc.gradlemanipulator.common.Configuration configuration, org.gradle.api.Project rootProject)
-
-
Method Details
-
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.jboss.pnc.mavenmanipulator.common.exception.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.jboss.pnc.mavenmanipulator.common.exception.ManipulationException- if an error occurs looking up the versions
-