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 Details

  • Constructor Details

    • BuildReportRatchetDraftMojo

      public BuildReportRatchetDraftMojo()
      Creates this goal instance.
  • Method Details

    • runGoal

      protected GoalReportSpec runGoal() throws org.apache.maven.api.plugin.MojoException
      Computes (and in publish mode applies) the downward ratchet plan.
      Specified by:
      runGoal in class AbstractGoalMojo
      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