Package com.mooltiverse.oss.nyx.gradle
Class NyxExtension.CommitMessageConventions
java.lang.Object
com.mooltiverse.oss.nyx.gradle.NyxExtension.CommitMessageConventions
- Enclosing class:
NyxExtension
The class to model the 'commitMessageConventions' block within the extension.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
The class to model a single 'commitMessageConventions' item within the extension. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns list of enabled convention names.getItems()
Returns the map of commit message convention items.protected abstract ObjectFactory
Returns an object factory instance.void
items
(Action<? super NamedDomainObjectContainer<NyxExtension.CommitMessageConventions.CommitMessageConvention>> configurationAction) Accepts the DSL configuration for theitems
block, needed for defining the block using the curly braces syntax in Gradle build scripts.
-
Constructor Details
-
CommitMessageConventions
public CommitMessageConventions()Default constructor.
-
-
Method Details
-
getObjectfactory
Returns an object factory instance. The instance is injected by Gradle as soon as this getter method is invoked. Using property injection instead of constructor injection has a few advantages: it allows Gradle to refer injecting the object until it's required and is safer for backward compatibility (older versions can be supported).- Returns:
- the object factory instance
-
getEnabled
Returns list of enabled convention names.- Returns:
- list of enabled convention names.
-
getItems
public NamedDomainObjectContainer<NyxExtension.CommitMessageConventions.CommitMessageConvention> getItems()Returns the map of commit message convention items.- Returns:
- the map of commit message convention items.
-
items
public void items(Action<? super NamedDomainObjectContainer<NyxExtension.CommitMessageConventions.CommitMessageConvention>> configurationAction) Accepts the DSL configuration for theitems
block, needed for defining the block using the curly braces syntax in Gradle build scripts. See the documentation on top of this class for more.- Parameters:
configurationAction
- the configuration action for theitems
block
-