generateContract

fun generateContract(fragments: List<File>, service: String?, contractPackage: String?, module: String, unpaired: Map<String, String>, output: File, packages: File)

Writes the peer contract of the domain module module's completed fragments into output (PeerContracts.contractOf), naming the service that hosts its contexts when given, and the package of its contexts' generated code, its contractPackage, into packages (ContractPackages); what the Gradle plugin's generateWowContract does. A module with a context and no contractPackage fails, naming the line to add, and so does one whose contractPackage is no Java package name. A context whose command or event classes are in an entry of unpaired (a class path entry of a project that does not pair with the module, to that project's path) fails, naming the line that pairs them: the contract would reach no api module, and no peer would see the context. A stream declared to reveal its DISPLAY values that publishes none fails too (RevealedDisplays), and so does a contract that holds a reference whose schema it does not (SchemaReferences).