Class CascadeExporter

java.lang.Object
network.ike.workspace.cascade.CascadeExporter

public final class CascadeExporter extends Object
Renders an assembled ReleaseCascade into machine-readable formats for CI consumption (IKE-Network/ike-issues#403, #420).

A CI meta-runner that generates build-chain edges from the cascade topology consumes one of these outputs, so the CI build graph derives from the assembled cascade rather than being hand-wired and drifting from it.

  • Method Details

    • toJson

      public static String toJson(ReleaseCascade cascade)
      Renders the cascade as a JSON document: a cascade array of {groupId, artifactId, repo, url, consumes[], terminal} objects in topological order.
      Parameters:
      cascade - the assembled cascade
      Returns:
      a JSON document string (newline-terminated)
    • toProperties

      public static String toProperties(ReleaseCascade cascade)
      Renders the cascade as a .properties document: the release order, then per-repo coordinates and consumes edges keyed by repo name.
      Parameters:
      cascade - the assembled cascade
      Returns:
      a properties document string (newline-terminated)