Class UpdateProjectVersionCustomizer

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

public class UpdateProjectVersionCustomizer extends Object implements AlignmentService.Manipulator
AlignmentService.Manipulator that changes the project version.
The heavy lifting is actually done by VersionCalculator
  • 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.Manipulator
      Integer.MIN_VALUE is 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:
      order in interface AlignmentService.Manipulator
      Returns:
      the order
    • customize

      public void customize(AlignmentService.Response response) throws org.jboss.pnc.mavenmanipulator.common.exception.ManipulationException
      Description copied from interface: AlignmentService.Manipulator
      Changes the response after it is returned by the alignment service.
      Specified by:
      customize in interface AlignmentService.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