Class SushiConfigReader

java.lang.Object
org.fhirfrog.frog.ant.ig.SushiConfigReader

public class SushiConfigReader extends Object
Reads the dependencies block from a sushi-config.yaml file.

Uses a simple line-by-line parser scoped to the dependencies section. Only name: version entries under the dependencies: heading are parsed; nested objects (parameter overrides) are ignored.

Handles both quoted and unquoted version values:

 dependencies:
   hl7.fhir.au.core: 1.0.0
   hl7.fhir.au.erequesting: "0.2.0"
 

  • Constructor Details

    • SushiConfigReader

      public SushiConfigReader()
  • Method Details

    • readDependencies

      public Map<String,String> readDependencies(Path configPath) throws IOException
      Parses the dependencies block from the given YAML file.
      Parameters:
      configPath - path to sushi-config.yaml
      Returns:
      map of package name → version string
      Throws:
      IOException - if the file cannot be read
      IllegalArgumentException - if the file does not exist