Record Class PrepOutcome
java.lang.Object
java.lang.Record
network.ike.plugin.release.prep.PrepOutcome
- Record Components:
projectId- the Maven artifact id read fromrootPomhasOrigin- whetheroriginis configured on the working treereleaseTimestamp- the ISO-8601 UTC timestamp derived from the current HEAD commit; stamped intoproject.build.outputTimestampfor reproducibilitydraftMode-truewhen the request is a draft preview —runGoal()short-circuits to the draft renderer instead of running the local/nexus/central/finalize phasesfoundationUpgrades- the upstream-version pin bumps the B8 alignment step applied (empty when not a cascade member, every pin already current, or in draft mode) — surfaced in the release notes (#706)
public record PrepOutcome(String projectId, boolean hasOrigin, String releaseTimestamp, boolean draftMode, List<CascadeBump> foundationUpgrades)
extends Record
Outcome of the
ReleasePrep phase — values computed during
B1–B12 that downstream phases consume.
draftMode drives the orchestrator dispatch: when
true, runGoal() short-circuits to the draft renderer
and returns instead of continuing into LocalPhase. The
other fields (projectId, hasOrigin, releaseTimestamp) feed
downstream phases that need them (LocalPhase reads
releaseTimestamp; FinalizePhase reads projectId
and hasOrigin; logAudit reads projectId).
foundationUpgrades carries the upstream-pin bumps the B8
alignment step applied, so FinalizePhase can surface them in
the GitHub Release body — a cascade-only rebuild otherwise announces
"no changes" (IKE-Network/ike-issues#706).
Carved out of ReleaseDraftMojo during the Phase 4
Commit 5 (IKE-Network/ike-issues#489).
-
Constructor Summary
ConstructorsConstructorDescriptionPrepOutcome(String projectId, boolean hasOrigin, String releaseTimestamp, boolean draftMode, List<CascadeBump> foundationUpgrades) Creates an instance of aPrepOutcomerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thedraftModerecord component.final 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 thereleaseTimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PrepOutcome
public PrepOutcome(String projectId, boolean hasOrigin, String releaseTimestamp, boolean draftMode, List<CascadeBump> foundationUpgrades) Creates an instance of aPrepOutcomerecord class.- Parameters:
projectId- the value for theprojectIdrecord componenthasOrigin- the value for thehasOriginrecord componentreleaseTimestamp- the value for thereleaseTimestamprecord componentdraftMode- the value for thedraftModerecord 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. -
projectId
-
hasOrigin
-
releaseTimestamp
Returns the value of thereleaseTimestamprecord component.- Returns:
- the value of the
releaseTimestamprecord component
-
draftMode
-
foundationUpgrades
Returns the value of thefoundationUpgradesrecord component.- Returns:
- the value of the
foundationUpgradesrecord component
-