Record Class FinalizeInput

java.lang.Object
java.lang.Record
network.ike.plugin.release.finalize.FinalizeInput
Record Components:
hasOrigin - whether the working tree's git repo has an origin remote
projectId - the project's Maven artifact id
releaseVersion - the released version (no -SNAPSHOT)
foundationUpgrades - the upstream-version bumps the release applied, surfaced as a "Foundation upgrades" section in the GitHub Release notes so a cascade-only rebuild never announces "no changes" (#706)

public record FinalizeInput(boolean hasOrigin, String projectId, String releaseVersion, List<CascadeBump> foundationUpgrades) extends Record
Inputs to the FinalizePhase.

Captures the local state runGoal() accumulated through the prep, local, and deploy phases that FinalizePhase needs to push the tag + main and create the GitHub Release.

A future commit will replace these scalar inputs with phase outcomes (NexusOutcome, PrepOutcome, ...) as each phase is extracted (IKE-Network/ike-issues#489 Commits 2–6).

  • Constructor Details

    • FinalizeInput

      public FinalizeInput(boolean hasOrigin, String projectId, String releaseVersion, List<CascadeBump> foundationUpgrades)
      Creates an instance of a FinalizeInput record class.
      Parameters:
      hasOrigin - the value for the hasOrigin record component
      projectId - the value for the projectId record component
      releaseVersion - the value for the releaseVersion record component
      foundationUpgrades - the value for the foundationUpgrades record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • hasOrigin

      public boolean hasOrigin()
      Returns the value of the hasOrigin record component.
      Returns:
      the value of the hasOrigin record component
    • projectId

      public String projectId()
      Returns the value of the projectId record component.
      Returns:
      the value of the projectId record component
    • releaseVersion

      public String releaseVersion()
      Returns the value of the releaseVersion record component.
      Returns:
      the value of the releaseVersion record component
    • foundationUpgrades

      public List<CascadeBump> foundationUpgrades()
      Returns the value of the foundationUpgrades record component.
      Returns:
      the value of the foundationUpgrades record component