Class BuildReportRatchetDraftMojo
java.lang.Object
network.ike.plugin.support.AbstractGoalMojo
network.ike.plugin.BuildReportRatchetDraftMojo
- All Implemented Interfaces:
org.apache.maven.api.plugin.Mojo
- Direct Known Subclasses:
BuildReportRatchetPublishMojo
@Mojo(name="build-report-ratchet-draft",
projectRequired=false,
aggregator=true)
public class BuildReportRatchetDraftMojo
extends AbstractGoalMojo
Preview tightening the build-report acceptance ledger against the
latest session's observations (ike-issues#989).
Reads .mvn/build-report.yaml and the machine-readable
sidecar the build-report extension writes at session end
(target/build-report-observations.yaml — data, not scraped
receipt Markdown), and reports which accepted counts would move
down. Counts never loosen mechanically: accepting new or
grown findings is a deliberate human edit. Side-effect-free; the
-publish counterpart applies the plan.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanWhentrue, the plan is applied and the ledger rewritten canonically; set byBuildReportRatchetPublishMojo. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected GoalReportSpecrunGoal()Computes (and in publish mode applies) the downward ratchet plan.Methods inherited from class AbstractGoalMojo
execute, getLog, getPrompter, getSession
-
Field Details
-
publish
protected boolean publishWhentrue, the plan is applied and the ledger rewritten canonically; set byBuildReportRatchetPublishMojo.
-
-
Constructor Details
-
BuildReportRatchetDraftMojo
public BuildReportRatchetDraftMojo()Creates this goal instance.
-
-
Method Details
-
runGoal
Computes (and in publish mode applies) the downward ratchet plan.- Specified by:
runGoalin classAbstractGoalMojo- Returns:
- the goal report
- Throws:
org.apache.maven.api.plugin.MojoException- when the ledger or sidecar cannot be read, or the rewritten ledger cannot be written
-