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 anoriginremoteprojectId- the project's Maven artifact idreleaseVersion- 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 Summary
ConstructorsConstructorDescriptionFinalizeInput(boolean hasOrigin, String projectId, String releaseVersion, List<CascadeBump> foundationUpgrades) Creates an instance of aFinalizeInputrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefoundationUpgradesrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thehasOriginrecord component.Returns the value of theprojectIdrecord component.Returns the value of thereleaseVersionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FinalizeInput
public FinalizeInput(boolean hasOrigin, String projectId, String releaseVersion, List<CascadeBump> foundationUpgrades) Creates an instance of aFinalizeInputrecord class.- Parameters:
hasOrigin- the value for thehasOriginrecord componentprojectId- the value for theprojectIdrecord componentreleaseVersion- the value for thereleaseVersionrecord componentfoundationUpgrades- the value for thefoundationUpgradesrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
hasOrigin
-
projectId
-
releaseVersion
Returns the value of thereleaseVersionrecord component.- Returns:
- the value of the
releaseVersionrecord component
-
foundationUpgrades
Returns the value of thefoundationUpgradesrecord component.- Returns:
- the value of the
foundationUpgradesrecord component
-