Class ApiOnlyTranscriberJExtension
java.lang.Object
com.arc_e_tect.gradle.apionly.transcriberj.ApiOnlyTranscriberJExtension
The
apiOnlyTranscriberJ block: which subscribed contracts get a generated
class tree, and how.
apiOnlyTranscriberJ {
subscription('orders') {
basePackage = 'com.example.orders.contract'
}
}
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionApiOnlyTranscriberJExtension(org.gradle.api.model.ObjectFactory objects) Creates the extension. -
Method Summary
Modifier and TypeMethodDescriptionabstract org.gradle.api.provider.Property<Boolean> Whether a dependency version an emitter was not tested with fails the build, rather than only being warned about.org.gradle.api.NamedDomainObjectContainer<TranscriberJSubscription> Every contract classes are generated for.subscription(String contract, org.gradle.api.Action<? super TranscriberJSubscription> action) Generates classes for a contract theapiOnlySubscriberblock subscribes to.
-
Field Details
-
NAME
The name the extension is registered under.- See Also:
-
-
Constructor Details
-
ApiOnlyTranscriberJExtension
@Inject public ApiOnlyTranscriberJExtension(org.gradle.api.model.ObjectFactory objects) Creates the extension.- Parameters:
objects- Gradle's object factory
-
-
Method Details
-
getStrictDependencies
Whether a dependency version an emitter was not tested with fails the build, rather than only being warned about.Default:
false.- Returns:
- the setting
-
getSubscriptions
Every contract classes are generated for.- Returns:
- the subscriptions
-
subscription
public TranscriberJSubscription subscription(String contract, org.gradle.api.Action<? super TranscriberJSubscription> action) Generates classes for a contract theapiOnlySubscriberblock subscribes to.- Parameters:
contract- the contract's name, as subscribedaction- how its classes are generated- Returns:
- the settings
-