merge

fun merge(classpath: List<File>, owners: Map<String, String>, serviceName: String?, defaultServiceName: String, serviceVersion: String?, output: File): Int

Assembles the fragments found in the classpath entries into output as the node does at startup (ManifestAssembly), each named after its entry's owner in owners (a project or a module, by the entry's path), describing the service serviceOf names: the one the contracts of its contexts and its own serviceName agree on; fails on a conflict, on a schema reference no fragment resolves, on another context's event a handler takes whose aggregate the peer contracts on the classpath do not say (PeerSources), or on a command a saga derives by its class that neither a context of the service nor a peer contract on the classpath decides (undecidedCommands), or on two fragments of one name (fragmentsOf). Returns the number of fragments merged.