Package com.arc_e_tect.gradle.apionly.transcriberj
package com.arc_e_tect.gradle.apionly.transcriberj
The API-Only TranscriberJ Gradle plugin: generates a contract-derived class tree
from a contract the API-Only Subscriber fetched.
-
ClassDescriptionThe
apiOnlyTranscriberJblock: which subscribed contracts get a generated class tree, and how.The API-Only TranscriberJ: a class tree derived from a subscribed contract, for contract tests and stubs.What a generation worker derives the contract's model from.What every generation task of a contract derives its output from: the fetched documents, the lockfile and the subscription's settings.One emitter's configuration for one subscription: theemitter('<id>')block.The core's generation: the schema classes, operations, cases and the endpoint index.What the task hands over.Generates the core of one contract's class tree: the schema classes, the operations and the invalid-request cases, and the endpoint index.One emitter's generation, in the class loader the emitters were loaded into.What the task hands over.Generates one emitter's output for one contract, over the same model the core generates from: its Java sources, its classpath resources and its files, each in a directory of its own.Writes the one report of a subscription from the fragments its generation tasks wrote: the text report, as one generation of the core and every emitter would have written it, and an AsciiDoc report, a frame that summarises it and includes each task's AsciiDoc fragment.How the classes for one subscribed contract are generated.Adds missingapiOnlyTranscriberJDSL properties to a consumer'sbuild.gradle, using their real plugin defaults.Fails when the generated class tree was generated from another contract than the one the lockfile names (D17): "these tests test the current contract", checked.