Class ReleasePrep
java.lang.Object
network.ike.plugin.release.prep.ReleasePrep
The release prep phase — B1–B12 of the
ReleaseDraftMojo
block audit minus the version/branch resolution that has to run
before ReleaseContext can be constructed.
Concretely:
- B3 — require a clean worktree
- B4 —
gh auth status/gh repo viewpreflight - B5 —
preflightJavadoc(warnings hard-fail in publish, log in draft) - B6 — SNAPSHOT-in-properties scan
- B7 — bake the foundation snapshot if this release owns the scaffold manifest
- B8 — align upstream cascade
${X.version}pins to latest released versions - B9 — resolve the reproducible-build timestamp from the current HEAD commit
- B11 —
preflightChecks(gh CLI, milestone, release-cadence trailers, Maven wrapper) - B12 — final pre-cut validation; rolled into the orchestrator's logAudit for now
The B10 draft-mode short-circuit lives in the orchestrator
(ReleaseDraftMojo.runGoal()) — it reads
PrepOutcome.draftMode() and dispatches to the draft renderer
instead of continuing into the publish-only phases. The draft-renderer
helpers (reportCascade, buildReleaseReport) extract
to their own classes in Commit 6.
Carved out of ReleaseDraftMojo during the Phase 4
Commit 5 (IKE-Network/ike-issues#489).
-
Constructor Summary
ConstructorsConstructorDescriptionReleasePrep(ReleaseContext ctx, org.apache.maven.api.Session session) Creates a new release prep phase bound to the given context. -
Method Summary
-
Constructor Details
-
ReleasePrep
Creates a new release prep phase bound to the given context.- Parameters:
ctx- the per-invocation release context (built beforemvnwis resolved — prep does not need the wrapper)session- the active Maven session, needed to construct theSessionCandidateVersionResolverfor foundation-bake and upstream-property alignment
-
-
Method Details
-
execute
Executes the release prep phase.- Returns:
- a
PrepOutcomecarryingprojectId,hasOrigin,releaseTimestamp, and thedraftModedispatch flag - Throws:
org.apache.maven.api.plugin.MojoException- on a worktree-state, preflight, javadoc, SNAPSHOT, or upstream-alignment failure
-